aboutsummaryrefslogtreecommitdiffstats
path: root/snmptrap/healthcheck.sh
diff options
context:
space:
mode:
Diffstat (limited to 'snmptrap/healthcheck.sh')
-rwxr-xr-xsnmptrap/healthcheck.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/snmptrap/healthcheck.sh b/snmptrap/healthcheck.sh
index d23c859..371c18a 100755
--- a/snmptrap/healthcheck.sh
+++ b/snmptrap/healthcheck.sh
@@ -21,5 +21,7 @@
# health. A better possible health check is if the distribution client provided a
# health check call.
-exit 0
-
+# run standard status command, exit with results
+/opt/app/snmptrap/bin/snmptrapd.sh status > /dev/null 2>&1
+ret=$?
+exit ${ret}