Module: check_mk
Branch: master
Commit: 98a1ac37ec505192f8c7a55e838d615795d9043a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=98a1ac37ec5051…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Fri Jun 8 19:30:00 2012 +0200
Move HP-UX FC HBA health check into standard agent
---
agents/check_mk_agent.hpux | 10 ++++++++++
agents/hpux/hpux_hbahealth | 29 -----------------------------
2 files changed, 10 insertions(+), 29 deletions(-)
diff --git a/agents/check_mk_agent.hpux b/agents/check_mk_agent.hpux
index dbacdcb..9edbcb6 100755
--- a/agents/check_mk_agent.hpux
+++ b/agents/check_mk_agent.hpux
@@ -111,6 +111,16 @@ then
fi
+# State of FC HBAs
+fcms_util=/opt/fcms/bin/fcdutil
+echo '<<<hpux_hbahealth>>>'
+for hba in /dev/fcd* ; do
+ echo "$hba"
+ $fcms_util $hba | grep -e "Driver state" -e "Topology" -e
"Dump Available"\
+ -e "Code version" -e "Hardware Path" -e
"Port World"
+done
+
+
# Einbinden von lokalen Plugins, die eine eigene Sektion ausgeben
if cd $PLUGINSDIR
then
diff --git a/agents/hpux/hpux_hbahealth b/agents/hpux/hpux_hbahealth
deleted file mode 100755
index 7ac87ed..0000000
--- a/agents/hpux/hpux_hbahealth
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/ksh
-
-# removed all non relevant output
-
-
-# Warning on
-# Driver-Firmware Dump Available = NO
-
-
-# CRIT on
-# Driver state = ONLINE
-# Topology = PTTOPT_FABRIC
-
-
-# Just Print
-# ISP Code version = 5.4.4
-# N_Port Node World Wide Name = 0x50014380120baf51
-# Hardware Path is = 0/0/0/5/0/0/0
-
-# There might be different hbas in the system.
-# add your code if you need that. remember to use the right "util" for the
type.
-
-echo '<<<hpux_hbahealth>>>'
-for hba in /dev/fcd* ; do
- util=/opt/fcms/bin/fcdutil
- echo "$hba"
- $util $hba | grep -e "Driver state" -e "Topology" -e "Dump
Available"\
- -e "Code version" -e "Hardware Path" -e "Port
World"
-done