Module: check_mk
Branch: master
Commit: dceb780df063728c9abb3c898c29f1bdd78730f1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dceb780df06372…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed Mar 26 15:01:41 2014 +0100
juniper_trpz_aps: Show the number of connected access points on juniper wlan controllers
---
.werks/771 | 4 ++--
ChangeLog | 2 +-
checkman/juniper_trpz_aps | 11 +++++++++++
checks/juniper_trpz_aps | 45 +++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 59 insertions(+), 3 deletions(-)
diff --git a/.werks/771 b/.werks/771
index 419f531..c8bf0ae 100644
--- a/.werks/771
+++ b/.werks/771
@@ -1,8 +1,8 @@
-Title: ibm_svc_node: new check for status of IO Groups of IBM SVC / V7000 devices
+Title: juniper_trpz_aps: Show the number of connected access points on juniper wlan
controllers
Level: 1
Component: checks
Version: 1.2.5i1
-Date: 1395767425
+Date: 1395842452
Class: feature
diff --git a/ChangeLog b/ChangeLog
index 349b04c..c7e0714 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -130,10 +130,10 @@
* 0707 ibm_svc_host: New check: Status of hosts an IBM SVC / V7000 presents volumes
to
* 0598 kentix_temp, kentix_humidity: new checks for Kentix MultiSensor-Rack
* 0768 ibm_svc_license: New check for Licensing Status on IBM SVC / V7000 devices
- * 0771 ibm_svc_node: new check for status of IO Groups of IBM SVC / V7000 devices
* 0778 New Special Agent for innovaphone gateways...
* 0769 juniper_trpz_cpu_util, juniper_trpz_flash, juniper_trpz_info,
juniper_trpz_power: new Checks for juniper trapeze switches
* 0770 innovaphone_licenses: New check to monitor licenses on innovaphone
devices"
+ * 0771 juniper_trpz_aps: Show the number of connected access points on juniper wlan
controllers
* 0103 FIX: services: Fixed bug with service inventory defined in main.mk...
* 0299 FIX: borcade_mlx_fan: Prettified output, handling "other" state now
* 0300 FIX: cisco_fru_power: Trying not to inventorize not plugged in FRUs...
diff --git a/checkman/juniper_trpz_aps b/checkman/juniper_trpz_aps
new file mode 100644
index 0000000..b52beee
--- /dev/null
+++ b/checkman/juniper_trpz_aps
@@ -0,0 +1,11 @@
+title: Number of online access points
+agents: snmp
+catalog: hw/network/juniper
+license: GPL
+distribution: check_mk
+description:
+ Show the number of online access points registered on the controller
+
+inventory:
+ One service for the number of access points
+
diff --git a/checks/juniper_trpz_aps b/checks/juniper_trpz_aps
new file mode 100644
index 0000000..c48ab5d
--- /dev/null
+++ b/checks/juniper_trpz_aps
@@ -0,0 +1,45 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2013 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.
+
+def inventory_juniper_trpz_aps(info):
+ return [ (None, None) ]
+
+def check_juniper_trpz_aps(_no_item, _no_params, info):
+ aps = info[0][0]
+ message = "%s Access Points online" % aps
+ return 0, message
+
+check_info["juniper_trpz_aps"] = {
+ "check_function" : check_juniper_trpz_aps,
+ "inventory_function" : inventory_juniper_trpz_aps,
+ "service_description" : "Access Points",
+ "snmp_scan_function" : lambda oid:
oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.14525.3.1.6"),
+ "snmp_info" : (".1.3.6.1.4.1.14525.4.5.1.1",[
+ 1, #number of Access Points
+ ])
+
+
+}