Module: check_mk
Branch: master
Commit: e213f24838b89ec225d8ec4f81d8324fafdd2c7b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e213f24838b89e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Jul 28 20:17:21 2012 +0200
Updated bug entries #0787
---
.bugs/787 | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/.bugs/787 b/.bugs/787
new file mode 100644
index 0000000..eb3635f
--- /dev/null
+++ b/.bugs/787
@@ -0,0 +1,16 @@
+Title: Perfdata varname of df should be fixed to 'size'
+Component: checks
+State: open
+Date: 2012-07-28 20:07:03
+Targetversion: future
+Class: bug
+
+Currently the fs check uses the name of the mount point
+as the variable name for the filesystem performance data.
+In the case of Windows mount points there is a backslash
+included which makes everything problematic.
+
+There is just one drawback: People with multiple RRDs
+will loose their filesystem history once again... :-(
+For some time we could offer an option that switches
+to the new format.
Module: check_mk
Branch: master
Commit: 9f5d92a9697725cba127afa647a3e4f8b8f5072c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9f5d92a9697725…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Fri Jul 27 20:27:46 2012 +0200
New Check: Cisco ASA Failover
---
ChangeLog | 1 +
checkman/cisco_asa_failover | 35 ++++++++++++++++
checks/cisco_asa_failover | 94 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 130 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c795a07..1b953e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,7 @@
* vms_system.ios: new check for total direct/buffered IOs on OpenVMS
* vms_system.procs: new check for number of processes on OpenVMS
* FIX: mssql agent: Added compatibility code for MSSQL 9
+ * New Check for Cisco ASA Firewalls running in a cluster
WATO:
* Added permission to control the "clone host" feature in WATO
diff --git a/checkman/cisco_asa_failover b/checkman/cisco_asa_failover
new file mode 100644
index 0000000..b96bb13
--- /dev/null
+++ b/checkman/cisco_asa_failover
@@ -0,0 +1,35 @@
+title: Cisco ASA Cluster failover Check
+agents: snmp
+author: Florian Heigl <fh(a)mathias-kettner.de>
+license: GPLv3
+distribution: check_mk
+description:
+ The Cisco "Adaptive Security Appliances" (ASA) support to run as a failover
+ cluster.
+ This check allows to monitor whether such a cluster is running normal, or
+ if it has failed over to the partner device for any reason.
+
+ The check will report {OK} as long as the correct unit has the role "active" or "standby".
+ If a failover has occured, the check will report a {WARNING} status.
+
+ If an unknown status is encountered (other than 9 or 10 in the status OIDs)
+ it will go to {UNKNOWN}.
+
+ The check is not tested against un-clustered ASA devices.
+
+
+perfdata:
+ none
+
+
+item:
+ No item is generated.
+
+
+inventory:
+ The check detects ASA devices and saves the current cluster role on inventory.
+
+
+parameters:
+ A singe integer indicating the status, either active(9) or standby(10).
+
diff --git a/checks/cisco_asa_failover b/checks/cisco_asa_failover
new file mode 100644
index 0000000..9c6497b
--- /dev/null
+++ b/checks/cisco_asa_failover
@@ -0,0 +1,94 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2012 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at http://mathias-kettner.de/check_mk.
+#
+# check_mk is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# ails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
+
+
+
+
+
+# .1.3.6.1.4.1.9.9.147.1.2.1.1.1.2.4 "Failover LAN Interface"
+# .1.3.6.1.4.1.9.9.147.1.2.1.1.1.2.6 "Primary unit (this device)"
+# .1.3.6.1.4.1.9.9.147.1.2.1.1.1.2.7 "Secondary unit"
+# .1.3.6.1.4.1.9.9.147.1.2.1.1.1.3.4 2
+# .1.3.6.1.4.1.9.9.147.1.2.1.1.1.3.6 9 < These two values flip during
+# .1.3.6.1.4.1.9.9.147.1.2.1.1.1.3.7 10 < failover
+# .1.3.6.1.4.1.9.9.147.1.2.1.1.1.4.4 "LAN_FO GigabitEthernet0/0.777"
+# .1.3.6.1.4.1.9.9.147.1.2.1.1.1.4.6 "Active unit"
+# .1.3.6.1.4.1.9.9.147.1.2.1.1.1.4.7 "Standby unit"
+
+# [['Failover LAN Interface', '2', 'LAN_FO GigabitEthernet0/0.777'], ['Primary unit', '9', 'Active unit'], ['Secondary unit (this device)', '10', 'Standby unit']]
+
+def inventory_cisco_asa_failover(info):
+
+ for deviceentry in info[-2:]:
+ if "this device" in deviceentry[0]:
+ # Return the Cluster role ID of the device.
+ return [ (None, int(info[1][1])) ]
+ return []
+
+
+def check_cisco_asa_failover(item, params, info):
+
+ asa_state_names = { 9: "active", 10 : "standby" }
+
+
+ for deviceentry in info[-2:]:
+ if "this device" in deviceentry[0]:
+
+ msgtxt = ""
+ errtxt = ""
+ state = 3
+
+ def_role = params
+ cur_role = saveint(info[1][1])
+
+ if def_role == cur_role:
+ state = 0
+ elif cur_role not in asa_state_names.keys():
+ state = 3
+ errtxt = ", Unknown cluster status received"
+ else:
+ state = 1
+ errtxt = " expecting to be %s" % asa_state_names[def_role]
+
+ msgtxt = nagios_state_names[state] + " - Device is the %s" % deviceentry[2] + errtxt + state * "!"
+ return (state, msgtxt)
+
+
+ return (3, "UNKNOWN - Data not in SNMP output")
+
+
+check_info["cisco_asa_failover"] = {
+ "check_function" : check_cisco_asa_failover,
+ "inventory_function" : inventory_cisco_asa_failover,
+ "service_description": "Cluster Status",
+ "has_perfdata" : False,
+ "snmp_scan_function" : lambda oid: oid(".1.3.6.1.2.1.1.1.0").lower().startswith("cisco adaptive security"),
+ "snmp_info" : (".1.3.6.1.4.1.9.9.147.1.2.1.1.1", [
+ "2", # The failover nic status
+ "3", # The primary unit info
+ "4", # The secondary unit info
+ ]),
+}
Module: check_mk
Branch: master
Commit: aac3cbd6a7fd7c37e66c2afb9ebed43651adc2b6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=aac3cbd6a7fd7c…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Tue Jul 24 09:41:41 2012 +0200
Fix typo
---
checkman/apc_symmetra | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/checkman/apc_symmetra b/checkman/apc_symmetra
index 14e79e8..cdfa8a2 100644
--- a/checkman/apc_symmetra
+++ b/checkman/apc_symmetra
@@ -12,7 +12,7 @@ description:
a level but just being displayed.
examples:
- # Set the critical levels for all ACP checks to:
+ # Set the critical levels for all APC checks to:
# - battery capacity at 90% or lower
# - battery temperature to 38C or higher
# - battery current to 10A or higher
monitor the status of the poweron self-
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: dc20cea2456ecc6efda162ed5cef0cdf3b7c4fee
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dc20cea2456ecc…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Fri Jul 27 20:41:23 2012 +0200
New Check for CBL Airlaser IP1000, monitor the status of the poweron self-
tests
---
ChangeLog | 3 +-
checkman/cbl_airlaser.status | 35 ++++++++++++++++++++++
checks/cbl_airlaser | 65 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 102 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1b953e2..cd9f47e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,7 +20,8 @@
* vms_system.ios: new check for total direct/buffered IOs on OpenVMS
* vms_system.procs: new check for number of processes on OpenVMS
* FIX: mssql agent: Added compatibility code for MSSQL 9
- * New Check for Cisco ASA Firewalls running in a cluster
+ * cisco_asa_failover: New Check for clustered Cisco ASA Firewalls
+ * cbl_airlaser.status: New Check for CBL Airlaser IP1000 laser bridge.
WATO:
* Added permission to control the "clone host" feature in WATO
diff --git a/checkman/cbl_airlaser.status b/checkman/cbl_airlaser.status
new file mode 100644
index 0000000..f841075
--- /dev/null
+++ b/checkman/cbl_airlaser.status
@@ -0,0 +1,35 @@
+title: Check of Powerup Status CBL Airlaser
+agents: snmp
+author: Andreas Boesl <ab(a)mathias-kettner.de>
+license: GPL
+distribution: check_mk
+description:
+ The check can be used to monitor the CBL AirLaser Powerup status.
+
+ The CBL Airlaser is a device to transparently transport Gigabit Ethernet
+ over an optical link with optional microwave fallback.
+
+ The status of the AirLaser should usually be normal.
+ After power up the system performs some self-tests.
+ This check aquires the results from the sysStatus OID in the
+ {CBL-AIRLASOR-IP1000-MIB}
+
+ Minor airlaser problems are reported as a warning condition, major failures
+ as "anything failed"
+
+ snmp-Status to nagios-status:
+
+ (1)normal operation: {OK}
+
+ (2)testing mode: {WARNING}
+
+ (3)warning condition: {WARNING}
+
+ (4)anything failed: {CRIT}
+
+
+inventory:
+ A service will be generated if the CBL-AIRLASOR-IP1000 MIB is supported by
+ the remote device.
+
+
diff --git a/checks/cbl_airlaser b/checks/cbl_airlaser
new file mode 100644
index 0000000..f1a068b
--- /dev/null
+++ b/checks/cbl_airlaser
@@ -0,0 +1,65 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2012 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at http://mathias-kettner.de/check_mk.
+#
+# check_mk is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# ails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
+
+
+# snmp_scan_function
+# .1.3.6.1.2.1.1.1.0 = "AirLaser IP1000" < matches airlaser
+# .1.3.6.1.4.1.2800.2.1.1.0 3 < Version of management agent ( exists )
+# snmp_info
+# .1.3.6.1.4.1.2800.2.1.3 < AirLaser Status
+
+
+
+def inventory_cbl_airlaser(info):
+ # Inventorize if the scan function fired
+ return [ (None, None) ]
+
+def check_cbl_airlaser_status(item, _no_params, info):
+ status = info[0][0]
+
+ if status == "1":
+ return (0, "OK - Airlaser: normal operation")
+ elif status == "2":
+ return (1, "WARNING - (!)Airlaser: testing mode")
+ elif status == "3":
+ return (1, "WARNING - (!)Airlaser: warning condition")
+ elif status == "4":
+ return (2, "CRITICAL - (!!)Airlaser: a component has failed self-tests")
+
+ return (3, "UNKNOWN - Unknown data from agent")
+
+
+check_info["cbl_airlaser.status"] = {
+ "check_function" : check_cbl_airlaser_status,
+ "inventory_function" : inventory_cbl_airlaser,
+ "service_description" : "CBL Airlaser Status",
+ "has_perfdata" : False,
+ "snmp_scan_function" : lambda oid: "airlaser" in oid(".1.3.6.1.2.1.1.1.0").lower() \
+ and oid(".1.3.6.1.4.1.2800.2.1.1.0"),
+ "snmp_info" : (".1.3.6.1.4.1.2800.2.1", [
+ "3", # AirLaser Status
+ ]),
+}