summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2004-12-20 22:01:49 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2004-12-20 22:01:49 (GMT)
commit10a28b3a272a231537147e7b8db049dcb2bc3de8 (patch)
treef2fc0b2f4856c2629582580118ae4675a13c8276 /plugins
parent6624dda25517f70f692f2dc02d7d1d9c0abc19e3 (diff)
downloadmonitoring-plugins-10a28b3a272a231537147e7b8db049dcb2bc3de8.tar.gz
Updating help text to reflect using shortname instead of full path for command
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1042 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_nagios.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index b567fe1..b1a4404 100644
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
@@ -272,29 +272,26 @@ print_help (void)
272 printf (_(COPYRIGHT), copyright, email); 272 printf (_(COPYRIGHT), copyright, email);
273 273
274 printf (_("\ 274 printf (_("\
275This plugin attempts to check 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 minutes specified by the <expire_minutes> option. It also\n\ 277than the number of seconds specified by the expires option. It also\n\
278uses the /bin/ps command to check for a process matching whatever you specify\n\ 278checks the process table for a process matching the command argument.\n\n"));
279by the <process_string> argument.\n\n"));
280 279
281 print_usage (); 280 print_usage ();
282 281
283 printf (_(UT_HELP_VRSN)); 282 printf (_(UT_HELP_VRSN));
284 283
285 printf (_("\ 284 printf (_("\
286-F, --filename=FILE\n\ 285 -F, --filename=FILE\n\
287 Name of the log file to check\n\ 286 Name of the log file to check\n\
288-e, --expires=INTEGER\n\ 287 -e, --expires=INTEGER\n\
289 Seconds aging afterwhich logfile is condsidered stale\n\ 288 Seconds aging after which logfile is considered stale\n\
290-C, --command=STRING\n\ 289 -C, --command=STRING\n\
291 Command to search for in process table\n")); 290 Command to search for in process table\n"));
292 291
293 printf (_("\ 292 printf (_("\
294Example:\n\ 293Example:\n\
295 ./check_nagios -e 5 \\\ 294 ./check_nagios -e 5 -F /usr/local/nagios/var/status.log -C nagios\n"));
296 -F /usr/local/nagios/var/status.log \\\
297 -C /usr/local/nagios/bin/nagios\n"));
298} 295}
299 296
300 297
@@ -303,5 +300,5 @@ void
303print_usage (void) 300print_usage (void)
304{ 301{
305 printf ("\ 302 printf ("\
306Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n", progname); 303Usage: %s -F <status log file> -e <expire_minutes> -C <process_name>\n", progname);
307} 304}