summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/utils.h')
-rw-r--r--plugins/utils.h28
1 files changed, 17 insertions, 11 deletions
diff --git a/plugins/utils.h b/plugins/utils.h
index 657d4bf..4c4aacc 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,31 +174,36 @@ 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 http://nagiosplugins.org/extra-opts\n\ 188 Read options from an ini file. See\n\
189 https://www.monitoring-plugins.org/doc/extra-opts.html\n\
184 for usage and examples.\n") 190 for usage and examples.\n")
185#else 191#else
186#define UT_EXTRA_OPTS "" 192#define UT_EXTRA_OPTS " \b"
187#endif 193#endif
188 194
189#define UT_THRESHOLDS_NOTES _("\ 195#define UT_THRESHOLDS_NOTES _("\
190 See:\n\ 196 See:\n\
191 http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT\n\ 197 https://www.monitoring-plugins.org/doc/guidelines.html#THRESHOLDFORMAT\n\
192 for THRESHOLD format and examples.\n") 198 for THRESHOLD format and examples.\n")
193 199
194#define UT_SUPPORT _("\n\ 200#define UT_SUPPORT _("\n\
195Send email to nagios-users@lists.sourceforge.net if you have questions\n\ 201Send email to help@monitoring-plugins.org if you have questions regarding\n\
196regarding use of this software. To submit patches or suggest improvements,\n\ 202use of this software. To submit patches or suggest improvements, send email\n\
197send email to nagiosplug-devel@lists.sourceforge.net\n\n") 203to devel@monitoring-plugins.org\n\n")
198 204
199#define UT_NOWARRANTY _("\n\ 205#define UT_NOWARRANTY _("\n\
200The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\n\ 206The Monitoring Plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\n\
201copies of the plugins under the terms of the GNU General Public License.\n\ 207copies of the plugins under the terms of the GNU General Public License.\n\
202For more information about these matters, see the file named COPYING.\n") 208For more information about these matters, see the file named COPYING.\n")
203 209