[Pkg-nagios-changes] [pkg-nagios-plugins-contrib] 01/01: Add d/patches/check_libvirt/fix_uom, thanks Björn Lässig

Jan Wagner waja at moszumanska.debian.org
Wed Dec 7 16:32:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

waja pushed a commit to branch master
in repository pkg-nagios-plugins-contrib.

commit 1d9afb0ed1cff74368681e9b649b124688d3a359
Author: Jan Wagner <waja at cyconet.org>
Date:   Mon Dec 5 00:11:49 2016 +0100

    Add d/patches/check_libvirt/fix_uom, thanks Björn Lässig
---
 debian/patches/check_libvirt/fix_uom | 28 ++++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 2 files changed, 29 insertions(+)

diff --git a/debian/patches/check_libvirt/fix_uom b/debian/patches/check_libvirt/fix_uom
new file mode 100644
index 0000000..a188d21
--- /dev/null
+++ b/debian/patches/check_libvirt/fix_uom
@@ -0,0 +1,28 @@
+From ebbf45f0dcbe150f4f8ccb306c8e72e95dbe29d9 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bj=C3=B6rn=20L=C3=A4ssig?= <b.laessig at pengutronix.de>
+Date: Thu, 1 Dec 2016 13:42:17 +0100
+Subject: [PATCH] fix uom of check_libvirt
+
+ * the actual unit of check_libvirt is 'units', which is not a valid UOM
+   (https://www.monitoring-plugins.org/doc/guidelines.html#AEN201)
+   so tools like icinga2 cannot interprete the performance data
+ * remove the UOM to an empty string
+   -> no unit specified - assume a number (int or float) of things
+      (eg, users, processes, load averages)
+---
+ check_libvirt/check_libvirt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/check_libvirt/check_libvirt b/check_libvirt/check_libvirt
+index 2029c9e..437c3fa 100755
+--- a/check_libvirt/check_libvirt
++++ b/check_libvirt/check_libvirt
+@@ -224,7 +224,7 @@ eval
+ 			chop($output);
+ 			chop($output);
+ 			$output = $up . "/" . $cnt . " VMs up: " . $output;
+-			$np->add_perfdata(label => "vmcount", value => $up, uom => 'units', threshold => $np->threshold);
++			$np->add_perfdata(label => "vmcount", value => $up, uom => '', threshold => $np->threshold);
+ 			$result = $np->check_threshold(check => $up);
+ 		}
+ 		elsif (uc($command) eq "POOL")
diff --git a/debian/patches/series b/debian/patches/series
index b3c457c..e230d8c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -17,6 +17,7 @@ check_libs/lsof-speedup
 check_libs/config_path
 check_libs/space_before_deleted
 check_libvirt/monitoring-plugin
+check_libvirt/fix_uom
 check_lm_sensors/manpage_whatis_fix
 check_lm_sensors/spelling_errors
 check_lm_sensors/interpreter

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins-contrib.git



More information about the Pkg-nagios-changes mailing list