summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2008-04-21 08:57:08 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2008-04-21 08:57:08 +0000
commitd700b87297cfc589e9692b64c6a5c37347caba31 (patch)
tree218cf95b1b1f857bc993d67588c6c8bd7bf40191
parente82d19a892b23abd2f4eef8d4e14d7cba65855e4 (diff)
downloadmonitoring-plugins-d700b87297cfc589e9692b64c6a5c37347caba31.tar.gz
Fixed bug with number threshold
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/new_threshold_syntax@1981 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/check_procs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 7f35370b..3d0f8447 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -354,7 +354,7 @@ main (int argc, char **argv)
354 } 354 }
355 355
356 if (number_threshold != NULL) { 356 if (number_threshold != NULL) {
357 if (i = get_status( procs, number_threshold ) != STATE_OK) { 357 if ((i = get_status( procs, number_threshold )) != STATE_OK) {
358 actions_on_failed_state(i, "NUMBER_OF_PROCESSES"); 358 actions_on_failed_state(i, "NUMBER_OF_PROCESSES");
359 if (verbose >= 2) { 359 if (verbose >= 2) {
360 printf("NUMBER: total_procs=%d ", procs); 360 printf("NUMBER: total_procs=%d ", procs);