diff options
author | Jan Wagner <waja@cyconet.org> | 2014-04-04 12:42:59 +0600 |
---|---|---|
committer | Sam Kottler <shk@linux.com> | 2014-04-04 12:42:59 +0600 |
commit | a271ad24f4e7ef5c5ef8d3ca208e7a3b66a37cda (patch) | |
tree | 8daa7234b217b5b7d8e7f45fd76d82e475081122 | |
parent | 70314c62fc2d5829662959e528d1b314b73c7fbf (diff) | |
download | monitoring-plugins-a271ad24f4e7ef5c5ef8d3ca208e7a3b66a37cda.tar.gz |
check_nt: add UPTIME to perfdata [sf#3434647]
-rw-r--r-- | THANKS.in | 1 | ||||
-rw-r--r-- | plugins/check_nt.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -307,3 +307,4 @@ Stéphane Bortzmeyer | |||
307 | Luca Corti | 307 | Luca Corti |
308 | Jethro Carr | 308 | Jethro Carr |
309 | Evgeni Golov | 309 | Evgeni Golov |
310 | Oskar Liljeblad | ||
diff --git a/plugins/check_nt.c b/plugins/check_nt.c index 1aa7ab51..cacf6651 100644 --- a/plugins/check_nt.c +++ b/plugins/check_nt.c | |||
@@ -203,7 +203,7 @@ int main(int argc, char **argv){ | |||
203 | updays = uptime / 86400; | 203 | updays = uptime / 86400; |
204 | uphours = (uptime % 86400) / 3600; | 204 | uphours = (uptime % 86400) / 3600; |
205 | upminutes = ((uptime % 86400) % 3600) / 60; | 205 | upminutes = ((uptime % 86400) % 3600) / 60; |
206 | xasprintf(&output_message,_("System Uptime - %u day(s) %u hour(s) %u minute(s)"),updays,uphours, upminutes); | 206 | xasprintf(&output_message,_("System Uptime - %u day(s) %u hour(s) %u minute(s)|uptime=%lu"), updays, uphours, upminutes, uptime); |
207 | if (check_critical_value==TRUE && uptime <= critical_value) | 207 | if (check_critical_value==TRUE && uptime <= critical_value) |
208 | return_code=STATE_CRITICAL; | 208 | return_code=STATE_CRITICAL; |
209 | else if (check_warning_value==TRUE && uptime <= warning_value) | 209 | else if (check_warning_value==TRUE && uptime <= warning_value) |