Przeglądaj źródła

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
Ton Voon 21 lat temu
rodzic
commit
10a28b3a27
1 zmienionych plików z 9 dodań i 12 usunięć
  1. 9 12
      plugins/check_nagios.c

+ 9 - 12
plugins/check_nagios.c

@@ -272,29 +272,26 @@ print_help (void)
 	printf (_(COPYRIGHT), copyright, email);
 	printf (_(COPYRIGHT), copyright, email);
 
 
 	printf (_("\
 	printf (_("\
-This plugin attempts to check the status of the Nagios process on the local\n\
+This plugin checks the status of the Nagios process on the local\n\
 machine. The plugin will check to make sure the Nagios status log is no older\n\
 machine. The plugin will check to make sure the Nagios status log is no older\n\
-than the number of minutes specified by the <expire_minutes> option.  It also\n\
-uses the /bin/ps command to check for a process matching whatever you specify\n\
-by the <process_string> argument.\n\n"));
+than the number of seconds specified by the expires option. It also\n\
+checks the process table for a process matching the command argument.\n\n"));
 
 
 	print_usage ();
 	print_usage ();
 
 
 	printf (_(UT_HELP_VRSN));
 	printf (_(UT_HELP_VRSN));
 
 
 	printf (_("\
 	printf (_("\
--F, --filename=FILE\n\
+ -F, --filename=FILE\n\
    Name of the log file to check\n\
    Name of the log file to check\n\
--e, --expires=INTEGER\n\
-   Seconds aging afterwhich logfile is condsidered stale\n\
--C, --command=STRING\n\
+ -e, --expires=INTEGER\n\
+   Seconds aging after which logfile is considered stale\n\
+ -C, --command=STRING\n\
    Command to search for in process table\n"));
    Command to search for in process table\n"));
 
 
 	printf (_("\
 	printf (_("\
 Example:\n\
 Example:\n\
-   ./check_nagios -e 5 \\\
-   -F /usr/local/nagios/var/status.log \\\
-   -C /usr/local/nagios/bin/nagios\n"));
+   ./check_nagios -e 5 -F /usr/local/nagios/var/status.log -C nagios\n"));
 }
 }
 
 
 
 
@@ -303,5 +300,5 @@ void
 print_usage (void)
 print_usage (void)
 {
 {
 	printf ("\
 	printf ("\
-Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n", progname);
+Usage: %s -F <status log file> -e <expire_minutes> -C <process_name>\n", progname);
 }
 }