summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2004-12-20 22:20:57 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2004-12-20 22:20:57 (GMT)
commit776c57ae6091558f95318206f86ab39e99489c61 (patch)
tree9b5e1f828cc2b0aa017fdf104eb0b87739eda4ec
parent10a28b3a272a231537147e7b8db049dcb2bc3de8 (diff)
downloadmonitoring-plugins-776c57ae6091558f95318206f86ab39e99489c61.tar.gz
Corrected help for expiry units. Restored functionality of searching for
process arguments git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1043 f882894a-f735-0410-b71e-b25c423dba1c
-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}