Module: check_mk
Branch: master
Commit: 652bf0974832a984efa853c486c4016801bf5d78
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=652bf0974832a9…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Apr 10 15:02:51 2013 +0200
Draft for IPMI datasource programm
---
doc/treasures/agent_ipmi | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/doc/treasures/agent_ipmi b/doc/treasures/agent_ipmi
new file mode 100644
index 0000000..7d814a3
--- /dev/null
+++ b/doc/treasures/agent_ipmi
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# Beware: this is a draft and not yet tested. Use this as datasource_program
+# for a host that is an DELL iDrac remote management interface.
+
+HOST=$1
+USERNAME=$2
+PASSWORD=$3
+
+echo '<<<check_mk>>>'
+Version: ipmi 1.0
+AgentOS: iDrac
+
+echo '<<<ipmi>>>'
+ipmitool -i lan -H "$HOST" -U "$USERNAME" -f "$PASSWORD"
sensor show 2>/dev/null \
+ | grep -v 'command failed' \
+ | sed -e 's/ *| */|/g' -e 's/ /_/g' -e
's/_*"'$'"//' -e 's/|/ /g' \
+ | egrep -v '^[^ ]+ na ' \
+ | grep -v ' discrete '"