File nrpe-improved_help.patch of Package nrpe
Index: nrpe-3.0/src/check_nrpe.c
===================================================================
--- nrpe-3.0.orig/src/check_nrpe.c
+++ nrpe-3.0/src/check_nrpe.c
@@ -646,7 +646,7 @@ void usage(int result)
" [-P <size>] [-S <ssl version>] [-L <cipherlist>] [-C <clientcert>]\n"
" [-K <key>] [-A <ca-certificate>] [-s <logopts>] [-b <bindaddr>]\n"
" [-f <cfg-file>] [-p <port>] [-t <interval>:<state>]\n"
- " [-c <command>] [-a <arglist...>]\n");
+ " [-c <command>] [-a <arglist...>] [--help] [--license] [--no-ssl]\n");
printf("\n");
printf("Options:\n");
printf(" <host> = The address of the host running the NRPE daemon\n");
@@ -684,6 +684,9 @@ void usage(int result)
printf(" [arglist] = Optional arguments that should be passed to the command,\n");
printf(" separated by a space. If provided, this must be the last\n");
printf(" option supplied on the command line.\n");
+ printf(" -h, --help = Print this short help.\n");
+ printf(" -l,--license = Print licensing information.\n");
+ printf(" -n,--no-ssl = Do not initial an ssl handshake with the server, talk in plaintext.\n");
printf("\n");
printf(" NEW TIMEOUT SYNTAX\n");
printf(" -t <interval>:<state>\n");
Index: nrpe-3.0/src/nrpe.c
===================================================================
--- nrpe-3.0.orig/src/nrpe.c
+++ nrpe-3.0/src/nrpe.c
@@ -460,13 +460,15 @@ void usage(int result)
printf("Usage: nrpe [-n] -c <config_file> [-4|-6] <mode>\n");
printf("\n");
printf("Options:\n");
- printf(" -n = Do not use SSL\n");
+ printf(" -n, --no-ssl = Do not use SSL\n");
printf(" -c <config_file> = Name of config file to use\n");
printf(" -4 = use ipv4 only\n");
printf(" -6 = use ipv6 only\n");
+ printf(" -h, --help = Print this short help.\n");
+ printf(" -l,--license = Print licensing information.\n");
printf(" <mode> = One of the following operating modes:\n");
- printf(" -i = Run as a service under inetd or xinetd\n");
- printf(" -d = Run as a standalone daemon\n");
+ printf(" -i, --inetd = Run as a service under inetd or xinetd\n");
+ printf(" -d, --daemon = Run as a standalone daemon\n");
printf(" -d -s = Run as a subsystem under AIX\n");
printf(" -f = Don't fork() for systemd, launchd, etc.\n");
printf("\n");