aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_nt.c
diff options
context:
space:
mode:
authorGravatar Jan Wagner <waja@cyconet.org> 2014-04-04 12:42:59 +0600
committerGravatar Sam Kottler <shk@linux.com> 2014-04-04 12:42:59 +0600
commita271ad24f4e7ef5c5ef8d3ca208e7a3b66a37cda (patch)
tree8daa7234b217b5b7d8e7f45fd76d82e475081122 /plugins/check_nt.c
parent70314c62fc2d5829662959e528d1b314b73c7fbf (diff)
downloadmonitoring-plugins-a271ad24f4e7ef5c5ef8d3ca208e7a3b66a37cda.tar.gz
check_nt: add UPTIME to perfdata [sf#3434647]
Diffstat (limited to 'plugins/check_nt.c')
-rw-r--r--plugins/check_nt.c2
1 files changed, 1 insertions, 1 deletions
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){
updays = uptime / 86400;
uphours = (uptime % 86400) / 3600;
upminutes = ((uptime % 86400) % 3600) / 60;
- xasprintf(&output_message,_("System Uptime - %u day(s) %u hour(s) %u minute(s)"),updays,uphours, upminutes);
+ xasprintf(&output_message,_("System Uptime - %u day(s) %u hour(s) %u minute(s)|uptime=%lu"), updays, uphours, upminutes, uptime);
if (check_critical_value==TRUE && uptime <= critical_value)
return_code=STATE_CRITICAL;
else if (check_warning_value==TRUE && uptime <= warning_value)