Module: check_mk
Branch: master
Commit: 57f6a293bad053118ee6a6866e23d22e0f751590
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=57f6a293bad053…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Apr 13 11:02:44 2016 +0200
added header
---
checks/hp_proliant.include | 29 +++++++++++++++++++++++++++--
1 file changed, 27 insertions(+), 2 deletions(-)
diff --git a/checks/hp_proliant.include b/checks/hp_proliant.include
index 0fabebf..3204ddf 100644
--- a/checks/hp_proliant.include
+++ b/checks/hp_proliant.include
@@ -1,3 +1,30 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2014 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.
+
+
hp_proliant_status_map = {
1: 'unknown',
2: 'ok',
@@ -30,5 +57,3 @@ hp_proliant_locale = {
12: "chassis",
13: "bridgeCard",
}
-
-
Module: check_mk
Branch: master
Commit: 1ee287bc0f5a949585e40118b61818a1788a0e4a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1ee287bc0f5a94…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Apr 13 10:24:46 2016 +0200
3404 fireeye_sys_status: new inventory plugin which gives information about serial number and model of Fireeye Appliances which support the FE-FIREEYE-MIB
---
.werks/3404 | 9 ++++++++
ChangeLog | 1 +
inventory/fireeye_sys_status | 50 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 60 insertions(+)
diff --git a/.werks/3404 b/.werks/3404
new file mode 100644
index 0000000..fa3a180
--- /dev/null
+++ b/.werks/3404
@@ -0,0 +1,9 @@
+Title: fireeye_sys_status: new inventory plugin which gives information about serial number and model of Fireeye Appliances which support the FE-FIREEYE-MIB
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.9i1
+Date: 1460535811
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index 6430bdf..451fa1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -54,6 +54,7 @@
* 3120 mssql_datafiles, mssql_transactionlogs: new chech to also monitor the datafiles and added option to summarize datafiles and transactionlogs
* 3121 mssql_counters.page_activity, mssql_counters.locks_per_batch: additional checks for mssql performance counters
* 3403 fireeye_content, fireeye_fans, fireeye_powersupplies, fireeye_raid, fireeye_raid.disks, fireeye_sys_image, fireeye_sys_status, fireeye_temp: new checks for Fireeye Appliances which support the FE-FIREEYE-MIB
+ * 3404 fireeye_sys_status: new inventory plugin which gives information about serial number and model of Fireeye Appliances which support the FE-FIREEYE-MIB
* 3073 FIX: windows agent: relative paths to mrpe scripts are now treated as relative to the agent installation directory...
* 3061 FIX: mk_jolokia: Fixed debugging of the agent plugin
* 3074 FIX: windows agent: fixed incorrect values for 32-bit performance counters
diff --git a/inventory/fireeye_sys_status b/inventory/fireeye_sys_status
new file mode 100644
index 0000000..e18c9e8
--- /dev/null
+++ b/inventory/fireeye_sys_status
@@ -0,0 +1,50 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2016 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.25597.11.1.1.1.0 Good --> FE-FIREEYE-MIB::feSystemStatus.0
+# .1.3.6.1.4.1.25597.11.1.1.2.0 FireEye3400 --> FE-FIREEYE-MIB::feHardwareModel.0
+# .1.3.6.1.4.1.25597.11.1.1.3.0 FZ1548EA19G --> FE-FIREEYE-MIB::feSerialNumber.0
+
+
+def inv_fireeye_sys_status(info):
+ status, model, serial = info[0]
+ node = inv_tree("hardware.system.")
+ node["serial"] = serial
+ node["model"] = model
+
+
+inv_info["fireeye_sys_status"] = {
+ "inv_function" : inv_fireeye_sys_status,
+ # If you make changes here in snmp_info, don't forget to make
+ # these changes in the related check plugin, too.
+ "snmp_info" : (".1.3.6.1.4.1.25597.11.1.1", [
+ "1", # FE-FIREEYE-MIB::feSystemStatus
+ "2", # FE-FIREEYE-MIB::feHardwareModel
+ "3", # FE-FIREEYE-MIB::feSerialNumber
+ ]),
+ "snmp_scan_function" : lambda oid: oid('.1.3.6.1.2.1.1.2.0').startswith('.1.3.6.1.4.1.25597.1'),
+}