check_nt: add UPTIME to perfdata [sf#3434647]

This commit is contained in:
Jan Wagner 2014-04-04 12:42:59 +06:00 committed by Sam Kottler
parent 70314c62fc
commit a271ad24f4
2 changed files with 2 additions and 1 deletions

View file

@ -307,3 +307,4 @@ Stéphane Bortzmeyer
Luca Corti
Jethro Carr
Evgeni Golov
Oskar Liljeblad

View file

@ -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)