diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:03:24 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:03:24 (GMT) |
commit | 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch) | |
tree | 1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/427934-check_nt-uptime-perfdata.diff | |
download | site-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz |
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts,
and configuration files.
Diffstat (limited to 'web/attachments/427934-check_nt-uptime-perfdata.diff')
-rw-r--r-- | web/attachments/427934-check_nt-uptime-perfdata.diff | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ | |||
1 | --- plugins/check_nt.c.v0 2011-11-07 22:02:22.000000000 +0100 | ||
2 | +++ plugins/check_nt.c 2011-11-07 22:05:00.000000000 +0100 | ||
3 | @@ -202,7 +202,7 @@ int main(int argc, char **argv){ | ||
4 | updays = uptime / 86400; | ||
5 | uphours = (uptime % 86400) / 3600; | ||
6 | upminutes = ((uptime % 86400) % 3600) / 60; | ||
7 | - asprintf(&output_message,_("System Uptime - %u day(s) %u hour(s) %u minute(s)"),updays,uphours, upminutes); | ||
8 | + asprintf(&output_message, _("System Uptime - %u day(s) %u hour(s) %u minute(s)|uptime=%lu"), updays, uphours, upminutes, uptime); | ||
9 | return_code=STATE_OK; | ||
10 | break; | ||