From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/329923-snmp_procmon.diff | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 web/attachments/329923-snmp_procmon.diff (limited to 'web/attachments/329923-snmp_procmon.diff') diff --git a/web/attachments/329923-snmp_procmon.diff b/web/attachments/329923-snmp_procmon.diff new file mode 100644 index 0000000..dd02316 --- /dev/null +++ b/web/attachments/329923-snmp_procmon.diff @@ -0,0 +1,17 @@ +--- nagios-plugins-1.4.13/contrib/check_snmp_process_monitor.pl 2002-08-22 15:08:46.000000000 -0700 ++++ nagios-plugins-1.4.13_mod/contrib/check_snmp_process_monitor.pl 2009-06-01 05:57:37.000000000 -0700 +@@ -293,12 +293,12 @@ + # warning, critical + if ( ($opt_warning->[0] > 0 && $opt_warning->[0] > $count) + || ($opt_warning->[1] > 0 && $opt_warning->[1] <= $count) ) { +- $message = "WARNING - no processes found resembling '". ($opt_command || $opt_regex); ++ $message = "WARNING - $count processes found resembling '". ($opt_command || $opt_regex); + $exit = $ERRORS{WARNING}; + } + if ( ($opt_critical->[0] > 0 && $opt_critical->[0] > $count) + || ($opt_critical->[1] > 0 && $opt_critical->[1] <= $count) ) { +- $message = "CRITICAL - no processes found resembling '". ($opt_command || $opt_regex); ++ $message = "CRITICAL - $count processes found resembling '". ($opt_command || $opt_regex); + $exit = $ERRORS{CRITICAL}; + } + -- cgit v1.2.3-74-g34f1