Module: check_mk
Branch: master
Commit: fc64ac466b1761025a8bfc88b4888b1a33d08800
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fc64ac466b1761…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Mon Mar 13 16:39:11 2017 +0100
4353 FIX palo_alto: Fix wrong infotext
Thanks to Robert Sander for the fix!
Change-Id: I9f8af2f470d5d8cd519e480427ccff0a2b129ccb
---
.werks/4353 | 11 +++++++++++
checks/palo_alto | 13 +++++++------
2 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/.werks/4353 b/.werks/4353
new file mode 100644
index 0000000..b9d0dc2
--- /dev/null
+++ b/.werks/4353
@@ -0,0 +1,11 @@
+Title: palo_alto: Fix wrong infotext
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1489419411
+
+Thanks to Robert Sander for the fix!
diff --git a/checks/palo_alto b/checks/palo_alto
index 22ebb76..58b57a9 100644
--- a/checks/palo_alto
+++ b/checks/palo_alto
@@ -30,12 +30,12 @@ def inventory_palo_alto(info):
def check_palo_alto(_no_item, _no_params, info):
- firmware_version, ha_mode, local_state, peer_state = info[0]
+ firmware_version, local_state, peer_state, ha_mode = info[0]
ha_modes = {}
yield 0, "Firmware Version: %s" % firmware_version
yield 0, "HA mode: %s" % ha_mode
yield 0, "Local HA state: %s" % local_state
- yield 0, "Peer HA state: %s" % local_state
+ yield 0, "Peer HA state: %s" % peer_state
check_info["palo_alto"] = {
@@ -43,9 +43,10 @@ check_info["palo_alto"] = {
"check_function" : check_palo_alto,
"service_description" : "Palo Alto State",
"snmp_info" : ( ".1.3.6.1.4.1.25461.2.1.2.1", [
- "1",
- "11",
- "12",
- "13", ] ),
+ "1", # panSysSwVersion
+ "11", # panSysHAState
+ "12", # panSysHAPeerState
+ "13", # panSysHAMode
+ ] ),
"snmp_scan_function" : lambda oid: "25461" in
oid(".1.3.6.1.2.1.1.2.0"),
}