Module: check_mk
Branch: master
Commit: a7622ad7c2da16819e413c71b0aec817357377e4
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a7622ad7c2da16…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Oct 25 10:55:52 2010 +0200
Added nagvis_base_url to multisite.mk example configuration
---
ChangeLog | 1 +
multisite.mk | 8 ++++++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3da991f..ec0eec2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -36,6 +36,7 @@
* Fix links for items containing + (e.g. service descriptionen including
spaces)
* Allow non-ASCII character in downtimes and comments
+ * Added nagvis_base_url to multisite.mk example configuration
1.1.8b3:
Core, Setup, etc.:
diff --git a/multisite.mk b/multisite.mk
index a2abc6b..e66fa8e 100644
--- a/multisite.mk
+++ b/multisite.mk
@@ -34,6 +34,14 @@ admin_users = [ "nagiosadmin" ]
# },
# }
+#
+# NagVis
+#
+# The NagVis-Snapin needs to know the URL to nagvis.
+# This is not always /nagvis/ - especially not for OMD
+nagvis_base_url = '/nagvis'
+
+
# Restrict number of datasets queries via Livestatus.
# This prevents you from consuming too much ressources
# in case of insensible queries.
Module: check_mk
Branch: master
Commit: a4e4d56a4e40576fa9b9301e4c5974225c55a350
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a4e4d56a4e4057…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Sun Oct 24 22:54:01 2010 +0200
hp_proliant_psu: Fixed multiple PSU detection on one system (Thanks to Andreas Döhler)
---
ChangeLog | 2 ++
checks/hp_proliant_psu | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 031b037..9e34fb4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,8 @@
%u. That will be replaced with the user name and thus makes the
service description unique.
* win_dhcp_pools: better handle invalid agent output
+ * hp_proliant_psu: Fixed multiple PSU detection on one system (Thanks to
+ Andreas Döhler)
Livestatus:
* Prohibit { and } in regular expressions. This avoids a segmentation
diff --git a/checks/hp_proliant_psu b/checks/hp_proliant_psu
index 236dd0a..22d4d79 100644
--- a/checks/hp_proliant_psu
+++ b/checks/hp_proliant_psu
@@ -33,13 +33,13 @@ hp_proliant_redundant_map = { 1: 'other', 2: 'notRedundant', 3: 'redundant' }
def inventory_hp_proliant_psu(checkname, info):
if len(info) > 0:
- return [ (line[0], None) for line in info if line[2] == '3' ]
+ return [ (line[0] + '/' + line[1], None) for line in info if line[2] == '3' ]
else:
return []
def check_hp_proliant_psu(item, params, info):
for line in info:
- if line[0] == item:
+ if '/' in item and line[0] + line [1] == itemi or line[0] == item:
chassis, bay, present, status, redundant = line
snmp_status = hp_proliant_psu_status_map[int(status)]
status = hp_proliant_status2nagios_map[snmp_status]