Module: check_mk
Branch: master
Commit: c36aa62361900ed107d42a27e2a61472b1907ce5
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c36aa62361900e…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Wed May 16 17:34:45 2012 +0200
update doc and delete leftover file:
---
agents/hpux/hpux_lunstats | 2 ++
agents/hpux/mk-statgrab | 25 -------------------------
2 files changed, 2 insertions(+), 25 deletions(-)
diff --git a/agents/hpux/hpux_lunstats b/agents/hpux/hpux_lunstats
index 8e19c7b..e7e5cbb 100644
--- a/agents/hpux/hpux_lunstats
+++ b/agents/hpux/hpux_lunstats
@@ -2,6 +2,8 @@
# Put this file into /usr/lib/check_mk_agent/plugins. Then
# reinventorize your host.
+# Actually querying these stats is quite slow since they freshly update
+# on each call. If you have a few 1000 luns then this will not work.
get_stats()
{
diff --git a/agents/hpux/mk-statgrab b/agents/hpux/mk-statgrab
deleted file mode 100644
index 68311b9..0000000
--- a/agents/hpux/mk-statgrab
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-# this is for users who compiled statgrab on hp-ux.
-# note you'll need a 0.18+ version, from their github page at
-# https://github.com/i-scream/libstatgrab
-# flags used for compiling - disable documentation, examples and set*id
-
-
-if which statgrab > /dev/null ; then
- # You need statgrab to be installed. You'll find it
- # here: http://www.i-scream.org/libstatgrab/
- if statgrab const. cpu. disk. general. load. mem. net. page. proc. swap. user. > /tmp/statgrab.$$ 2>/dev/null
- then
- for s in proc cpu net load disk page
- do
- echo "<<<statgrab_$s>>>"
- cat /tmp/statgrab.$$ | grep "^$s\." | cut -d. -f2-99 | sed 's/ *= */ /'
- done
-
- echo '<<<statgrab_mem>>>'
- cat /tmp/statgrab.$$ | egrep "^(swap|mem)\." | sed 's/ *= */ /'
-
- fi
- [ -f /tmp/statgrab.$$ ] && rm -f /tmp/statgrab.$$
-fi