diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2013-02-25 00:36:42 +0000 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2013-02-25 00:36:42 +0000 |
commit | a7b861afdc9e781961640dd9bb6ad236852a9730 (patch) | |
tree | bd7296ea7e5755624a18460c698b914a05cf14d6 /net-analyzer/nagstamon/files | |
parent | Allow headers installation, bug #458784 (diff) | |
download | historical-a7b861afdc9e781961640dd9bb6ad236852a9730.tar.gz historical-a7b861afdc9e781961640dd9bb6ad236852a9730.tar.bz2 historical-a7b861afdc9e781961640dd9bb6ad236852a9730.zip |
Fix Icinga's default result limitations, https://github.com/HenriWahl/Nagstamon/issues/10
Package-Manager: portage-2.2.0_alpha163/cvs/Linux x86_64
Manifest-Sign-Key: 0xB427ABC8
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 + |