فهرست منبع

Revert "check_nt: add UPTIME to perfdata"

Decided to add options for the time unit for the perfdata.
This reverts commit f435b5740c7ea2e5c97d84dc4a303ab7f333714c.
abrist 12 سال پیش
والد
کامیت
cbc1846ca6
2فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 0 1
      THANKS.in
  2. 1 1
      plugins/check_nt.c

+ 0 - 1
THANKS.in

@@ -302,4 +302,3 @@ Sebastian Schmidt
 Simon Kainz
 Steve Weinreich
 Tim Laszlo
-Oskar Liljeblad

+ 1 - 1
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)|uptime=%lu"), updays, uphours, upminutes, uptime);
+		xasprintf(&output_message,_("System Uptime - %u day(s) %u hour(s) %u minute(s)"),updays,uphours, upminutes);
 		if (check_critical_value==TRUE && uptime <= critical_value)
 			return_code=STATE_CRITICAL;
 		else if (check_warning_value==TRUE && uptime <= warning_value)