Module: check_mk
Branch: master
Commit: 10f2b14002ede7f576208ac21207b906d1e6ebaa
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=10f2b14002ede7…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 1 21:57:05 2013 +0200
notify by mail: remove debug message
---
notifications/mail | 2 --
1 file changed, 2 deletions(-)
diff --git a/notifications/mail b/notifications/mail
index 2891280..b4e2589 100755
--- a/notifications/mail
+++ b/notifications/mail
@@ -365,8 +365,6 @@ def main():
in os.environ.items()
if var.startswith("NOTIFY_")])
- print repr(context)
-
# Fetch graphs for this object. It first tries to detect how many sources
# are available for this object. Then it loops through all sources and
# fetches retrieves the images. If a problem occurs, it is printed to
Module: check_mk
Branch: master
Commit: 62fd44c18e16822b6f8960e5a2dc583be5c17b7a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=62fd44c18e1682…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Tue Oct 1 18:17:36 2013 +0200
check manpages: unified formating
---
checkman/emerson_temp | 4 ++--
checkman/liebert_bat_temp | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/checkman/emerson_temp b/checkman/emerson_temp
index 06fdc7f..fbdb27e 100644
--- a/checkman/emerson_temp
+++ b/checkman/emerson_temp
@@ -23,9 +23,9 @@ inventory:
[parameters]
parameters (tuple): A pair of numbers for warning and critical level
- warning (int): The temperature that triggers an WARNING state
+ warning (int): The temperature that triggers an {WARN} state
- critical (int): The temperature that triggers an CRITICAL state
+ critical (int): The temperature that triggers an {CRIT} state
[configuration]
emerson_temp_default (tuple): Default warning and critical level
diff --git a/checkman/liebert_bat_temp b/checkman/liebert_bat_temp
index 2680c2f..b9868d0 100644
--- a/checkman/liebert_bat_temp
+++ b/checkman/liebert_bat_temp
@@ -17,9 +17,9 @@ inventory:
[parameters]
parameters (tuple): A pair of numbers for warning and critical level
- warning (int): The temperature that triggers an WARNING state
+ warning (int): The temperature that triggers an {WARN} state
- critical (int): The temperature that triggers an CRITICAL state
+ critical (int): The temperature that triggers an {CRIT} state
[configuration]
liebert_bat_temp_default (tuple): Default warning and critical level
Module: check_mk
Branch: master
Commit: 68c731c9f7cfa2b9d62332669514d9caeff95204
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=68c731c9f7cfa2…
Author: Götz Golla <gg(a)mathias-kettner.de>
Date: Tue Oct 1 17:23:07 2013 +0200
new check manpages for UPS devices
---
checkman/emerson_stat | 39 +++++++++++++++++++++++++++++++++++++++
checkman/emerson_temp | 31 +++++++++++++++++++++++++++++++
checkman/liebert_bat_temp | 25 +++++++++++++++++++++++++
checkman/ups_test | 9 +++++----
checks/emerson_stat | 4 ++--
5 files changed, 102 insertions(+), 6 deletions(-)
diff --git a/checkman/emerson_stat b/checkman/emerson_stat
new file mode 100644
index 0000000..da7c3fb
--- /dev/null
+++ b/checkman/emerson_stat
@@ -0,0 +1,39 @@
+title: Emerson UPS: status
+agents: snmp
+catalog: hw/power
+license: GPL
+distribution: check_mk
+description:
+ This check monitors the status OID of Emerson UPS devices which have the emerson energy
+ systems power MIB. They must have a system desciption OID
+ starting with "Emerson Network Power".
+ In case the device does not have a system description OID, it needs to be listed in
+ the configuration variable {snmp_without_sys_descr} to be inventorized.
+
+ The following states of the device are known and lead to a nagios
+ state of {crit}:
+ (5) "minor - MA"
+ (6) "major"
+ (10) "disabled"
+ The following device states are known and lead to the nagios state {warn}:
+ (1) "unknown"
+ (3) "observation"
+ (4) "warning - A3"
+ (7) "unmanaged"
+ (8) "restricted""
+ (9) "testing"
+
+
+examples:
+ # host does not have a system description OID
+ snmp_without_sys_descr = [
+ ( [], ['liebert-cabinet'] ),
+ ] + snmp_without_sys_descr
+
+
+inventory:
+ The inventory process checks if the device has a system description OIDs (.1.3.6.1.2.1.1.2.0)
+ and if the name of this OID begins with "Emerson Network Power". In case the device does
+ not have a system description OID it needs to be listed in the configuration variable
+ {snmp_without_sys_descr} to be inventorized
+
diff --git a/checkman/emerson_temp b/checkman/emerson_temp
new file mode 100644
index 0000000..06fdc7f
--- /dev/null
+++ b/checkman/emerson_temp
@@ -0,0 +1,31 @@
+title: Emerson UPS Device: Temperature sensor
+agents: snmp
+catalog: hw/power
+license: GPL
+distribution: check_mk
+description:
+ This check monitors the state of temperature sensors on Emerson UPS devices which
+ have the Emerson Energy Systems Power MIB. They must have a system desciption OID
+ starting with "Emerson Network Power".
+ In case the device does not have a system description OID, it needs to be listed in
+ the configuration variable {snmp_without_sys_descr} to be inventorized.
+
+
+item:
+ The index of the sensors found during inventory numbered starting from 0.
+
+perfdata:
+ The actual temperature in degrees celcius
+
+inventory:
+ One check for each sensor is created by the inventory
+
+[parameters]
+parameters (tuple): A pair of numbers for warning and critical level
+
+ warning (int): The temperature that triggers an WARNING state
+
+ critical (int): The temperature that triggers an CRITICAL state
+
+[configuration]
+emerson_temp_default (tuple): Default warning and critical level
diff --git a/checkman/liebert_bat_temp b/checkman/liebert_bat_temp
new file mode 100644
index 0000000..2680c2f
--- /dev/null
+++ b/checkman/liebert_bat_temp
@@ -0,0 +1,25 @@
+title: Liebert UPS Device: Temperature sensor
+agents: snmp
+catalog: hw/power
+license: GPL
+distribution: check_mk
+description:
+ This check monitors the state of the temperature sensor on Liebert UPS devices.
+ {warn} and {crit} levels can be defined for the temperature.
+
+perfdata:
+ The actual temperature in degrees celcius
+
+inventory:
+ The inventory works for all devices which have a '.1.3.6.1.4.1.476.1.42' in their
+ system description OID. No items are expected.
+
+[parameters]
+parameters (tuple): A pair of numbers for warning and critical level
+
+ warning (int): The temperature that triggers an WARNING state
+
+ critical (int): The temperature that triggers an CRITICAL state
+
+[configuration]
+liebert_bat_temp_default (tuple): Default warning and critical level
diff --git a/checkman/ups_test b/checkman/ups_test
index 9d1ef53..78f0de3 100644
--- a/checkman/ups_test
+++ b/checkman/ups_test
@@ -1,10 +1,10 @@
-title: UPS self test
+title: Generic UPS Device: self test
agents: snmp
catalog: hw/power
license: GPL
distribution: check_mk
description:
- This check monitors parameters related to the self test of UPS devices: The result of the
+ This check monitors parameters related to the self test of UPS devices: the result of the
last self test and the last date of the self test run. The check becomes {CRIT} if the test
result is {"doneError"} or {"aborted"}, and {WARN} if the result is {"doneWarning"} or
{"noTestsInitiated"}. It also has a {WARN} or {CRIT} state if the date of the last self
@@ -15,8 +15,9 @@ examples:
ups_test_default = ( 5, 10 )
inventory:
- The inventory process checks if the device has a system description OIDs (.1.3.6.1.2.1.1.2.0)
- and if the name of this OID is known to the test. If this is true the system is inventorized.
+ The inventory process checks if the device has a system description OIDs
+ (.1.3.6.1.2.1.1.2.0) and if the name of this OID is known to the test. If
+ this is true the system is inventorized.
[parameters]
parameters(tuple): parameters is a tuple of two values
diff --git a/checks/emerson_stat b/checks/emerson_stat
index de33694..f6161f3 100644
--- a/checks/emerson_stat
+++ b/checks/emerson_stat
@@ -50,7 +50,7 @@
# TESTING(9),
# DISABLED(10) }
-# the mib is the NetSure_ESNA.mib, which we have received from directly
+# the mib is the NetSure_ESNA.mib, which we have received directly
# from a customer, it is named "Emerson Energy Systems (EES) Power MIB"
@@ -64,7 +64,7 @@ def check_emerson_stat(item, params, info):
if info:
warn, crit = params # unused
status_text = { 1:"unknown", 2:"normal", 3:"observation", 4: "warning - A3",
- 5: "minar - MA", 6: "major - CA", 7: "unmanaged", 8: "restricted",
+ 5: "minor - MA", 6: "major - CA", 7: "unmanaged", 8: "restricted",
9: "testing", 10: "disabled" }
status = saveint(info[0][0])
infotext = "Status: " + status_text.get(status)
handing over thresholds for packet loss to the plugin as integer (
as
expected by the nagios plugin)
Message-ID: <524ae7f8.QvofFEDkC7mVlGYC%bs(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: f624839de87ebfc059964a14e110f5d0650c70fa
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f624839de87ebf…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Tue Oct 1 17:19:17 2013 +0200
check_icmp: adding check manpage; handing over thresholds for packet loss to the plugin as integer (as expected by the nagios plugin)
---
checkman/check_icmp | 20 ++++++++++++++++++++
checks/check_icmp | 4 ++--
2 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/checkman/check_icmp b/checkman/check_icmp
new file mode 100644
index 0000000..c35db34
--- /dev/null
+++ b/checkman/check_icmp
@@ -0,0 +1,20 @@
+title: ICMP Echo Request (Ping)
+agents: active
+catalog: agentless
+license: GPL
+distribution: check_mk
+description:
+ This performs an active check with a ICMP Echo Request (Ping)
+
+ It can check round trip times against given thresholds. It can also check packet
+ loss against given thresholds.
+
+ Returns {WARN} or {CRIT} if round trip times or packet loss is above given levels.
+ Returns {CRIT} if receiving ICMP Host unreachable messages.
+
+ This check can be configured by Wato.
+
+perfdata:
+ Four values: The round trip time (average) in milliseconds, the packet loss in
+ percent, the maximum round trip time in milliseconds and the minimum round trip time
+ in milliseconds.
diff --git a/checks/check_icmp b/checks/check_icmp
index cd8eeee..aab3006 100644
--- a/checks/check_icmp
+++ b/checks/check_icmp
@@ -37,8 +37,8 @@ def check_icmp_arguments(params):
rta = value
elif key == "loss":
loss = value
- args.append("-w %.2f,%.2f%%" % (rta[0], loss[0]))
- args.append("-c %.2f,%.2f%%" % (rta[1], loss[1]))
+ args.append("-w %.2f,%d%%" % (rta[0], loss[0]))
+ args.append("-c %.2f,%d%%" % (rta[1], loss[1]))
args.append("'$HOSTADDRESS$'")
return " ".join(args)