[monitoring-plugins] Added suffix "s" for seconds in perfdata output

Bernd Arnold git at monitoring-plugins.org
Thu Jul 26 07:40:15 CEST 2018


 Module: monitoring-plugins
 Branch: master
 Commit: d5fbf8ae93c511e9bb9e0ee4304625d4b4023622
 Author: Bernd Arnold <wopfel at gmail.com>
   Date: Sun Jun  3 16:42:34 2018 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=d5fbf8a

Added suffix "s" for seconds in perfdata output

---

 plugins-scripts/check_uptime.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins-scripts/check_uptime.pl b/plugins-scripts/check_uptime.pl
index 09600df..8c1f3d2 100755
--- a/plugins-scripts/check_uptime.pl
+++ b/plugins-scripts/check_uptime.pl
@@ -137,7 +137,7 @@ if ( $opt_s ) {
 $state = $ERRORS{$state_str};
 
 # Perfdata support
-print "$msg|uptime=$uptime_seconds;$opt_w;$opt_c;0\n";
+print "$msg|uptime=${uptime_seconds}s;$opt_w;$opt_c;0\n";
 exit $state;
 
 



More information about the Commits mailing list