summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_nagios.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index b1a4404..465b409 100644
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
@@ -134,7 +134,7 @@ main (int argc, char **argv)
134 } 134 }
135 135
136 /* May get empty procargs */ 136 /* May get empty procargs */
137 if (!strstr(procargs, argv[0]) && strstr(procprog, process_string) && strcmp(procargs,"")) { 137 if (!strstr(procargs, argv[0]) && strstr(procargs, process_string) && strcmp(procargs,"")) {
138 proc_entries++; 138 proc_entries++;
139 if (verbose >= 2) { 139 if (verbose >= 2) {
140 printf (_("Found process: %s %s\n"), procprog, procargs); 140 printf (_("Found process: %s %s\n"), procprog, procargs);
@@ -274,7 +274,7 @@ print_help (void)
274 printf (_("\ 274 printf (_("\
275This plugin checks the status of the Nagios process on the local\n\ 275This plugin checks the status of the Nagios process on the local\n\
276machine. The plugin will check to make sure the Nagios status log is no older\n\ 276machine. The plugin will check to make sure the Nagios status log is no older\n\
277than the number of seconds specified by the expires option. It also\n\ 277than the number of minutes specified by the expires option. It also\n\
278checks the process table for a process matching the command argument.\n\n")); 278checks the process table for a process matching the command argument.\n\n"));
279 279
280 print_usage (); 280 print_usage ();
@@ -285,13 +285,13 @@ checks the process table for a process matching the command argument.\n\n"));
285 -F, --filename=FILE\n\ 285 -F, --filename=FILE\n\
286 Name of the log file to check\n\ 286 Name of the log file to check\n\
287 -e, --expires=INTEGER\n\ 287 -e, --expires=INTEGER\n\
288 Seconds aging after which logfile is considered stale\n\ 288 Minutes aging after which logfile is considered stale\n\
289 -C, --command=STRING\n\ 289 -C, --command=STRING\n\
290 Command to search for in process table\n")); 290 Substring to search for in process arguments\n"));
291 291
292 printf (_("\ 292 printf (_("\
293Example:\n\ 293Example:\n\
294 ./check_nagios -e 5 -F /usr/local/nagios/var/status.log -C nagios\n")); 294 ./check_nagios -e 5 -F /usr/local/nagios/var/status.log -C /usr/local/nagios/bin/nagios\n"));
295} 295}
296 296
297 297
@@ -300,5 +300,5 @@ void
300print_usage (void) 300print_usage (void)
301{ 301{
302 printf ("\ 302 printf ("\
303Usage: %s -F <status log file> -e <expire_minutes> -C <process_name>\n", progname); 303Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n", progname);
304} 304}