From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/427934-check_nt-uptime-perfdata.diff | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 web/attachments/427934-check_nt-uptime-perfdata.diff (limited to 'web/attachments/427934-check_nt-uptime-perfdata.diff') diff --git a/web/attachments/427934-check_nt-uptime-perfdata.diff b/web/attachments/427934-check_nt-uptime-perfdata.diff new file mode 100644 index 0000000..2423c42 --- /dev/null +++ b/web/attachments/427934-check_nt-uptime-perfdata.diff @@ -0,0 +1,10 @@ +--- plugins/check_nt.c.v0 2011-11-07 22:02:22.000000000 +0100 ++++ plugins/check_nt.c 2011-11-07 22:05:00.000000000 +0100 +@@ -202,7 +202,7 @@ int main(int argc, char **argv){ + updays = uptime / 86400; + uphours = (uptime % 86400) / 3600; + upminutes = ((uptime % 86400) % 3600) / 60; +- asprintf(&output_message,_("System Uptime - %u day(s) %u hour(s) %u minute(s)"),updays,uphours, upminutes); ++ asprintf(&output_message, _("System Uptime - %u day(s) %u hour(s) %u minute(s)|uptime=%lu"), updays, uphours, upminutes, uptime); + return_code=STATE_OK; + break; -- cgit v1.2.3-74-g34f1