blob: 17f672d856e641d3f42d50ab2648e33e28dba320 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
Index: nagiosplug/plugins/check_nagios.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_nagios.c,v
retrieving revision 1.2
diff -u -r1.2 check_nagios.c
--- nagiosplug/plugins/check_nagios.c 19 Jun 2002 05:11:52 -0000 1.2
+++ nagiosplug/plugins/check_nagios.c 1 Jan 2003 22:18:50 -0000
@@ -93,9 +93,9 @@
printf ("Could not open stderr for %s\n", PS_RAW_COMMAND);
}
- /* cound the number of matching Nagios processes... */
+ /* count the number of matching Nagios processes... */
while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process)) {
- if (strstr (input_buffer, process_string))
+ if ((!strstr (input_buffer, argv[0])) && (strstr (input_buffer, process_string)))
proc_entries++;
}
@@ -263,5 +263,5 @@
"-V, --version\n"
" Print version information\n\n"
"Example:\n"
- " ./check_nagios -H /usr/local/nagios/var/status.log -e 5 -C /usr/local/nagios/bin/nagios\n");
+ " ./check_nagios -F /usr/local/nagios/var/status.log -e 5 -C /usr/local/nagios/bin/nagios\n");
}
|