Module: check_mk
Branch: master
Commit: f92b9662e0c5a2b160226f8593e41f075c912b3e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f92b9662e0c5a2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Aug 23 17:07:27 2014 +0200
Renamed a couple of plugins and removed the file extensions
---
agents/plugins/{db2_mem.sh => db2_mem} | 0
.../plugins/{unitrends_backup.php => unitrends_backup} | 0
.../{unitrends_replication.py => unitrends_replication} | 0
agents/plugins/{websphere_mq.sh => websphere_mq} | 0
checkman/db2_mem | 4 ++--
checkman/unitrends_backup | 6 +++---
checkman/unitrends_replication | 4 ++--
checkman/websphere_mq_channels | 15 +++++++++------
8 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/agents/plugins/db2_mem.sh b/agents/plugins/db2_mem
similarity index 100%
rename from agents/plugins/db2_mem.sh
rename to agents/plugins/db2_mem
diff --git a/agents/plugins/unitrends_backup.php b/agents/plugins/unitrends_backup
similarity index 100%
rename from agents/plugins/unitrends_backup.php
rename to agents/plugins/unitrends_backup
diff --git a/agents/plugins/unitrends_replication.py b/agents/plugins/unitrends_replication
similarity index 100%
rename from agents/plugins/unitrends_replication.py
rename to agents/plugins/unitrends_replication
diff --git a/agents/plugins/websphere_mq.sh b/agents/plugins/websphere_mq
similarity index 100%
rename from agents/plugins/websphere_mq.sh
rename to agents/plugins/websphere_mq
diff --git a/checkman/db2_mem b/checkman/db2_mem
index a7a2cbb..1d69f2d 100644
--- a/checkman/db2_mem
+++ b/checkman/db2_mem
@@ -5,9 +5,9 @@ license: GPL
distribution: check_mk
description:
This Check determines the memory limit and the usage limit for
- each db2 instance found on server. The agent plugin db2_mem.sh is needed.
+ each db2 instance found on server. The agent plugin <tt>db2_mem</tt> is needed.
The agent plugin greps for the instances in the process list, and try
- to switch to each instance and execute db2pd -dptnmem
+ to switch to each instance and execute <tt>db2pd -dptnmem</tt>.
inventory:
One service will be created for each instance
diff --git a/checkman/unitrends_backup b/checkman/unitrends_backup
index efc09cd..f20060e 100644
--- a/checkman/unitrends_backup
+++ b/checkman/unitrends_backup
@@ -1,11 +1,11 @@
-title: Unitrends Backup Schedule
+title: Unitrends Backup Schedules
agents: linux
catalog: app/unitrends
license: GPL
distribution: check_mk
description:
Unitrends is a enterprise class backup solution.
- This check needs the unitrends_backup.php plugin installed on the unitrends server
+ This check needs the <tt>unitrends_backup</tt> plugin installed on the unitrends server
in order to work. The plugin will deliver a complete list of all schedules including
a sublist of a jobs in this schdule from the last 24 hours.
@@ -14,4 +14,4 @@ description:
log in the long plugin output field from the core.
inventory:
- One Service for each Schedule will be created
+ One Service for each schedule will be created
diff --git a/checkman/unitrends_replication b/checkman/unitrends_replication
index 6927ca7..d45bad2 100644
--- a/checkman/unitrends_replication
+++ b/checkman/unitrends_replication
@@ -4,8 +4,8 @@ catalog: app/unitrends
license: GPL
distribution: check_mk
description:
- Unitrends is a enterprise class backup solution.
- This check needs the unitrends_replication.py plugin installed on the unitrends server
+ Unitrends is an enterprise class backup solution.
+ This check needs the <tt>unitrends_replication</tt> plugin installed on the unitrends server
in order to work. The plugin will deliver a complete list of all replication entries and
her status
diff --git a/checkman/websphere_mq_channels b/checkman/websphere_mq_channels
index 26259e2..06996ca 100644
--- a/checkman/websphere_mq_channels
+++ b/checkman/websphere_mq_channels
@@ -4,18 +4,21 @@ catalog: app/WebsphereMQ
license: GPL
distribution: check_mk
description:
- This check monitors the count of Messages in a Websphere MQ Channel.
- In order to work it is necesarry to install the websphere_mq.sh plugin to the server.
- It's maybe needed to change this plugin to fit your need's.
+ This check monitors the number of messages in a Websphere MQ Channel.
+ In order to work it is necesarry to install the <tt>websphere_mq</tt> plugin
+ to the server. You might need to edit this plugin to fit your needs.
- Once installed, the inventory will create one service for each Queue and each Channel (see also websphere_message_queues). This service will trigger a {Warning} or a {Critical} state, if the configured threshold are reached.
+ Once installed the inventory will create one service for each queue and
+ each channel (see also the check <tt>websphere_message_queues</tt>).
+ This service will trigger a {WARN} or a {CRIT} state if the configured
+ thresholds are reached.
item:
The name of the channel
perfdata:
- One Grpah for the Message count will be created
+ One variable: the message count
inventory:
- One service will be created for each channel
+ One service will be created for each channel.
Module: check_mk
Branch: master
Commit: d433b4b674d9267230bc0bf0fa4ca1a079e5920a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d433b4b674d926…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Aug 23 16:54:23 2014 +0200
#1374 arc_raid_status: moved plugin into main Linux agent
The functionality of the agent plugin <tt>arc_raid_status.sh</tt> has
been moved into the normal <tt>check_mk_agent</tt> for Linux. If you
have deployed the plugin, please remove it. Not doing this does not
do great harm but will result in <tt>cli64 rsf info</tt> called twice
per agent execution.
Note: you still have to manually install <tt>cli64</tt> from
<a href="ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/">ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/</a> into <tt>/usr/local/bin/</tt>
in order to use this check.
---
.werks/1374 | 17 +++++++++++++++++
ChangeLog | 2 ++
agents/check_mk_agent.linux | 8 ++++++++
agents/plugins/arc_raid_status.sh | 5 -----
4 files changed, 27 insertions(+), 5 deletions(-)
diff --git a/.werks/1374 b/.werks/1374
new file mode 100644
index 0000000..a6e9ce2
--- /dev/null
+++ b/.werks/1374
@@ -0,0 +1,17 @@
+Title: arc_raid_status: moved plugin into main Linux agent
+Level: 1
+Component: checks
+Compatible: incomp
+Version: 1.2.5i6
+Date: 1408805484
+Class: feature
+
+The functionality of the agent plugin <tt>arc_raid_status.sh</tt> has
+been moved into the normal <tt>check_mk_agent</tt> for Linux. If you
+have deployed the plugin, please remove it. Not doing this does not
+do great harm but will result in <tt>cli64 rsf info</tt> called twice
+per agent execution.
+
+Note: you still have to manually install <tt>cli64</tt> from
+<a href="ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/">ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/</a> into <tt>/usr/local/bin/</tt>
+in order to use this check.
diff --git a/ChangeLog b/ChangeLog
index 11c6b46..ce61549 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -31,6 +31,8 @@
* 1372 cisco_vss: new check for monitoring state of Cisco Virtual Switches
* 0648 brocade_fcport: new speed calculation of isl_ports...
* 0649 f5_bigip_pool: check now also prints the node names of down nodes
+ * 1374 arc_raid_status: moved plugin into main Linux agent...
+ NOTE: Please refer to the migration notes!
* 1051 FIX: tcp_conn_stats: fix missing performance data...
* 1142 FIX: winperf_ts_sessions: fix computation, check has never really worked
* 1090 FIX: zfsget: fixed exception which happened on incomplete zfs entries
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index d7002e9..4ad5fbd 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -352,6 +352,14 @@ if type tw_cli > /dev/null ; then
done
fi
+# RAID controllers from areca (Taiwan)
+# cli64 can be found at ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/
+if type cli64
+then
+ echo "<<<arc_raid_status>>>"
+ cli64 rsf info | tail -n +3 | head -n -2
+fi
+
# VirtualBox Guests. Section must always been output. Otherwise the
# check would not be executed in case no guest additions are installed.
# And that is something the check wants to detect
diff --git a/agents/plugins/arc_raid_status.sh b/agents/plugins/arc_raid_status.sh
deleted file mode 100755
index fa3a722..0000000
--- a/agents/plugins/arc_raid_status.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#cli64 can be found at:
-# ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/Linux/CLI/
-
-echo "<<<arc_raid_status>>>"
-cli64 rsf info | tail -n +3 | head -n -2
Module: check_mk
Branch: master
Commit: 38f5a65129e32cad57e7b74157320e41be77adec
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=38f5a65129e32c…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Thu Aug 21 17:25:36 2014 +0200
#0649 f5_bigip_pool: check now also prints the node names of down nodes
---
.werks/649 | 9 +++++++++
ChangeLog | 3 ++-
checkman/f5_bigip_pool | 16 ++++++++++------
checks/f5_bigip_pool | 44 ++++++++++++++++++++++++++++++++++----------
4 files changed, 55 insertions(+), 17 deletions(-)
diff --git a/.werks/649 b/.werks/649
new file mode 100644
index 0000000..f52d520
--- /dev/null
+++ b/.werks/649
@@ -0,0 +1,9 @@
+Title: f5_bigip_pool: check now also prints the node names of down nodes
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.5i6
+Date: 1408634689
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index a14fdb2..2c62e78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,9 +27,10 @@
* 1006 printer_pages: add Perf-O-Meter and PNP template
* 0646 brocade_fcport: the administrative states for which ports are inventorized can now be configured in WATO
* 1010 chrony: new check for NTP synchronization via chrony on Linux...
- * 0648 brocade_fcport: new speed calculation of isl_ports...
* 1011 ibm_svc_systemstats.disk_latency: introduce levels for alerting...
* 1372 cisco_vss: new check for monitoring state of Cisco Virtual Switches
+ * 0648 brocade_fcport: new speed calculation of isl_ports...
+ * 0649 f5_bigip_pool: check now also prints the node names of down nodes
* 1051 FIX: tcp_conn_stats: fix missing performance data...
* 1142 FIX: winperf_ts_sessions: fix computation, check has never really worked
* 1090 FIX: zfsget: fixed exception which happened on incomplete zfs entries
diff --git a/checkman/f5_bigip_pool b/checkman/f5_bigip_pool
index abae8dc..d39aef7 100644
--- a/checkman/f5_bigip_pool
+++ b/checkman/f5_bigip_pool
@@ -4,13 +4,17 @@ catalog: hw/network/f5
license: GPL
distribution: check_mk
description:
- The check queries the MIB tables of F5 BIG-IP loadbalancers (local traffic managers) for the
- status of any load balancing pools. It gathers the number of loadbalancers backing the pool
- and how many of those are working. It doesn't currently honor the 'MinUpMembers' parameter
- that can be set to trigger actions for the pool if too many members fail.
+ The check queries the MIB tables of F5 BIG-IP loadbalancers (local traffic
+ managers) for the status of any load balancing pools. It gathers the number
+ of loadbalancers backing the pool and how many of those are working. It
+ doesn't currently honor the 'MinUpMembers' parameter that can be set to
+ trigger actions for the pool if too many members fail.
- It supports devices running the 9.0 and above releases of the F5 OS. It's tested against 9.3
- devices.
+ It supports devices running the 9.0 and above releases of the F5 OS. It's
+ tested against 9.3 devices.
+
+ If the number of down nodes is warn or crit, the names of the nodes are
+ also printed in the service output.
examples:
# Let the Pool named ABC on your first F5 be in WARNING state when it reaches 5 active members or in CRITICAL for anything between 3 and 0.
diff --git a/checks/f5_bigip_pool b/checks/f5_bigip_pool
index c81fc62..eafc323 100644
--- a/checks/f5_bigip_pool
+++ b/checks/f5_bigip_pool
@@ -39,14 +39,26 @@ f5_bigip_pool_default_levels = (2, 1)
def inventory_f5_bigip_pool(checkname,info):
# inventorize all pools and their member count
inventory = []
- for line in info:
+ for line in info[0]:
if line[0] != "":
inventory.append((line[0],"f5_bigip_pool_default_levels"))
return inventory
+def f5_bigip_pool_get_down_members(info, item):
+ downs = []
+ if len(info) < 2:
+ return
+ for line in info[1]:
+ if line[0] == item and line[2] != '4':
+ if re.match("\/\S*\/\S*", line[3]):
+ host = line[3].split("/")[2]
+ else:
+ host = line[3]
+ downs.append(host+":"+line[1])
+ return downs
def check_f5_bigip_pool(item, params, info):
- for line in info:
+ for line in info[0]:
if line[0] == item:
warn, crit = params
pool_act_members = int(line[1])
@@ -57,10 +69,14 @@ def check_f5_bigip_pool(item, params, info):
state = 0
elif pool_act_members <= crit:
state = 2
- message += " (Levels warn/crit below: %s/%s)" % ( warn, crit )
+ message += " (warn/crit: %s/%s)" % ( warn, crit )
elif pool_act_members <= warn:
state = 1
- message += " (Levels warn/crit below: %s/%s)" % ( warn, crit )
+ message += " (warn/crit: %s/%s)" % ( warn, crit )
+
+ if pool_act_members < pool_def_members:
+ downs = f5_bigip_pool_get_down_members(info, item)
+ message += ", down nodes: %s" % ", ".join(downs)
return state, message
return 3, "unexpected Output from SNMP Agent"
@@ -69,12 +85,20 @@ check_info["f5_bigip_pool"] = {
'check_function' : check_f5_bigip_pool,
'group' : 'f5_pools',
'inventory_function' : inventory_f5_bigip_pool,
- 'service_description': 'Load Balancing Pool %s',
- 'snmp_info': ('.1.3.6.1.4.1.3375.2.2.5.1.2.1', [
- 1, # ltmPoolEntry
- 8, # ltmPoolActiveMemberCnt
- 23, # ltmPoolMemberCnt
- ]),
+ 'service_description' : 'Load Balancing Pool %s',
+ 'snmp_info' : [
+ ('.1.3.6.1.4.1.3375.2.2.5.1.2.1', [
+ 1, # ltmPoolEntry
+ 8, # ltmPoolActiveMemberCnt
+ 23, # ltmPoolMemberCnt
+ ]),
+ ('.1.3.6.1.4.1.3375.2.2.5.3.2.1', [
+ 1, # ltmPoolMemberPoolName
+ 4, # ltmPoolMemberPort
+ 10, # ltmPoolMemberState
+ 19, # ltmPoolMemberNodeName
+ ]),
+ ],
'snmp_scan_function': \
lambda oid: '.1.3.6.1.4.1.3375.2' in oid(".1.3.6.1.2.1.1.2.0") \
and "big-ip" in oid(".1.3.6.1.4.1.3375.2.1.4.1.0").lower(),
Module: check_mk
Branch: master
Commit: 9a2f8a5567c882101aeb901d29a81930e7b9867b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9a2f8a5567c882…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Aug 21 16:19:16 2014 +0200
#1156 FIX Graphs in HTML mails are now sent again where they where missing
A change from Tue Mar 4 prevented inclusion of PNP graphs in HTML mails
in installations where the user "omdadmin" is not existant. This change
fixes the problem and makes the graphs available again.
---
.werks/1156 | 11 +++++++++++
ChangeLog | 5 ++++-
notifications/mail | 3 +--
3 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/.werks/1156 b/.werks/1156
new file mode 100644
index 0000000..485cc26
--- /dev/null
+++ b/.werks/1156
@@ -0,0 +1,11 @@
+Title: Graphs in HTML mails are now sent again where they where missing
+Level: 1
+Component: notifications
+Compatible: compat
+Version: 1.2.5i6
+Date: 1408630645
+Class: fix
+
+A change from Tue Mar 4 prevented inclusion of PNP graphs in HTML mails
+in installations where the user "omdadmin" is not existant. This change
+fixes the problem and makes the graphs available again.
diff --git a/ChangeLog b/ChangeLog
index a14fdb2..cc33960 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,9 +27,9 @@
* 1006 printer_pages: add Perf-O-Meter and PNP template
* 0646 brocade_fcport: the administrative states for which ports are inventorized can now be configured in WATO
* 1010 chrony: new check for NTP synchronization via chrony on Linux...
- * 0648 brocade_fcport: new speed calculation of isl_ports...
* 1011 ibm_svc_systemstats.disk_latency: introduce levels for alerting...
* 1372 cisco_vss: new check for monitoring state of Cisco Virtual Switches
+ * 0648 brocade_fcport: new speed calculation of isl_ports...
* 1051 FIX: tcp_conn_stats: fix missing performance data...
* 1142 FIX: winperf_ts_sessions: fix computation, check has never really worked
* 1090 FIX: zfsget: fixed exception which happened on incomplete zfs entries
@@ -68,6 +68,9 @@
* 1153 FIX: Changed custom user attributes can now be used immediately...
* 0201 FIX: Fixed error message in Rulelist of RBN...
+ Notifications:
+ * 1156 FIX: Graphs in HTML mails are now sent again where they where missing...
+
Event Console:
* 1007 FIX: check_mkevents: fix case where events contain binary zeroes
diff --git a/notifications/mail b/notifications/mail
index ee136cf..8921317 100755
--- a/notifications/mail
+++ b/notifications/mail
@@ -324,8 +324,7 @@ def fetch_pnp_data(context, params):
if not os.path.exists(path):
raise GraphException('Unable to locate pnp4nagios index.php (%s)' % path)
- #return os.popen('REMOTE_USER="%s" php %s %s "%s"' % (context['CONTACTNAME'], php_save_path, path, params)).read()
- return os.popen('REMOTE_USER="%s" php %s %s "%s"' % ('omdadmin', php_save_path, path, params)).read()
+ return os.popen('REMOTE_USER="%s" php %s %s "%s"' % (context['CONTACTNAME'], php_save_path, path, params)).read()
def fetch_num_sources(context):
svc_desc = context['WHAT'] == 'HOST' and '_HOST_' or context['SERVICEDESC']