diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2013-02-25 00:36:38 +0000 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2013-02-25 00:36:38 +0000 |
commit | a33277e8eafac3dde0c26b0ffddeaf5f159a8d55 (patch) | |
tree | f9f70478e61596fa203a6e0442329ba35fa0eeea /net-analyzer/nagstamon/files | |
parent | Allow headers installation, bug #458784 (diff) | |
download | gentoo-2-a33277e8eafac3dde0c26b0ffddeaf5f159a8d55.tar.gz gentoo-2-a33277e8eafac3dde0c26b0ffddeaf5f159a8d55.tar.bz2 gentoo-2-a33277e8eafac3dde0c26b0ffddeaf5f159a8d55.zip |
Fix Icinga's default result limitations, https://github.com/HenriWahl/Nagstamon/issues/10
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key B427ABC8)
Diffstat (limited to 'net-analyzer/nagstamon/files')
-rw-r--r-- | net-analyzer/nagstamon/files/nagstamon-0.9.9-icinga_results_limitations.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net-analyzer/nagstamon/files/nagstamon-0.9.9-icinga_results_limitations.patch b/net-analyzer/nagstamon/files/nagstamon-0.9.9-icinga_results_limitations.patch new file mode 100644 index 000000000000..986ec51014b5 --- /dev/null +++ b/net-analyzer/nagstamon/files/nagstamon-0.9.9-icinga_results_limitations.patch @@ -0,0 +1,31 @@ +From 61928eea1075f22be24c4122c66ff7c2a1dcefae Mon Sep 17 00:00:00 2001 +From: Christian Ruppert <idl0r@gentoo.org> +Date: Mon, 25 Feb 2013 01:33:10 +0100 +Subject: [PATCH] Fix Icinga's default result limitations, + https://github.com/HenriWahl/Nagstamon/issues/10 + + +Signed-off-by: Christian Ruppert <idl0r@gentoo.org> +--- + Nagstamon/Server/Generic.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Nagstamon/Server/Generic.py b/Nagstamon/Server/Generic.py +index 0dfd1d6..cfe613d 100644 +--- a/Nagstamon/Server/Generic.py ++++ b/Nagstamon/Server/Generic.py +@@ -434,9 +434,9 @@ class GenericServer(object): + # group them together + hostserviceprops = 0 + # services (unknown, warning or critical?) +- nagcgiurl_services = self.monitor_cgi_url + "/status.cgi?host=all&servicestatustypes=" + str(servicestatustypes) + "&serviceprops=" + str(hostserviceprops) ++ nagcgiurl_services = self.monitor_cgi_url + "/status.cgi?host=all&limit=0&servicestatustypes=" + str(servicestatustypes) + "&serviceprops=" + str(hostserviceprops) + # hosts (up or down or unreachable) +- nagcgiurl_hosts = self.monitor_cgi_url + "/status.cgi?hostgroup=all&style=hostdetail&hoststatustypes=" + str(hoststatustypes) + "&hostprops=" + str(hostserviceprops) ++ nagcgiurl_hosts = self.monitor_cgi_url + "/status.cgi?hostgroup=all&limit=0&style=hostdetail&hoststatustypes=" + str(hoststatustypes) + "&hostprops=" + str(hostserviceprops) + # hosts - mostly the down ones + # unfortunately the hosts status page has a different structure so + # hosts must be analyzed separately +-- +1.7.12.4 + |