Module: check_mk
Branch: master
Commit: 670058d49d6c259acc505084d30180bb4baf560d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=670058d49d6c25…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Dec 16 15:51:17 2014 +0100
Added missing header
---
agents/special/agent_netapp | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/agents/special/agent_netapp b/agents/special/agent_netapp
index 27b6330..64fb6a3 100755
--- a/agents/special/agent_netapp
+++ b/agents/special/agent_netapp
@@ -1,4 +1,29 @@
#!/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.
+
import sys, getopt, pprint, re, time
import traceback, pprint
Module: check_mk
Branch: master
Commit: 7290eeedfd7d8ae1bd444bf026e286c918e7095f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7290eeedfd7d8a…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Dec 16 15:23:39 2014 +0100
fixed werk description
---
.werks/1665 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.werks/1665 b/.werks/1665
index 866aab9..58fb42d 100644
--- a/.werks/1665
+++ b/.werks/1665
@@ -16,9 +16,9 @@ This agent does not run out of the box, because it depends on some files
from the <i>Netapp Manageability SDK</i> from NetApp. You can download it
<a href="http://mysupport.netapp.com/NOW/cgi-bin/software/?product=NetApp+Manageabil…">here (customer/partner login required)</a>
In this package you will find a python API binding. The agent_netapp requires
-the two python files (<i>NaElement.py</i> / <i>NaServer.py</i>) to be put into
+the two python files (<tt>NaElement.py</tt> / <tt>NaServer.py</tt>) to be put into
the sites local directory <tt>~/local/lib/python</tt>.
-(Our plan is to eleminate this step in a future version)
+(Our plan is to eleminate this tedious step in a future version)
Once the agent has all required files you need to create a user account
with the following permissions:
Module: check_mk
Branch: master
Commit: 9c14bbf92dd546b5ec3a376e0c5b9699b5f2844a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9c14bbf92dd546…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Dec 16 15:18:26 2014 +0100
fixed werk description
---
.werks/1665 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.werks/1665 b/.werks/1665
index d811525..866aab9 100644
--- a/.werks/1665
+++ b/.werks/1665
@@ -14,7 +14,7 @@ following soon.
H2: Agent setup
This agent does not run out of the box, because it depends on some files
from the <i>Netapp Manageability SDK</i> from NetApp. You can download it
-<a href="http://mysupport.netapp.com/NOW/cgi-bin/software/?product=NetApp+Manageabil…>here (customer/partner login required)</a>
+<a href="http://mysupport.netapp.com/NOW/cgi-bin/software/?product=NetApp+Manageabil…">here (customer/partner login required)</a>
In this package you will find a python API binding. The agent_netapp requires
the two python files (<i>NaElement.py</i> / <i>NaServer.py</i>) to be put into
the sites local directory <tt>~/local/lib/python</tt>.
Module: check_mk
Branch: master
Commit: 075029156514776d74d31bfe2b038cb0fba459af
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=07502915651477…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Dec 16 15:12:38 2014 +0100
#1665 agent_netapp: New special agent for NetApp monitoring via Web-API
The new agent_netapp allows you to collect data from a NetApp Filer through
its Web-API. Right now <b>only 7-Mode</b> setups are supported, but Cluster-Mode is
following soon.
H2: Agent setup
This agent does not run out of the box, because it depends on some files
from the <i>Netapp Manageability SDK</i> from NetApp. You can download it
<a href="http://mysupport.netapp.com/NOW/cgi-bin/software/?product=NetApp+Manageabil…>here (customer/partner login required)</a>
In this package you will find a python API binding. The agent_netapp requires
the two python files (<i>NaElement.py</i> / <i>NaServer.py</i>) to be put into
the sites local directory <tt>~/local/lib/python</tt>.
(Our plan is to eleminate this step in a future version)
Once the agent has all required files you need to create a user account
with the following permissions:
<ul>
<li>perf-object-get-instances</li>
<li>net-ifconfig-get</li>
<li>aggr-list-info</li>
<li>storage-shelf-bay-list-info</li>
<li>disk-list-info</li>
<li>vfiler-list-info</li>
<li>vfiler-get-status</li>
<li>volume-list-info</li>
<li>system-get-version</li>
<li>system-get-info</li>
<li>storage-shelf-environment-list-info</li>
<li>cf-status</li>
<li>diagnosis-status-get</li>
</ul>
Note: This list might increase in later versions
If the new agent is able to access the Web-API the following new checks
are ready to process the data:
<table>
<tr><th>Check</th><th>Description</th></tr>
<tr><td>netapp_api_aggr</td><td>Used space and trend of aggregations</td></tr>
<tr><td>netapp_api_volumes</td><td>Used space and trend of volumes. Able to record detailed performance data for each protocol</td></tr>
<tr><td>netapp_api_cluster</td><td>Cluster status</td></tr>
<tr><td>netapp_api_cpu</td><td>Overall CPU utilization</td></tr>
<tr><td>netapp_api_disk</td><td>Disk summary check. Includes total raw capacity and info about broken and spare disks</td></tr>
<tr><td>netapp_api_if</td><td>Interface checks (Fibrechannel not include so far)</td></tr>
<tr><td>netapp_api_protocol</td><td>Read OPS / Write OPS for each protocol (nfs, nfsv4, cifs, fcp, iscsci)</td></tr>
<tr><td>netapp_api_status</td><td>Filers Diagnosis Status (overall status)</td></tr>
<tr><td>netapp_api_version</td><td>Version information</td></tr>
<tr><td>netapp_api_vf_stats.traffic</td><td>vFiler traffic (Read/Write OPS, Net-Data Send/Recv, Read/Write Bytes)</td></tr>
<tr><td>netapp_api_vf_stats.cpu_util</td><td>vFiler CPU utilization</td></tr>
<tr><td>netapp_api_vf_status</td><td>vFiler status</td></tr>
<tr><td>netapp_api_psu</td><td>Power supplies summary which are relevant to that filer. Reports broken units</td></tr>
<tr><td>netapp_api_fan</td><td>Fans summary which are relevant to that filer. Reports broken units</td><tr>
<tr><td>netapp_api_temp</td><td>Temperature sensor summary for internal and ambient sensors relevant to that filer. Reports broken units</td></tr>
</table>
Note: This is the initial version of this agent. It has been tested on a handful of NetApp systems.
---
.werks/1665 | 66 ++++
ChangeLog | 1 +
agents/special/agent_netapp | 387 ++++++++++++++++++++
checkman/netapp_api_aggr | 89 +++++
checkman/netapp_api_cluster | 19 +
checkman/netapp_api_cpu | 29 ++
checkman/netapp_api_disk | 24 ++
checkman/netapp_api_fan | 17 +
checkman/netapp_api_if | 165 +++++++++
checkman/netapp_api_protocol | 17 +
checkman/netapp_api_psu | 17 +
checkman/netapp_api_status | 13 +
checkman/netapp_api_temp | 20 +
checkman/netapp_api_version | 11 +
checkman/netapp_api_vf_stats.cpu_util | 25 ++
checkman/netapp_api_vf_stats.traffic | 16 +
checkman/netapp_api_vf_status | 13 +
checkman/netapp_api_volumes | 93 +++++
checks/agent_netapp | 36 ++
checks/netapp_api.include | 125 +++++++
checks/netapp_api_aggr | 61 +++
checks/netapp_api_cluster | 111 ++++++
checks/netapp_api_cpu | 69 ++++
checks/netapp_api_disk | 134 +++++++
checks/netapp_api_fan | 69 ++++
checks/netapp_api_if | 133 +++++++
checks/netapp_api_protocol | 77 ++++
checks/netapp_api_psu | 64 ++++
checks/netapp_api_status | 53 +++
checks/netapp_api_temp | 97 +++++
checks/netapp_api_version | 65 ++++
checks/netapp_api_vf_stats | 99 +++++
checks/netapp_api_vf_status | 51 +++
checks/netapp_api_volumes | 114 ++++++
pnp-templates/check_mk-netapp_api_aggr.php | 1 +
.../check_mk-netapp_api_cpu.utilization.php | 1 +
pnp-templates/check_mk-netapp_api_disk.summary.php | 56 +++
pnp-templates/check_mk-netapp_api_if.php | 1 +
pnp-templates/check_mk-netapp_api_protocol.php | 50 +++
pnp-templates/check_mk-netapp_api_temp.php | 1 +
.../check_mk-netapp_api_vf_stats.cpu_util.php | 1 +
.../check_mk-netapp_api_vf_stats.traffic.php | 92 +++++
pnp-templates/check_mk-netapp_api_volumes.php | 201 ++++++++++
web/plugins/wato/check_parameters.py | 107 ++++++
web/plugins/wato/datasource_programs.py | 31 ++
45 files changed, 2922 insertions(+)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=0750291565…
Module: check_mk
Branch: master
Commit: 3b95c0a9b77aa9778bfa758140e18d6de1895c3e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3b95c0a9b77aa9…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Tue Dec 16 14:58:12 2014 +0100
msexch_replhealth man page: some typo fixes
---
checkman/msexch_replhealth | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/checkman/msexch_replhealth b/checkman/msexch_replhealth
index 634ec39..9fd0ad1 100644
--- a/checkman/msexch_replhealth
+++ b/checkman/msexch_replhealth
@@ -4,14 +4,15 @@ catalog: app/exchange
license: GPL
distribution: check_mk
description:
- This check check monitors various health states of the Microsoft Exchange Mailbox server in a Database
- Availability Group (DAG), such as continuous replication and the continuous replication
- pipeline, the availability of Active Manager, and the health and status of
- the underlying cluster service, quorum, and network components.
- The check requires that the agent plugin {msexch_dag.ps1} is installed on the
- Exchange mailbox server(s) to be monitored.
- This plugin uses the PowerShell {Test-ReplicationHealth}
- cmdlet.
+ This check monitors various health states of Microsoft Exchange Mailbox
+ servers in a Database Availability Group (DAG), such as continuous replication
+ and the continuous replication pipeline, the availability of Active Manager,
+ and the health and status of the underlying cluster service, quorum, and
+ network components.
+
+ The check requires that the agent plugin {msexch_dag.ps1} is installed
+ on the Exchange mailbox server(s) to be monitored. The plugin uses the
+ PowerShell {Test-ReplicationHealth} cmdlet.
The check is in the state {OK} when the check result supplied by the
Test-ReplicationHealth cmdlet for the item is {passed}. It is {WARN}
Module: check_mk
Branch: master
Commit: 15576b9547c0bb0527e48b02a0bcb470bbb8873e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=15576b9547c0bb…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Dec 16 14:49:54 2014 +0100
Added missing files
---
checkman/msexch_replhealth | 24 ++++++++++++++
checks/msexch_replhealth | 75 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 99 insertions(+)
diff --git a/checkman/msexch_replhealth b/checkman/msexch_replhealth
new file mode 100644
index 0000000..634ec39
--- /dev/null
+++ b/checkman/msexch_replhealth
@@ -0,0 +1,24 @@
+title: MS Exchange DAG Replication Health Test
+agents: windows
+catalog: app/exchange
+license: GPL
+distribution: check_mk
+description:
+ This check check monitors various health states of the Microsoft Exchange Mailbox server in a Database
+ Availability Group (DAG), such as continuous replication and the continuous replication
+ pipeline, the availability of Active Manager, and the health and status of
+ the underlying cluster service, quorum, and network components.
+ The check requires that the agent plugin {msexch_dag.ps1} is installed on the
+ Exchange mailbox server(s) to be monitored.
+ This plugin uses the PowerShell {Test-ReplicationHealth}
+ cmdlet.
+
+ The check is in the state {OK} when the check result supplied by the
+ Test-ReplicationHealth cmdlet for the item is {passed}. It is {WARN}
+ otherwise.
+
+inventory:
+ One service per health check item.
+
+item:
+ The name of the health check item as in the output Test-ReplicationHealth cmdlet Check.
diff --git a/checks/msexch_replhealth b/checks/msexch_replhealth
new file mode 100644
index 0000000..7281506
--- /dev/null
+++ b/checks/msexch_replhealth
@@ -0,0 +1,75 @@
+#!/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.
+
+# Example Output:
+# <<<msexch_replhealth:sep(58)>>>
+# RunspaceId : d58353f4-f868-43b2-8404-25875841a47b
+# Server : S0141KL
+# Check : ClusterService
+# CheckDescription : Überprüft, ob der Status des lokalen Clusterdiensts einwandfrei ist.
+# Result : Prüfung bestanden
+# Error :
+# Identity :
+# IsValid : True
+#
+# RunspaceId : d58353f4-f868-43b2-8404-25875841a47b
+# Server : S0141KL
+# Check : ReplayService
+# CheckDescription : Überprüft, ob der Microsoft Exchange-Replikationsdienst ausgeführt wird.
+# Result : Prüfung bestanden
+# Error :
+# Identity :
+# IsValid : True
+#
+
+def inventory_msexch_replhealth(info):
+ for line in info:
+ if line[0].strip().lower() == "check":
+ yield line[1].strip(), None
+
+
+def check_msexch_replhealth(item, _no_params, info):
+ getit = False
+ for line in info:
+ if len(line) == 2:
+ key, val = map(lambda i: i.strip(), line)
+ if key == "Check" and val == item:
+ getit = True
+ elif key == "Result" and getit:
+ if val == "Passed" or val.endswith("fung bestanden"):
+ infotxt = "Test Passed"
+ state = 0
+ else:
+ infotxt = val
+ state = 1
+ return state, infotxt
+
+
+check_info['msexch_replhealth'] = {
+ "inventory_function" : inventory_msexch_replhealth,
+ "check_function" : check_msexch_replhealth,
+ "service_description" : "Exchange Replication Health %s",
+}