From ed62784a0b68959fd13fe5bc53a5aef4f17fbffa Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Sun, 27 Apr 2008 14:35:26 +0000 Subject: [PATCH] --help output cleanup (plus removal of spaces on blank lines) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1984 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_apt.c | 22 +++++++++++---------- plugins/check_by_ssh.c | 15 ++++++++------ plugins/check_cluster.c | 5 +---- plugins/check_dig.c | 7 +++++-- plugins/check_disk.c | 17 ++++++++-------- plugins/check_dns.c | 10 +++++----- plugins/check_dummy.c | 4 ++-- plugins/check_fping.c | 12 ++++++------ plugins/check_game.c | 18 ++++++++--------- plugins/check_hpjd.c | 3 ++- plugins/check_http.c | 8 ++++---- plugins/check_ide_smart.c | 8 ++++---- plugins/check_ldap.c | 14 ++++++------- plugins/check_load.c | 2 +- plugins/check_mrtg.c | 32 ++++++++++++++++-------------- plugins/check_mrtgtraf.c | 1 + plugins/check_mysql.c | 6 ++++-- plugins/check_mysql_query.c | 5 ++--- plugins/check_nagios.c | 3 ++- plugins/check_nt.c | 19 ++++++++++-------- plugins/check_ntp.c | 1 - plugins/check_ntp_peer.c | 2 +- plugins/check_nwstat.c | 30 ++++++++++++++-------------- plugins/check_overcr.c | 8 ++++---- plugins/check_pgsql.c | 2 ++ plugins/check_ping.c | 6 ++---- plugins/check_procs.c | 4 ++-- plugins/check_radius.c | 3 ++- plugins/check_real.c | 1 + plugins/check_snmp.c | 39 ++++++++++++++++++++----------------- plugins/check_swap.c | 5 +++-- plugins/check_ups.c | 24 ++++++++++++----------- plugins/utils.h | 7 ++++++- 33 files changed, 184 insertions(+), 159 deletions(-) diff --git a/plugins/check_apt.c b/plugins/check_apt.c index 0265393..bd59c70 100644 --- a/plugins/check_apt.c +++ b/plugins/check_apt.c @@ -3,7 +3,7 @@ * Nagios check_apt plugin * * License: GPL -* Copyright (c) 2006-2007 Nagios Plugins Development Team +* Copyright (c) 2006-2008 Nagios Plugins Development Team * * Original author: Sean Finney * @@ -35,7 +35,7 @@ const char *progname = "check_apt"; const char *revision = "$Revision$"; -const char *copyright = "2006-2007"; +const char *copyright = "2006-2008"; const char *email = "nagiosplug-devel@lists.sourceforge.net"; #include "common.h" @@ -402,9 +402,9 @@ void print_help (void) { print_revision(progname, revision); - + printf(_(COPYRIGHT), copyright, email); - + printf("%s\n", _("This plugin checks for software updates on systems that use")); printf("%s\n", _("package management systems based on the apt-get(8) command")); printf("%s\n", _("found in Debian GNU/Linux")); @@ -412,11 +412,11 @@ print_help (void) printf ("\n\n"); print_usage(); - + printf(_(UT_HELP_VRSN)); - + printf(_(UT_TIMEOUT), timeout_interval); - + printf (" %s\n", "-U, --upgrade=OPTS"); printf (" %s\n", _("[Default] Perform an upgrade. If an optional OPTS argument is provided,")); printf (" %s\n", _("apt-get will be run with these command line options instead of the")); @@ -445,17 +445,19 @@ print_help (void) printf (" %s\n", _("upgrades for Debian and Ubuntu:")); printf (" \t\%s\n", SECURITY_RE); printf (" %s\n", _("Note that the package must first match the include list before its")); - printf (" %s\n\n\n", _("information is compared against the critical list.")); - + printf (" %s\n\n", _("information is compared against the critical list.")); + printf ("%s\n\n", _("The following options require root privileges and should be used with care:")); printf (" %s\n", "-u, --update=OPTS"); printf (" %s\n", _("First perform an 'apt-get update'. An optional OPTS parameter overrides")); printf (" %s\n", _("the default options. Note: you may also need to adjust the global")); printf (" %s\n", _("timeout (with -t) to prevent the plugin from timing out if apt-get")); printf (" %s\n", _("upgrade is expected to take longer than the default timeout.")); + + printf(_(UT_SUPPORT)); } - + /* simple usage heading */ void print_usage(void) diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c index 9b38506..37874bf 100644 --- a/plugins/check_by_ssh.c +++ b/plugins/check_by_ssh.c @@ -3,7 +3,7 @@ * Nagios check_by_ssh plugin * * License: GPL -* Copyright (c) 2000-2007 Nagios Plugins Development Team +* Copyright (c) 2000-2008 Nagios Plugins Development Team * * Last Modified: $Date$ * @@ -28,10 +28,10 @@ * $Id$ * *****************************************************************************/ - + const char *progname = "check_by_ssh"; const char *revision = "$Revision$"; -const char *copyright = "2000-2007"; +const char *copyright = "2000-2008"; const char *email = "nagiosplug-devel@lists.sourceforge.net"; #include "common.h" @@ -345,7 +345,7 @@ print_help (void) printf (_("This plugin uses SSH to execute commands on a remote host")); printf ("\n\n"); - + print_usage (); printf (_(UT_HELP_VRSN)); @@ -382,6 +382,8 @@ print_help (void) printf (" %s\n", _("Tell ssh to suppress warning and diagnostic messages [optional]")); printf (_(UT_WARN_CRIT)); printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); + printf (_(UT_VERBOSE)); + printf("\n"); printf (" %s\n", _("The most common mode of use is to refer to a local identity file with")); printf (" %s\n", _("the '-i' option. In this mode, the identity pair should have a null")); printf (" %s\n", _("passphrase and the public key should be listed in the authorized_keys")); @@ -389,6 +391,7 @@ print_help (void) printf (" %s\n", _("only one command on the remote server. If the remote SSH server tracks")); printf (" %s\n", _("invocation arguments, the one remote program may be an agent that can")); printf (" %s\n", _("execute additional commands as proxy")); + printf("\n"); printf (" %s\n", _("To use passive mode, provide multiple '-C' options, and provide")); printf (" %s\n", _("all of -O, -s, and -n options (servicelist order must match '-C'options)")); printf ("\n"); @@ -398,8 +401,8 @@ print_help (void) printf (" %s\n", "[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c1;0; up 2 days"); printf (" %s\n", "[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c2;0; up 2 days"); printf (" %s\n", "[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c3;0; up 2 days"); - printf (_(UT_VERBOSE)); - printf (_(UT_SUPPORT)); + + printf(_(UT_SUPPORT)); } diff --git a/plugins/check_cluster.c b/plugins/check_cluster.c index c67573a..ac3eece 100644 --- a/plugins/check_cluster.c +++ b/plugins/check_cluster.c @@ -256,12 +256,9 @@ print_help(void) printf("\n"); printf("%s\n", _("Notes:")); - printf(" %s\n", _("See:")); - printf(" %s\n", ("http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT")); - printf(" %s\n", _("for THRESHOLD format and examples.")); + printf(_(UT_THRESHOLDS_NOTES)); printf(_(UT_SUPPORT)); - printf("\n"); } diff --git a/plugins/check_dig.c b/plugins/check_dig.c index 72dd599..d7e1f57 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c @@ -3,7 +3,7 @@ * Nagios check_dig plugin * * License: GPL -* Copyright (c) 2002-2007 Nagios Plugins Development Team +* Copyright (c) 2002-2008 Nagios Plugins Development Team * * Last Modified: $Date$ * @@ -37,7 +37,7 @@ const char *progname = "check_dig"; const char *revision = "$Revision$"; -const char *copyright = "2002-2007"; +const char *copyright = "2002-2008"; const char *email = "nagiosplug-devel@lists.sourceforge.net"; #include "common.h" @@ -331,9 +331,12 @@ print_help (void) printf (_(UT_WARN_CRIT)); printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); printf (_(UT_VERBOSE)); + + printf("\n"); printf ("%s\n", _("Examples:")); printf (" %s\n", "check_dig -H DNSSERVER -l www.example.com -A \"+tcp\""); printf (" %s\n", "This will send a tcp query to DNSSERVER for www.example.com"); + printf (_(UT_SUPPORT)); } diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 44c154f..7048a56 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c @@ -220,7 +220,7 @@ main (int argc, char **argv) temp_list = temp_list->name_next; } - + /* Process for every path in list */ for (path = path_select_list; path; path=path->name_next) { @@ -254,7 +254,7 @@ main (int argc, char **argv) for (temp_list = path_select_list; temp_list; temp_list=temp_list->name_next) { if (temp_list->group && ! (strcmp(temp_list->group, path->group))) { - + stat_path(path); get_fs_usage (temp_list->best_match->me_mountdir, temp_list->best_match->me_devname, &tmpfsp); @@ -267,7 +267,7 @@ main (int argc, char **argv) fsp.fsu_bavail += (tmpfsp.fsu_bavail > tmpfsp.fsu_bfree ? 0 : tmpfsp.fsu_bavail); /* Free blocks available to non-superuser. */ fsp.fsu_files += tmpfsp.fsu_files; /* Total file nodes. */ fsp.fsu_ffree += tmpfsp.fsu_ffree; /* Free file nodes. */ - + if (verbose > 3) printf("Group %s: add %llu blocks (%s) \n", path->group, tmpfsp.fsu_bavail, temp_list->name); /* printf("Group %s: add %u blocks (%s)\n", temp_list->name); *//* path->group, tmpfsp.fsu_bavail, temp_list->name); */ @@ -318,7 +318,7 @@ main (int argc, char **argv) me->me_mountdir, total, available, available_to_root, used, fsp.fsu_files, fsp.fsu_ffree); dused_pct = calculate_percent( used, used + available ); /* used + available can never be > uintmax */ - + dfree_pct = 100 - dused_pct; dused_units = used*fsp.fsu_blocksize/mult; dfree_units = available*fsp.fsu_blocksize/mult; @@ -683,7 +683,7 @@ process_arguments (int argc, char **argv) while (temp_list) { if (temp_list->best_match) { if (np_regex_match_mount_entry(temp_list->best_match, &re)) { - + if (verbose >=3) printf("ignoring %s matching regex\n", temp_list->name); @@ -722,7 +722,7 @@ process_arguments (int argc, char **argv) regerror (err, &re, errbuf, MAX_INPUT_BUFFER); die (STATE_UNKNOWN, "DISK %s: %s - %s\n",_("UNKNOWN"), _("Could not compile regular expression"), errbuf); } - + for (me = mount_list; me; me = me->me_next) { if (np_regex_match_mount_entry(me, &re)) { fnd = TRUE; @@ -776,7 +776,7 @@ process_arguments (int argc, char **argv) crit_usedinodes_percent = NULL; warn_freeinodes_percent = NULL; crit_freeinodes_percent = NULL; - + path_selected = FALSE; group = NULL; break; @@ -875,7 +875,7 @@ INPUT ERROR: C_DF (%lu) should be less than W_DF (%lu) and both should be greate print_path (mypath); return ERROR; } - + return OK; } @@ -964,6 +964,7 @@ print_help (void) printf (" %s\n", _("are grouped which means the freespace thresholds are applied to all disks together")); printf (" %s\n", "check_disk -w 100M -c 50M -C -w 1000M -c 500M -p /foo -C -w 5% -c 3% -p /bar"); printf (" %s\n", _("Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use 100M/50M")); + printf (_(UT_SUPPORT)); } diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 276dad8..f8dbb4d 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c @@ -124,7 +124,7 @@ main (int argc, char **argv) addresses = malloc(sizeof(*addresses)*10); else if (!(n_addresses % 10)) addresses = realloc(addresses,sizeof(*addresses) * (n_addresses + 10)); - + if (verbose) puts(chld_out.line[i]); @@ -148,7 +148,7 @@ main (int argc, char **argv) /* Strip leading spaces */ for (; *temp_buffer != '\0' && *temp_buffer == ' '; temp_buffer++) /* NOOP */; - + strip(temp_buffer); if (temp_buffer==NULL || strlen(temp_buffer)==0) { die (STATE_CRITICAL, @@ -451,13 +451,13 @@ print_help (void) printf ("%s\n", _("This plugin uses the nslookup program to obtain the IP address for the given host/domain query.")); printf ("%s\n", _("An optional DNS server to use may be specified.")); printf ("%s\n", _("If no DNS server is specified, the default server(s) specified in /etc/resolv.conf will be used.")); - + printf ("\n\n"); print_usage (); - + printf (_(UT_HELP_VRSN)); - + printf (" -H, --hostname=HOST\n"); printf (" %s\n", _("The name or address you want to query")); printf (" -s, --server=HOST\n"); diff --git a/plugins/check_dummy.c b/plugins/check_dummy.c index a29407c..372aaff 100644 --- a/plugins/check_dummy.c +++ b/plugins/check_dummy.c @@ -106,11 +106,11 @@ print_help (void) printf (COPYRIGHT, copyright, email); printf ("%s\n", _("This plugin will simply return the state corresponding to the numeric value")); - + printf ("%s\n", _("of the argument with optional text")); printf ("\n\n"); - + print_usage (); printf (_(UT_HELP_VRSN)); diff --git a/plugins/check_fping.c b/plugins/check_fping.c index 5a24ab4..8617871 100644 --- a/plugins/check_fping.c +++ b/plugins/check_fping.c @@ -204,7 +204,7 @@ textscan (char *buf) die (status, _("FPING %s - %s (loss=%.0f%% )|%s\n"), state_text (status), server_name, loss , perfdata ("loss", (long int)loss, "%", wpl_p, wpl, cpl_p, cpl, TRUE, 0, TRUE, 100)); - + } else { status = max_state (status, STATE_WARNING); @@ -371,11 +371,11 @@ print_help (void) printf (COPYRIGHT, copyright, email); printf ("%s\n", _("This plugin will use the fping command to ping the specified host for a fast check")); - + printf ("%s\n", _("Note that it is necessary to set the suid flag on fping.")); printf ("\n\n"); - + print_usage (); printf (_(UT_HELP_VRSN)); @@ -392,9 +392,9 @@ print_help (void) printf (" %s\n", _("number of ICMP packets to send (default: %d)"),PACKET_COUNT); printf (_(UT_VERBOSE)); printf ("\n"); - printf (" %s\n", _("THRESHOLD is ,%% where is the round trip average travel time (ms)")); - printf (" %s\n", _("which triggers a WARNING or CRITICAL state, and is the percentage of")); - printf (" %s\n", _("packet loss to trigger an alarm state.")); + printf (" %s\n", _("THRESHOLD is ,%% where is the round trip average travel time (ms)")); + printf (" %s\n", _("which triggers a WARNING or CRITICAL state, and is the percentage of")); + printf (" %s\n", _("packet loss to trigger an alarm state.")); printf (_(UT_SUPPORT)); } diff --git a/plugins/check_game.c b/plugins/check_game.c index aede055..0e4120d 100644 --- a/plugins/check_game.c +++ b/plugins/check_game.c @@ -78,7 +78,7 @@ main (int argc, char **argv) setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - + if (process_arguments (argc, argv) == ERROR) usage_va(_("Could not parse arguments")); @@ -87,7 +87,7 @@ main (int argc, char **argv) /* create the command line to execute */ asprintf (&command_line, "%s -raw %s -%s %s", PATH_TO_QSTAT, QSTAT_DATA_DELIMITER, game_type, server_ip); - + if (port) asprintf (&command_line, "%s:%-d", command_line, port); @@ -298,11 +298,11 @@ print_help (void) printf (_("This plugin tests game server connections with the specified host.")); printf ("\n\n"); - + print_usage (); printf (_(UT_HELP_VRSN)); - + printf (" %s\n", "-p"); printf (" %s\n", _("Optional port of which to connect")); printf (" %s\n", "gf"); @@ -314,13 +314,11 @@ print_help (void) printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); + printf ("\n"); printf ("%s\n", _("Notes:")); - - printf ("%s\n", _("This plugin uses the 'qstat' command, the popular game server status query tool .")); - - printf ("%s\n", _("If you don't have the package installed, you will need to download it from")); - - printf ("%s\n", _("http://www.activesw.com/people/steve/qstat.html before you can use this plugin.")); + printf (" %s\n", _("This plugin uses the 'qstat' command, the popular game server status query tool.")); + printf (" %s\n", _("If you don't have the package installed, you will need to download it from")); + printf (" %s\n", _("http://www.activesw.com/people/steve/qstat.html before you can use this plugin.")); printf (_(UT_SUPPORT)); } diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c index 6bcffae..e20a76d 100644 --- a/plugins/check_hpjd.c +++ b/plugins/check_hpjd.c @@ -393,7 +393,7 @@ print_help (void) printf ("%s\n", _("Net-snmp must be installed on the computer running the plugin.")); printf ("\n\n"); - + print_usage (); printf (_(UT_HELP_VRSN)); @@ -402,6 +402,7 @@ print_help (void) printf (" %s", _("The SNMP community name ")); printf (_("(default=%s)"), DEFAULT_COMMUNITY); + printf ("\n"); printf (_(UT_SUPPORT)); } diff --git a/plugins/check_http.c b/plugins/check_http.c index 82cd1d9..81071d7 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -774,7 +774,7 @@ check_http (void) } else { asprintf (&buf, "%sContent-Type: application/x-www-form-urlencoded\r\n", buf); } - + asprintf (&buf, "%sContent-Length: %i\r\n\r\n", buf, (int)strlen (http_post_data)); asprintf (&buf, "%s%s%s", buf, http_post_data, CRLF); } @@ -936,7 +936,7 @@ check_http (void) } /* end if (http_status >= 300) */ } /* end else (server_expect_yn) */ - + if (maximum_age >= 0) { check_document_dates (header); } @@ -1048,7 +1048,7 @@ redir (char *pos, char *status_line) addr = malloc (MAX_IPV4_HOSTLENGTH + 1); if (addr == NULL) die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate addr\n")); - + url = malloc (strcspn (pos, "\r\n")); if (url == NULL) die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate url\n")); @@ -1322,7 +1322,7 @@ print_help (void) printf (" %s\n", _("When the certificate of 'www.verisign.com' is valid for more than 14 days,")); printf (" %s\n", _("a STATE_OK is returned. When the certificate is still valid, but for less than")); printf (" %s\n", _("14 days, a STATE_WARNING is returned. A STATE_CRITICAL will be returned when")); - printf (" %s\n\n", _("the certificate is expired.")); + printf (" %s\n", _("the certificate is expired.")); #endif printf (_(UT_SUPPORT)); diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c index c6ea284..937f84c 100644 --- a/plugins/check_ide_smart.c +++ b/plugins/check_ide_smart.c @@ -484,13 +484,13 @@ print_help (void) printf (COPYRIGHT, copyright, email); printf (_("This plugin checks a local hard drive with the (Linux specific) SMART interface [http://smartlinux.sourceforge.net/smart/index.php].")); - + printf ("\n\n"); - + print_usage (); printf (_(UT_HELP_VRSN)); - + printf (" %s\n", "-d, --device=DEVICE"); printf (" %s\n", _("Select device DEVICE")); printf (" %s\n", _("Note: if the device is selected with this option, _no_ other options are accepted")); @@ -503,7 +503,7 @@ print_help (void) printf (" %s\n", "-0, --auto-off"); printf (" %s\n", _("Turn off automatic offline tests")); printf (" %s\n", "-n, --nagios"); - printf (" %s\n\n", _("Output suitable for Nagios")); + printf (" %s\n", _("Output suitable for Nagios")); printf (_(UT_SUPPORT)); } diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 582f9cc..74ca3b0 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c @@ -393,7 +393,7 @@ print_help (void) printf (COPYRIGHT, copyright, email); printf ("\n\n"); - + print_usage (); printf (_(UT_HELP_VRSN)); @@ -429,12 +429,12 @@ print_help (void) printf (_(UT_VERBOSE)); - printf ("\n%s\n", _("Note:")); - printf ("%s\n", _("If this plugin is called via 'check_ldaps', method 'STARTTLS' will be")); - printf (_("implied (using default port %i) unless --port=636 is specified. In that case %s"), DEFAULT_PORT, "\n"); - printf ("%s\n", _("'SSL on connect' will be used no matter how the plugin was called.")); - printf ("%s\n", _("This detection is deprecated, please use 'check_ldap' with the '--starttls' or '--ssl' flags")); - printf ("%s\n", _("to define the behaviour explicitly instead.")); + printf ("\n%s\n", _("Notes:")); + printf (" %s\n", _("If this plugin is called via 'check_ldaps', method 'STARTTLS' will be")); + printf (_(" implied (using default port %i) unless --port=636 is specified. In that case %s"), DEFAULT_PORT, "\n"); + printf (" %s\n", _("'SSL on connect' will be used no matter how the plugin was called.")); + printf (" %s\n", _("This detection is deprecated, please use 'check_ldap' with the '--starttls' or '--ssl' flags")); + printf (" %s\n", _("to define the behaviour explicitly instead.")); printf (_(UT_SUPPORT)); } diff --git a/plugins/check_load.c b/plugins/check_load.c index a60858f..f4faa31 100644 --- a/plugins/check_load.c +++ b/plugins/check_load.c @@ -303,7 +303,7 @@ print_help (void) printf (_("This plugin tests the current system load average.")); printf ("\n\n"); - + print_usage (); printf (_(UT_HELP_VRSN)); diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c index 158bb8f..cf77f8b 100644 --- a/plugins/check_mrtg.c +++ b/plugins/check_mrtg.c @@ -323,7 +323,7 @@ print_help (void) printf ("%s\n", _("two variables recorded in an MRTG log file.")); printf ("\n\n"); - + print_usage (); printf (_(UT_HELP_VRSN)); @@ -346,25 +346,27 @@ print_help (void) printf (" %s\n", _("Option units label for data (Example: Packets/Sec, Errors/Sec,")); printf (" %s\n", _("\"Bytes Per Second\", \"%% Utilization\")")); - printf ("%s\n", _("If the value exceeds the threshold, a WARNING status is returned. If")); - printf ("%s\n", _("the value exceeds the threshold, a CRITICAL status is returned. If")); - printf ("%s\n", _("the data in the log file is older than old, a WARNING")); - printf ("%s\n", _("status is returned and a warning message is printed.")); + printf ("\n"); + printf (" %s\n", _("If the value exceeds the threshold, a WARNING status is returned. If")); + printf (" %s\n", _("the value exceeds the threshold, a CRITICAL status is returned. If")); + printf (" %s\n", _("the data in the log file is older than old, a WARNING")); + printf (" %s\n", _("status is returned and a warning message is printed.")); - printf ("%s\n", _("This plugin is useful for monitoring MRTG data that does not correspond to")); - printf ("%s\n", _("bandwidth usage. (Use the check_mrtgtraf plugin for monitoring bandwidth).")); - printf ("%s\n", _("It can be used to monitor any kind of data that MRTG is monitoring - errors,")); - printf ("%s\n", _("packets/sec, etc. I use MRTG in conjuction with the Novell NLM that allows")); - printf ("%s\n", _("me to track processor utilization, user connections, drive space, etc and")); - printf ("%s\n\n", _("this plugin works well for monitoring that kind of data as well.")); + printf ("\n"); + printf (" %s\n", _("This plugin is useful for monitoring MRTG data that does not correspond to")); + printf (" %s\n", _("bandwidth usage. (Use the check_mrtgtraf plugin for monitoring bandwidth).")); + printf (" %s\n", _("It can be used to monitor any kind of data that MRTG is monitoring - errors,")); + printf (" %s\n", _("packets/sec, etc. I use MRTG in conjuction with the Novell NLM that allows")); + printf (" %s\n", _("me to track processor utilization, user connections, drive space, etc and")); + printf (" %s\n\n", _("this plugin works well for monitoring that kind of data as well.")); printf ("%s\n", _("Notes:")); printf (" %s\n", _("- This plugin only monitors one of the two variables stored in the MRTG log")); - printf (" %s\n", _(" file. If you want to monitor both values you will have to define two")); - printf (" %s\n", _(" commands with different values for the argument. Of course,")); - printf (" %s\n", _("you can always hack the code to make this plugin work for you...")); + printf (" %s\n", _("file. If you want to monitor both values you will have to define two")); + printf (" %s\n", _("commands with different values for the argument. Of course,")); + printf (" %s\n", _("you can always hack the code to make this plugin work for you...")); printf (" %s\n", _("- MRTG stands for the Multi Router Traffic Grapher. It can be downloaded from")); - printf (" %s\n", "http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"); + printf (" %s\n", "http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"); printf (_(UT_SUPPORT)); } diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c index 97627aa..5ba5cdc 100644 --- a/plugins/check_mrtgtraf.c +++ b/plugins/check_mrtgtraf.c @@ -359,6 +359,7 @@ print_help (void) printf (" %s\n", "-c, --critical"); printf (" %s\n", _("Critical threshold pair ,")); + printf ("\n"); printf ("%s\n", _("Notes:")); printf (" %s\n", _("- MRTG stands for Multi Router Traffic Grapher. It can be downloaded from")); printf (" %s\n", " http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html"); diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index ad15a77..ea2e30d 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c @@ -370,7 +370,7 @@ print_help (void) printf ("%s\n", _("This program tests connections to a mysql server")); printf ("\n\n"); - + print_usage (); printf (_(UT_HELP_VRSN)); @@ -391,8 +391,10 @@ print_help (void) printf (" %s\n", _("Exit with WARNING status if slave server is more than INTEGER seconds behind master")); printf (" %s\n", "-c, --critical"); printf (" %s\n", _("Exit with CRITICAL status if slave server is more then INTEGER seconds behind master")); + + printf ("\n"); printf (" %s\n", _("There are no required arguments. By default, the local database with")); - printf (_("a server listening on MySQL standard port %d will be checked\n"), MYSQL_PORT); + printf (_(" a server listening on MySQL standard port %d will be checked\n"), MYSQL_PORT); printf (_(UT_SUPPORT)); } diff --git a/plugins/check_mysql_query.c b/plugins/check_mysql_query.c index a168306..8c6a96c 100644 --- a/plugins/check_mysql_query.c +++ b/plugins/check_mysql_query.c @@ -302,9 +302,8 @@ print_help (void) printf (" ==> %s <==\n", _("IMPORTANT: THIS FORM OF AUTHENTICATION IS NOT SECURE!!!")); printf ("\n"); - - printf ("%s\n", _("A query is required. The result from the query should be numeric.")); - printf ("%s\n", _("For extra security, create a user with minimal access.")); + printf (" %s\n", _("A query is required. The result from the query should be numeric.")); + printf (" %s\n", _("For extra security, create a user with minimal access.")); printf (_(UT_SUPPORT)); } diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c index b3088a1..1f8df33 100644 --- a/plugins/check_nagios.c +++ b/plugins/check_nagios.c @@ -285,7 +285,7 @@ print_help (void) printf ("%s\n", _("It also checks the process table for a process matching the command argument.")); printf ("\n\n"); - + print_usage (); printf (_(UT_HELP_VRSN)); @@ -300,6 +300,7 @@ print_help (void) printf ("\n"); printf ("%s\n", _("Examples:")); printf (" %s\n", "check_nagios -e 5 -F /usr/local/nagios/var/status.log -C /usr/local/nagios/bin/nagios"); + printf (_(UT_SUPPORT)); } diff --git a/plugins/check_nt.c b/plugins/check_nt.c index 60d58fd..681b842 100644 --- a/plugins/check_nt.c +++ b/plugins/check_nt.c @@ -157,7 +157,7 @@ int main(int argc, char **argv){ return_code=STATE_OK; temp_string = strdup (_("CPU Load")); temp_string_perf = strdup (" "); - + /* loop until one of the parameters is wrong or not present */ while (lvalue_list[0+offset]> (unsigned long)0 && lvalue_list[0+offset]<=(unsigned long)17280 && @@ -185,7 +185,7 @@ int main(int argc, char **argv){ asprintf(&temp_string_perf,"%s%s",temp_string_perf,perfdata); offset+=3; /* move across the array */ } - + if (strlen(temp_string)>10) { /* we had at least one loop */ output_message = strdup (temp_string); perfdata = temp_string_perf; @@ -640,7 +640,7 @@ void print_help(void) printf ("%s\n", _("Windows NT/2000/XP/2003 server.")); printf ("\n\n"); - + print_usage(); printf (_(UT_HELP_VRSN)); @@ -720,14 +720,17 @@ void print_help(void) printf (" %s\n", _(" configuration files.")); printf (" %s\n", _("Some examples:")); printf (" %s\n\n", _("check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process")); - printf (_("Notes:")); + + printf ("%s\n", _("Notes:")); printf (" %s\n", _("- The NSClient service should be running on the server to get any information")); - printf (" %s\n", "(http://nsclient.ready2run.nl)."); + printf (" %s\n", "(http://nsclient.ready2run.nl)."); printf (" %s\n", _("- Critical thresholds should be lower than warning thresholds")); printf (" %s\n", _("- Default port 1248 is sometimes in use by other services. The error")); - printf (" %s\n", _("output when this happens contains \"Cannot map xxxxx to protocol number\".")); - printf (" %s\n", _("One fix for this is to change the port to something else on check_nt ")); - printf (" %s\n", _("and on the client service it\'s connecting to.")); + printf (" %s\n", _("output when this happens contains \"Cannot map xxxxx to protocol number\".")); + printf (" %s\n", _("One fix for this is to change the port to something else on check_nt ")); + printf (" %s\n", _("and on the client service it\'s connecting to.")); + + printf (_(UT_SUPPORT)); } diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c index 28a8f89..ec8cd13 100644 --- a/plugins/check_ntp.c +++ b/plugins/check_ntp.c @@ -872,7 +872,6 @@ void print_help(void){ printf (_(UT_SUPPORT)); - printf("\n"); printf ("%s\n", _("WARNING: check_ntp is deprecated. Please use check_ntp_peer or")); printf ("%s\n\n", _("check_ntp_time istead.")); } diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index 536883d..f6c33d6 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c @@ -602,7 +602,7 @@ int main(int argc, char *argv[]){ asprintf(&result_line, "%s %s,", result_line, _("Server not synchronized")); else if(li_alarm) asprintf(&result_line, "%s %s,", result_line, _("Server has the LI_ALARM bit set")); - + if(offset_result == STATE_UNKNOWN){ asprintf(&result_line, "%s %s", result_line, _("Offset unknown")); asprintf(&perfdata_line, ""); diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c index a1a3f35..3c8d5b9 100644 --- a/plugins/check_nwstat.c +++ b/plugins/check_nwstat.c @@ -518,14 +518,14 @@ main(int argc, char **argv) { result=STATE_OK; else result=STATE_WARNING; - + close(sd); my_tcp_connect (server_address, server_port, &sd); send_buffer = strdup ("S13\r\n"); result=send_tcp_request(sd,send_buffer,recv_buffer,sizeof(recv_buffer)); temp_buffer=strtok(recv_buffer,"\r\n"); - + asprintf (&output_message,_("Directory Services Database is %s (DS version %s)"),(result==STATE_OK)?"open":"closed",temp_buffer); /* check to see if logins are enabled */ @@ -593,7 +593,7 @@ main(int argc, char **argv) { return result; max_packet_receive_buffers=atoi(recv_buffer); - + percent_used_packet_receive_buffers=(unsigned long)(((double)used_packet_receive_buffers/(double)max_packet_receive_buffers)*100.0); if (vars_to_check==UPRB) { @@ -607,7 +607,7 @@ main(int argc, char **argv) { else if (check_warning_value==TRUE && percent_used_packet_receive_buffers >= warning_value) result=STATE_WARNING; } - + asprintf (&output_message,_("%lu of %lu (%lu%%) packet receive buffers used"),used_packet_receive_buffers,max_packet_receive_buffers,percent_used_packet_receive_buffers); /* check SAP table entries */ @@ -623,9 +623,9 @@ main(int argc, char **argv) { result=send_tcp_request(sd,send_buffer,recv_buffer,sizeof(recv_buffer)); if (result!=STATE_OK) return result; - + sap_entries=atoi(recv_buffer); - + if (check_critical_value==TRUE && sap_entries >= critical_value) result=STATE_CRITICAL; else if (check_warning_value==TRUE && sap_entries >= warning_value) @@ -811,9 +811,9 @@ main(int argc, char **argv) { result=send_tcp_request(sd,send_buffer,recv_buffer,sizeof(recv_buffer)); if (result!=STATE_OK) return result; - + open_files=atoi(recv_buffer); - + if (check_critical_value==TRUE && open_files >= critical_value) result=STATE_CRITICAL; else if (check_warning_value==TRUE && open_files >= warning_value) @@ -836,9 +836,9 @@ main(int argc, char **argv) { result=send_tcp_request(sd,send_buffer,recv_buffer,sizeof(recv_buffer)); if (result!=STATE_OK) return result; - + abended_threads=atoi(recv_buffer); - + if (check_critical_value==TRUE && abended_threads >= critical_value) result=STATE_CRITICAL; else if (check_warning_value==TRUE && abended_threads >= warning_value) @@ -860,9 +860,9 @@ main(int argc, char **argv) { result=send_tcp_request(sd,send_buffer,recv_buffer,sizeof(recv_buffer)); if (result!=STATE_OK) return result; - + max_service_processes=atoi(recv_buffer); - + close(sd); my_tcp_connect (server_address, server_port, &sd); @@ -870,9 +870,9 @@ main(int argc, char **argv) { result=send_tcp_request(sd,send_buffer,recv_buffer,sizeof(recv_buffer)); if (result!=STATE_OK) return result; - + current_service_processes=atoi(recv_buffer); - + if (check_critical_value==TRUE && current_service_processes >= critical_value) result=STATE_CRITICAL; else if (check_warning_value==TRUE && current_service_processes >= warning_value) @@ -1673,7 +1673,7 @@ void print_help(void) printf (" %s\n", _(" (available from http://www.engr.wisc.edu/~drews/mrtg/)")); printf (" %s\n", _("- Values for critical thresholds should be lower than warning thresholds")); printf (" %s\n", _(" when the following variables are checked: VPF, VKF, LTCH, CBUFF, DCB, ")); - printf (" %s\n", _(" TCB, LRUS and LRUM.\n")); + printf (" %s\n", _(" TCB, LRUS and LRUM.")); printf (_(UT_SUPPORT)); } diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c index 33003d9..6c3675b 100644 --- a/plugins/check_overcr.c +++ b/plugins/check_overcr.c @@ -447,13 +447,13 @@ print_help (void) printf (_(UT_VERBOSE)); printf ("\n"); printf ("%s\n", _("Notes:")); - - printf ("%s\n", _("For the available options, the critical threshold value should always be")); - printf ("%s\n\n", _("higher than the warning threshold value, EXCEPT with the uptime variable")); + + printf (" %s\n", _("For the available options, the critical threshold value should always be")); + printf (" %s\n\n", _("higher than the warning threshold value, EXCEPT with the uptime variable")); printf ("%s\n", _("This plugin requres that Eric Molitors' Over-CR collector daemon be")); printf ("%s\n", _("running on the remote server.")); - printf ("%s\n", " Over-CR can be downloaded from http://www.molitor.org/overcr"); + printf ("%s\n", _("Over-CR can be downloaded from http://www.molitor.org/overcr")); printf ("%s\n", _("This plugin was tested with version 0.99.53 of the Over-CR collector")); printf (_(UT_SUPPORT)); diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c index 0563322..c721b07 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c @@ -438,9 +438,11 @@ print_help (void) printf (" %s\n", _("specified database, and then disconnects. If no database is specified, it")); printf (" %s\n", _("connects to the template1 database, which is present in every functioning")); printf (" %s\n\n", _("PostgreSQL DBMS.")); + printf (" %s\n", _("The plugin will connect to a local postmaster if no host is specified. To")); printf (" %s\n", _("connect to a remote host, be sure that the remote postmaster accepts TCP/IP")); printf (" %s\n\n", _("connections (start the postmaster with the -i option).")); + printf (" %s\n", _("Typically, the nagios user (unless the --logname option is used) should be")); printf (" %s\n", _("able to connect to the database without a password. The plugin can also send")); printf (" %s\n", _("a password, but no effort is made to obsure or encrypt the password.")); diff --git a/plugins/check_ping.c b/plugins/check_ping.c index 214e23b..ac43a0c 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c @@ -572,19 +572,17 @@ print_help (void) printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); + printf ("\n"); printf ("%s\n", _("THRESHOLD is ,% where is the round trip average travel")); printf ("%s\n", _("time (ms) which triggers a WARNING or CRITICAL state, and is the")); printf ("%s\n", _("percentage of packet loss to trigger an alarm state.")); - printf ("\n\n"); - + printf ("\n"); printf ("%s\n", _("This plugin uses the ping command to probe the specified host for packet loss")); printf ("%s\n", _("(percentage) and round trip average (milliseconds). It can produce HTML output")); printf ("%s\n", _("linking to a traceroute CGI contributed by Ian Cass. The CGI can be found in")); printf ("%s\n", _("the contrib area of the downloads section at http://www.nagios.org/")); - printf ("\n\n"); - printf (_(UT_SUPPORT)); } diff --git a/plugins/check_procs.c b/plugins/check_procs.c index d56d457..816da1b 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c @@ -712,7 +712,7 @@ print_help (void) printf ("%s\n", _("of processes. Search filters can be applied to limit the processes to check.")); printf ("\n\n"); - + print_usage (); printf ("%s\n", _("Required Arguments:")); @@ -781,7 +781,7 @@ be the total number of running processes\n\n")); printf (" %s\n", "check_procs -w 50000 -c 100000 --metric=VSZ"); printf (" %s\n\n", _("Alert if vsz of any processes over 50K or 100K")); printf (" %s\n", "check_procs -w 10 -c 20 --metric=CPU"); - printf (" %s\n\n", _("Alert if cpu of any processes over 10%% or 20%%")); + printf (" %s\n", _("Alert if cpu of any processes over 10%% or 20%%")); printf (_(UT_SUPPORT)); } diff --git a/plugins/check_radius.c b/plugins/check_radius.c index ed93787..2afe3c8 100644 --- a/plugins/check_radius.c +++ b/plugins/check_radius.c @@ -333,7 +333,8 @@ print_help (void) printf (_(UT_TIMEOUT), timeout_interval); - printf ("%s\n", _("This plugin tests a radius server to see if it is accepting connections.")); + printf ("\n"); + printf ("%s\n", _("This plugin tests a radius server to see if it is accepting connections.")); printf ("%s\n", _("The server to test must be specified in the invocation, as well as a user")); printf ("%s\n", _("name and password. A configuration file may also be present. The format of")); printf ("%s\n", _("the configuration file is described in the radiusclient library sources.")); diff --git a/plugins/check_real.c b/plugins/check_real.c index 03fef82..68a6c1e 100644 --- a/plugins/check_real.c +++ b/plugins/check_real.c @@ -433,6 +433,7 @@ print_help (void) printf (_(UT_VERBOSE)); + printf ("\n"); printf ("%s\n", _("This plugin will attempt to open an RTSP connection with the host.")); printf ("%s\n", _("Successul connects return STATE_OK, refusals and timeouts return")); printf ("%s\n", _("STATE_CRITICAL, other errors return STATE_UNKNOWN. Successful connects,")); diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 0406ae4..b943565 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -993,27 +993,30 @@ print_help (void) printf (_(UT_VERBOSE)); - printf ("%s\n", _("This plugin uses the 'snmpget' command included with the NET-SNMP package.")); + printf ("\n"); + printf ("%s\n", _("This plugin uses the 'snmpget' command included with the NET-SNMP package.")); printf ("%s\n", _("if you don't have the package installed, you will need to download it from")); printf ("%s\n", _("http://net-snmp.sourceforge.net before you can use this plugin.")); - printf ("%s\n", _("- Multiple OIDs may be indicated by a comma- or space-delimited list (lists with")); - printf ("%s\n", _(" internal spaces must be quoted) [max 8 OIDs]")); - - printf ("%s\n", _("- Ranges are inclusive and are indicated with colons. When specified as")); - printf ("%s\n", _(" 'min:max' a STATE_OK will be returned if the result is within the indicated")); - printf ("%s\n", _(" range or is equal to the upper or lower bound. A non-OK state will be")); - printf ("%s\n", _(" returned if the result is outside the specified range.")); - - printf ("%s\n", _("- If specified in the order 'max:min' a non-OK state will be returned if the")); - printf ("%s\n", _(" result is within the (inclusive) range.")); - - printf ("%s\n", _("- Upper or lower bounds may be omitted to skip checking the respective limit.")); - printf ("%s\n", _("- Bare integers are interpreted as upper limits.")); - printf ("%s\n", _("- When checking multiple OIDs, separate ranges by commas like '-w 1:10,1:,:20'")); - printf ("%s\n", _("- Note that only one string and one regex may be checked at present")); - printf ("%s\n", _("- All evaluation methods other than PR, STR, and SUBSTR expect that the value")); - printf ("%s\n", _(" returned from the SNMP query is an unsigned integer.")); + printf ("\n"); + printf ("%s\n", _("Notes:")); + printf (" %s\n", _("- Multiple OIDs may be indicated by a comma- or space-delimited list (lists with")); + printf (" %s\n", _("internal spaces must be quoted) [max 8 OIDs]")); + + printf (" %s\n", _("- Ranges are inclusive and are indicated with colons. When specified as")); + printf (" %s\n", _("'min:max' a STATE_OK will be returned if the result is within the indicated")); + printf (" %s\n", _("range or is equal to the upper or lower bound. A non-OK state will be")); + printf (" %s\n", _("returned if the result is outside the specified range.")); + + printf (" %s\n", _("- If specified in the order 'max:min' a non-OK state will be returned if the")); + printf (" %s\n", _("result is within the (inclusive) range.")); + + printf (" %s\n", _("- Upper or lower bounds may be omitted to skip checking the respective limit.")); + printf (" %s\n", _("- Bare integers are interpreted as upper limits.")); + printf (" %s\n", _("- When checking multiple OIDs, separate ranges by commas like '-w 1:10,1:,:20'")); + printf (" %s\n", _("- Note that only one string and one regex may be checked at present")); + printf (" %s\n", _("- All evaluation methods other than PR, STR, and SUBSTR expect that the value")); + printf (" %s\n", _("returned from the SNMP query is an unsigned integer.")); printf (_(UT_SUPPORT)); } diff --git a/plugins/check_swap.c b/plugins/check_swap.c index c8b143c..1c627ac 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c @@ -526,7 +526,7 @@ print_help (void) printf ("%s\n", _("Check swap space on local machine.")); printf ("\n\n"); - + print_usage (); printf (_(UT_HELP_VRSN)); @@ -542,9 +542,10 @@ print_help (void) printf (" %s\n", "-a, --allswaps"); printf (" %s\n", _("Conduct comparisons for all swap partitions, one by one")); printf (_(UT_VERBOSE)); + printf ("\n"); printf ("%s\n", _("Notes:")); - printf (" %s\n", _("On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.\n")); + printf (" %s\n", _("On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.")); printf (_(UT_SUPPORT)); } diff --git a/plugins/check_ups.c b/plugins/check_ups.c index 73702f5..666485e 100644 --- a/plugins/check_ups.c +++ b/plugins/check_ups.c @@ -601,7 +601,7 @@ print_help (void) printf ("Copyright (c) 2004 Arnaud Quette \n"); printf (COPYRIGHT, copyright, email); - printf ("%s\n", _("This plugin tests the UPS service on the specified host.Network UPS Tools ")); + printf ("%s\n", _("This plugin tests the UPS service on the specified host. Network UPS Tools")); printf ("%s\n", _("from www.networkupstools.org must be running for thisplugin to work.")); printf ("\n\n"); @@ -628,22 +628,24 @@ print_help (void) /* printf (_(UT_VERBOSE)); */ printf ("\n"); - printf ("%s\n", _("Notes:")); - printf ("%s\n", _("This plugin attempts to determine the status of a UPS (Uninterruptible Power")); printf ("%s\n", _("Supply) on a local or remote host. If the UPS is online or calibrating, the")); printf ("%s\n", _("plugin will return an OK state. If the battery is on it will return a WARNING")); printf ("%s\n", _("state.If the UPS is off or has a low battery the plugin will return a CRITICAL")); - printf ("%s\n\n", _("state.")); + printf ("%s\n", _("state.")); - printf ("%s\n", _("You may also specify a variable to check [such as temperature, utility voltage,")); - printf ("%s\n", _("battery load, etc.] as well as warning and critical thresholds for the value of")); - printf ("%s\n", _("that variable. If the remote host has multiple UPS that are being monitored you")); - printf ("%s\n", _("will have to use the [ups] option to specify which UPS to check.")); + printf ("\n"); + printf ("%s\n", _("Notes:")); + printf (" %s\n", _("You may also specify a variable to check (such as temperature, utility voltage,")); + printf (" %s\n", _("battery load, etc.) as well as warning and critical thresholds for the value")); + printf (" %s\n", _("of that variable. If the remote host has multiple UPS that are being monitored")); + printf (" %s\n", _("you will have to use the --ups option to specify which UPS to check.")); - printf ("%s\n", _("This plugin requires that the UPSD daemon distributed with Russel Kroll's")); - printf ("%s\n", _("Smart UPS Tools be installed on the remote host. If you do not have the")); - printf ("%s\n", _("package installed on your system, you can download it from http://www.networkupstools.org")); + printf ("\n"); + printf (" %s\n", _("This plugin requires that the UPSD daemon distributed with Russel Kroll's")); + printf (" %s\n", _("Smart UPS Tools be installed on the remote host. If you do not have the")); + printf (" %s\n", _("package installed on your system, you can download it from")); + printf (" %s\n", _("http://www.networkupstools.org")); printf (_(UT_SUPPORT)); } diff --git a/plugins/utils.h b/plugins/utils.h index bb99ee1..def8970 100644 --- a/plugins/utils.h +++ b/plugins/utils.h @@ -173,10 +173,15 @@ char *fperfdata (const char *, -t, --timeout=INTEGER\n\ Seconds before connection times out (default: %d)\n" +#define UT_THRESHOLDS_NOTES "\ + See:\n\ + http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT\n\ + for THRESHOLD format and examples.\n" + #define UT_SUPPORT "\n\ Send email to nagios-users@lists.sourceforge.net if you have questions\n\ regarding use of this software. To submit patches or suggest improvements,\n\ -send email to nagiosplug-devel@lists.sourceforge.net\n" +send email to nagiosplug-devel@lists.sourceforge.net\n\n" #define UT_NOWARRANTY "\n\ The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\n\ -- 2.30.2