diff options
Diffstat (limited to 'plugins/utils.h')
| -rw-r--r-- | plugins/utils.h | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/plugins/utils.h b/plugins/utils.h index 325d6f02..1f376542 100644 --- a/plugins/utils.h +++ b/plugins/utils.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #ifndef NP_UTILS_H | 1 | #ifndef NP_UTILS_H |
| 2 | #define NP_UTILS_H | 2 | #define NP_UTILS_H |
| 3 | /* Header file for nagios plugins utils.c */ | 3 | /* Header file for monitoring plugins utils.c */ |
| 4 | 4 | ||
| 5 | /* This file should be included in all plugins */ | 5 | /* This file should be included in all plugins */ |
| 6 | 6 | ||
| @@ -131,7 +131,7 @@ char *fperfdata (const char *, | |||
| 131 | {"warning",required_argument,0,'w'},\ | 131 | {"warning",required_argument,0,'w'},\ |
| 132 | {"hostname",required_argument,0,'H'} | 132 | {"hostname",required_argument,0,'H'} |
| 133 | 133 | ||
| 134 | #define COPYRIGHT "Copyright (c) %s Nagios Plugin Development Team\n\ | 134 | #define COPYRIGHT "Copyright (c) %s Monitoring Plugins Development Team\n\ |
| 135 | \t<%s>\n\n" | 135 | \t<%s>\n\n" |
| 136 | 136 | ||
| 137 | #define UT_HLP_VRS _("\ | 137 | #define UT_HLP_VRS _("\ |
| @@ -159,7 +159,8 @@ char *fperfdata (const char *, | |||
| 159 | 159 | ||
| 160 | #define UT_VERBOSE _("\ | 160 | #define UT_VERBOSE _("\ |
| 161 | -v, --verbose\n\ | 161 | -v, --verbose\n\ |
| 162 | Show details for command-line debugging (Nagios may truncate output)\n") | 162 | Show details for command-line debugging (output may be truncated by\n\ |
| 163 | the monitoring system)\n") | ||
| 163 | 164 | ||
| 164 | #define UT_WARN_CRIT _("\ | 165 | #define UT_WARN_CRIT _("\ |
| 165 | -w, --warning=DOUBLE\n\ | 166 | -w, --warning=DOUBLE\n\ |
| @@ -173,15 +174,19 @@ char *fperfdata (const char *, | |||
| 173 | -c, --critical=RANGE\n\ | 174 | -c, --critical=RANGE\n\ |
| 174 | Critical range\n") | 175 | Critical range\n") |
| 175 | 176 | ||
| 176 | #define UT_TIMEOUT _("\ | 177 | #define UT_CONN_TIMEOUT _("\ |
| 177 | -t, --timeout=INTEGER\n\ | 178 | -t, --timeout=INTEGER\n\ |
| 178 | Seconds before connection times out (default: %d)\n") | 179 | Seconds before connection times out (default: %d)\n") |
| 179 | 180 | ||
| 181 | #define UT_PLUG_TIMEOUT _("\ | ||
| 182 | -t, --timeout=INTEGER\n\ | ||
| 183 | Seconds before plugin times out (default: %d)\n") | ||
| 184 | |||
| 180 | #ifdef NP_EXTRA_OPTS | 185 | #ifdef NP_EXTRA_OPTS |
| 181 | #define UT_EXTRA_OPTS _("\ | 186 | #define UT_EXTRA_OPTS _("\ |
| 182 | --extra-opts=[section][@file]\n\ | 187 | --extra-opts=[section][@file]\n\ |
| 183 | Read options from an ini file. See\n\ | 188 | Read options from an ini file. See\n\ |
| 184 | https://www.nagios-plugins.org/doc/extra-opts.html\n\ | 189 | https://www.monitoring-plugins.org/doc/extra-opts.html\n\ |
| 185 | for usage and examples.\n") | 190 | for usage and examples.\n") |
| 186 | #else | 191 | #else |
| 187 | #define UT_EXTRA_OPTS "" | 192 | #define UT_EXTRA_OPTS "" |
| @@ -189,16 +194,16 @@ char *fperfdata (const char *, | |||
| 189 | 194 | ||
| 190 | #define UT_THRESHOLDS_NOTES _("\ | 195 | #define UT_THRESHOLDS_NOTES _("\ |
| 191 | See:\n\ | 196 | See:\n\ |
| 192 | https://www.nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT\n\ | 197 | https://www.monitoring-plugins.org/doc/guidelines.html#THRESHOLDFORMAT\n\ |
| 193 | for THRESHOLD format and examples.\n") | 198 | for THRESHOLD format and examples.\n") |
| 194 | 199 | ||
| 195 | #define UT_SUPPORT _("\n\ | 200 | #define UT_SUPPORT _("\n\ |
| 196 | Send email to help@nagios-plugins.org if you have questions regarding use\n\ | 201 | Send email to help@monitoring-plugins.org if you have questions regarding\n\ |
| 197 | of this software. To submit patches or suggest improvements, send email to\n\ | 202 | use of this software. To submit patches or suggest improvements, send email\n\ |
| 198 | devel@nagios-plugins.org\n\n") | 203 | to devel@monitoring-plugins.org\n\n") |
| 199 | 204 | ||
| 200 | #define UT_NOWARRANTY _("\n\ | 205 | #define UT_NOWARRANTY _("\n\ |
| 201 | The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\n\ | 206 | The monitoring plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\n\ |
| 202 | copies of the plugins under the terms of the GNU General Public License.\n\ | 207 | copies of the plugins under the terms of the GNU General Public License.\n\ |
| 203 | For more information about these matters, see the file named COPYING.\n") | 208 | For more information about these matters, see the file named COPYING.\n") |
| 204 | 209 | ||
