summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_uptime.pl
diff options
context:
space:
mode:
authorBernd Arnold <wopfel@gmail.com>2018-06-03 16:42:34 +0200
committerBernd Arnold <wopfel@gmail.com>2018-06-03 16:42:34 +0200
commitd5fbf8ae93c511e9bb9e0ee4304625d4b4023622 (patch)
tree7dae012d2984fc22d9c69ab55f8ba5b4aa6fcb02 /plugins-scripts/check_uptime.pl
parent44816b4979cdad1698179e749726b8f45e5587d2 (diff)
downloadmonitoring-plugins-d5fbf8ae93c511e9bb9e0ee4304625d4b4023622.tar.gz
Added suffix "s" for seconds in perfdata output
Diffstat (limited to 'plugins-scripts/check_uptime.pl')
-rwxr-xr-xplugins-scripts/check_uptime.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/check_uptime.pl b/plugins-scripts/check_uptime.pl
index 09600df4..8c1f3d20 100755
--- a/plugins-scripts/check_uptime.pl
+++ b/plugins-scripts/check_uptime.pl
@@ -137,7 +137,7 @@ if ( $opt_s ) {
137$state = $ERRORS{$state_str}; 137$state = $ERRORS{$state_str};
138 138
139# Perfdata support 139# Perfdata support
140print "$msg|uptime=$uptime_seconds;$opt_w;$opt_c;0\n"; 140print "$msg|uptime=${uptime_seconds}s;$opt_w;$opt_c;0\n";
141exit $state; 141exit $state;
142 142
143 143