Module: check_mk
Branch: master
Commit: 799c655a899b6187a75fa31f9338c49cfdf92735
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=799c655a899b61…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Aug 21 11:26:04 2015 +0200
#2518 veritas_vcs: New check which monitors the Veritas Cluster Service
The check needs the {check_mk_agent.linux} agent which provides information
about the Veritas Cluster Service if it is installed.
The check veritas_vcs monitors the cluster state of a Veritas Cluster Service.
Its subchecks veritas_vcs.system, veritas_vcs.resource and veritas_vcs.servicegroup
monitor the related states of the Veritas cluster Service.
---
.werks/2518 | 14 ++++++++++++++
ChangeLog | 1 +
checkman/veritas_vcs | 21 +++++++++++++++++++++
checkman/veritas_vcs.resource | 27 +++++++++++++++++++++++++++
checkman/veritas_vcs.servicegroup | 25 +++++++++++++++++++++++++
checkman/veritas_vcs.system | 24 ++++++++++++++++++++++++
6 files changed, 112 insertions(+)
diff --git a/.werks/2518 b/.werks/2518
new file mode 100644
index 0000000..4b6234b
--- /dev/null
+++ b/.werks/2518
@@ -0,0 +1,14 @@
+Title: veritas_vcs: New check which monitors the Veritas Cluster Service
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i3
+Date: 1440148378
+Class: feature
+
+The check needs the {check_mk_agent.linux} agent which provides information
+about the Veritas Cluster Service if it is installed.
+
+The check veritas_vcs monitors the cluster state of a Veritas Cluster Service.
+Its subchecks veritas_vcs.system, veritas_vcs.resource and veritas_vcs.servicegroup
+monitor the related states of the Veritas cluster Service.
diff --git a/ChangeLog b/ChangeLog
index d1f39d7..0b2cf54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -55,6 +55,7 @@
* 1281 Microsoft Azure special agent (treasures)...
* 2420 mk_db2.aix: now able to monitor partitioned databases...
* 2530 ups_modulys_alarms ups_modulys_battery ups_modulys_battery_temp
ups_modulys_inphase ups_modulys_outphase: New checks for the Socomec Modulys UPS
+ * 2518 veritas_vcs: New check which monitors the Veritas Cluster Service...
* 2315 FIX: windows agent: BOM replacement, fixed incorrect byte offset...
* 2316 FIX: windows agent: fix garbled output of cached agent plugins...
* 2358 FIX: check_mk_agent.solaris: more correct computation of zfs used space...
diff --git a/checkman/veritas_vcs b/checkman/veritas_vcs
new file mode 100644
index 0000000..b53b116
--- /dev/null
+++ b/checkman/veritas_vcs
@@ -0,0 +1,21 @@
+title: Veritas Cluster Service: Cluster State
+agents: linux
+catalog: os/services
+license: GPL
+distribution: check_mk
+description:
+ This check needs the {check_mk_agent.linux} agent which provides
+ information about the Veritas Cluster Service if it is installed.
+
+ The check monitors the cluster state. If the state of the cluster is
+ - "RUNNING" then the service state will be OK,
+ - otherwise CRIT.
+
+ The check is cluster-aware. If the cluster is running on at
+ least one node then the state will be OK otherwise WARN.
+
+item:
+ The cluster name.
+
+inventory:
+ One service per cluster is created.
diff --git a/checkman/veritas_vcs.resource b/checkman/veritas_vcs.resource
new file mode 100644
index 0000000..8831a4d
--- /dev/null
+++ b/checkman/veritas_vcs.resource
@@ -0,0 +1,27 @@
+title: Veritas Cluster Service: Resource
+agents: linux
+catalog: os/services
+license: GPL
+distribution: check_mk
+description:
+ This check needs the {check_mk_agent.linux} agent which provides
+ information about the Veritas Cluster Service if it is installed.
+
+ The check monitors the resource state and can have the following states:
+ - "ONLINE" will be OK,
+ - "OFFLINE" will be WARN,
+ - "FAULTED" will be "CRIT",
+ - "OFFLINE|STATE UNKNOWN" or "ONLINE|STATE UNKNOWNEXITED" will be
UNKNOWN.
+
+ The check is cluster-aware. In this case we have:
+ - If one resource reports "FAULTED" the service state will be CRIT,
+ - if one reports "UNKNOWN" it will be UNKNOWN,
+ - if one reports "ONLINE" the state will be OK,
+ - if all resources are "OFFLINE" the service state will be CRIT,
+ - otherwise it will be WARN.
+
+item:
+ The resource name.
+
+inventory:
+ One service per resource is created.
diff --git a/checkman/veritas_vcs.servicegroup b/checkman/veritas_vcs.servicegroup
new file mode 100644
index 0000000..4a6142d
--- /dev/null
+++ b/checkman/veritas_vcs.servicegroup
@@ -0,0 +1,25 @@
+title: Veritas Cluster Service: Service Group
+agents: linux
+catalog: os/services
+license: GPL
+distribution: check_mk
+description:
+ This check needs the {check_mk_agent.linux} agent which provides
+ information about the Veritas Cluster Service if it is installed.
+
+ The check monitors the service group state and can have the following states:
+ - "ONLINE" will be OK,
+ - "OFFLINE" will be WARN,
+ - "FAULTED" will be CRIT.
+
+ The check is cluster-aware. In this case we have:
+ - If one service group reports "FAULTED" the service state will be CRIT,
+ - if one reports "ONLINE" the state will be OK,
+ - if all service groups are "OFFLINE" the service state will be CRIT,
+ - otherwise it will be WARN.
+
+item:
+ The service group name.
+
+inventory:
+ One service per service group is created.
diff --git a/checkman/veritas_vcs.system b/checkman/veritas_vcs.system
new file mode 100644
index 0000000..8f32c59
--- /dev/null
+++ b/checkman/veritas_vcs.system
@@ -0,0 +1,24 @@
+title: Veritas Cluster Service: System
+agents: linux
+catalog: os/services
+license: GPL
+distribution: check_mk
+description:
+ This check needs the {check_mk_agent.linux} agent which provides
+ information about the Veritas Cluster Service if it is installed.
+
+ The check monitors the system state and can have the following states:
+ - "RUNNING" will be OK,
+ - "EXITED" will be WARN,
+ - "FAULTED" will be CRIT.
+
+ The check is cluster-aware. In this case we have:
+ - If one system reports "FAULTED" the service state will be CRIT,
+ - if one reports "ONLINE" the state will be OK,
+ - otherwise it will be WARN.
+
+item:
+ The system name.
+
+inventory:
+ One service per system is created.