summaryrefslogtreecommitdiffstats
path: root/web/attachments/329923-snmp_procmon.diff
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/329923-snmp_procmon.diff')
-rw-r--r--web/attachments/329923-snmp_procmon.diff17
1 files changed, 17 insertions, 0 deletions
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 @@
1--- nagios-plugins-1.4.13/contrib/check_snmp_process_monitor.pl 2002-08-22 15:08:46.000000000 -0700
2+++ nagios-plugins-1.4.13_mod/contrib/check_snmp_process_monitor.pl 2009-06-01 05:57:37.000000000 -0700
3@@ -293,12 +293,12 @@
4 # warning, critical
5 if ( ($opt_warning->[0] > 0 && $opt_warning->[0] > $count)
6 || ($opt_warning->[1] > 0 && $opt_warning->[1] <= $count) ) {
7- $message = "WARNING - no processes found resembling '". ($opt_command || $opt_regex);
8+ $message = "WARNING - $count processes found resembling '". ($opt_command || $opt_regex);
9 $exit = $ERRORS{WARNING};
10 }
11 if ( ($opt_critical->[0] > 0 && $opt_critical->[0] > $count)
12 || ($opt_critical->[1] > 0 && $opt_critical->[1] <= $count) ) {
13- $message = "CRITICAL - no processes found resembling '". ($opt_command || $opt_regex);
14+ $message = "CRITICAL - $count processes found resembling '". ($opt_command || $opt_regex);
15 $exit = $ERRORS{CRITICAL};
16 }
17