diff options
| author | Spenser Reinhardt <sreinhardt@nagios.com> | 2014-01-20 14:18:11 -0600 |
|---|---|---|
| committer | Jan Wagner <waja@cyconet.org> | 2014-01-21 11:34:33 +0100 |
| commit | 80e506a2f72b66dee5c607b4dd42b26f505762dd (patch) | |
| tree | e2a125963e43aa570a3b1cf2397d6760dba193c9 | |
| parent | 212575b8583616058dc4ced59e38d7d36529800a (diff) | |
| download | monitoring-plugins-80e506a2f72b66dee5c607b4dd42b26f505762dd.tar.gz | |
plugins/utils.h: Addition of plugin timeout msg.
Addition of timeout message for non-network plugins(UT_PLUG_TIMEOUT), and alteration of UT_TIMEOUT to UT_CONN_TIMEOUT for networked checks. Alteration of pull request #1209 tracker by user awiddersheim.
| -rw-r--r-- | plugins/utils.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/utils.h b/plugins/utils.h index 657d4bfa..b9b488ce 100644 --- a/plugins/utils.h +++ b/plugins/utils.h | |||
| @@ -173,10 +173,14 @@ char *fperfdata (const char *, | |||
| 173 | -c, --critical=RANGE\n\ | 173 | -c, --critical=RANGE\n\ |
| 174 | Critical range\n") | 174 | Critical range\n") |
| 175 | 175 | ||
| 176 | #define UT_TIMEOUT _("\ | 176 | #define UT_CONN_TIMEOUT _("\ |
| 177 | -t, --timeout=INTEGER\n\ | 177 | -t, --timeout=INTEGER\n\ |
| 178 | Seconds before connection times out (default: %d)\n") | 178 | Seconds before connection times out (default: %d)\n") |
| 179 | 179 | ||
| 180 | #define UT_PLUG_TIMEOUT _("\ | ||
| 181 | -t, --timeout=INTEGER\n\ | ||
| 182 | Seconds before plugin times out (default: %d)\n") | ||
| 183 | |||
| 180 | #ifdef NP_EXTRA_OPTS | 184 | #ifdef NP_EXTRA_OPTS |
| 181 | #define UT_EXTRA_OPTS _("\ | 185 | #define UT_EXTRA_OPTS _("\ |
| 182 | --extra-opts=[section][@file]\n\ | 186 | --extra-opts=[section][@file]\n\ |
