Module: check_mk
Branch: master
Commit: b3ef75e451f88dc4ca0dff9e54bb6bec417956a5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b3ef75e451f88d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 4 14:37:52 2011 +0100
Added missing manpage/rra/template for snmp_uptime check
---
checkman/snmp_uptime | 17 +++++++++++++++++
checks/snmp_info | 2 +-
checks/snmp_uptime | 2 +-
pnp-rraconf/check_mk-snmp_uptime.rra.cfg | 1 +
pnp-templates/check_mk-snmp_uptime.php | 1 +
5 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/checkman/snmp_uptime b/checkman/snmp_uptime
new file mode 100644
index 0000000..c6c64ca
--- /dev/null
+++ b/checkman/snmp_uptime
@@ -0,0 +1,17 @@
+title: Monitor uptime of SNMP hosts
+agents: snmp
+author: Lars Michelsen <lm(a)mathias-kettner.de>
+license: GPL
+distribution: check_mk
+description:
+ This check is always OK and simply outputs the uptime of the target
+ systems (when the last boot was and how much time has elapsed since).
+ The check is always OK.
+
+ The check uses the SNMP OID {DISMAN-EVENT-MIB::sysUpTime}.
+
+perfdata:
+ The uptime in seconds.
+
+inventory:
+ One check per system is created if the host provides that information.
diff --git a/checks/snmp_info b/checks/snmp_info
index 49b2c83..635d241 100644
--- a/checks/snmp_info
+++ b/checks/snmp_info
@@ -26,7 +26,7 @@
def inventory_snmp_info(checktype, info):
if len(info[0]) >= 4:
- return [ (None, None, None) ]
+ return [ (None, None) ]
def check_snmp_info(checktype, params, info):
if len(info[0]) >= 4:
diff --git a/checks/snmp_uptime b/checks/snmp_uptime
index cd874e7..70e7aea 100644
--- a/checks/snmp_uptime
+++ b/checks/snmp_uptime
@@ -28,7 +28,7 @@
def inventory_snmp_uptime(checktype, info):
if len(info[0]) >= 1:
- return [ (None, None, None) ]
+ return [ (None, None) ]
def check_snmp_uptime(checktype, params, info):
if len(info[0]) >= 1:
diff --git a/pnp-rraconf/check_mk-snmp_uptime.rra.cfg
b/pnp-rraconf/check_mk-snmp_uptime.rra.cfg
new file mode 120000
index 0000000..1fe221c
--- /dev/null
+++ b/pnp-rraconf/check_mk-snmp_uptime.rra.cfg
@@ -0,0 +1 @@
+check_mk-uptime.rra.cfg
\ No newline at end of file
diff --git a/pnp-templates/check_mk-snmp_uptime.php
b/pnp-templates/check_mk-snmp_uptime.php
new file mode 120000
index 0000000..6119b85
--- /dev/null
+++ b/pnp-templates/check_mk-snmp_uptime.php
@@ -0,0 +1 @@
+check_mk-uptime.php
\ No newline at end of file