diff options
Diffstat (limited to 'web/attachments/38607-patch-nagiosplug_plugins_check_nagios.c')
| -rw-r--r-- | web/attachments/38607-patch-nagiosplug_plugins_check_nagios.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/web/attachments/38607-patch-nagiosplug_plugins_check_nagios.c b/web/attachments/38607-patch-nagiosplug_plugins_check_nagios.c new file mode 100644 index 0000000..17f672d --- /dev/null +++ b/web/attachments/38607-patch-nagiosplug_plugins_check_nagios.c | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | Index: nagiosplug/plugins/check_nagios.c | ||
| 2 | =================================================================== | ||
| 3 | RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_nagios.c,v | ||
| 4 | retrieving revision 1.2 | ||
| 5 | diff -u -r1.2 check_nagios.c | ||
| 6 | --- nagiosplug/plugins/check_nagios.c 19 Jun 2002 05:11:52 -0000 1.2 | ||
| 7 | +++ nagiosplug/plugins/check_nagios.c 1 Jan 2003 22:18:50 -0000 | ||
| 8 | @@ -93,9 +93,9 @@ | ||
| 9 | printf ("Could not open stderr for %s\n", PS_RAW_COMMAND); | ||
| 10 | } | ||
| 11 | |||
| 12 | - /* cound the number of matching Nagios processes... */ | ||
| 13 | + /* count the number of matching Nagios processes... */ | ||
| 14 | while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process)) { | ||
| 15 | - if (strstr (input_buffer, process_string)) | ||
| 16 | + if ((!strstr (input_buffer, argv[0])) && (strstr (input_buffer, process_string))) | ||
| 17 | proc_entries++; | ||
| 18 | } | ||
| 19 | |||
| 20 | @@ -263,5 +263,5 @@ | ||
| 21 | "-V, --version\n" | ||
| 22 | " Print version information\n\n" | ||
| 23 | "Example:\n" | ||
| 24 | - " ./check_nagios -H /usr/local/nagios/var/status.log -e 5 -C /usr/local/nagios/bin/nagios\n"); | ||
| 25 | + " ./check_nagios -F /usr/local/nagios/var/status.log -e 5 -C /usr/local/nagios/bin/nagios\n"); | ||
| 26 | } | ||
