bb-prtdiag.sh

Author Craig Cook
Compatibility Xymon 4.2.3
Requirements bash, unix coreutils
Download None
Last Update 2009-06-10

Sun Enterprise Server check (hardware)

Client side

Add these to your hobbitclient.cfg

UNAME="/sbin/uname"
PLATFORM_SPEC=`$UNAME -i`
PRTDIAG_COMMAND="/usr/platform/$PLATFORM_SPEC/sbin/prtdiag"
PRTDIAG_OPT="-v"
#Systems that don't support temperature checks
EXCLUDE_SYSTEMS="Ultra-1 Ultra-2 Ultra-5_10 Ultra-30 Ultra-60 Ultra-80 UltraAX-i2 UltraSPARC-IIi-cEngine Sun-Fire Netra-T4 UltraAX-e2 Ultra-Enterprise-10000"
PRTDIAG_IGNORE_ERRORS="No failures|Most recent AC Power Failure|Minimum Available|CS Fail|No Hardware failures|^===|currently no Boards|Fault     Fan"
PRTDIAG_IGNORE_FAULTS="No Recent System Faults found|No System Faults found|Fault Value|Fault LED|NO_FAULT|Power  Fault|Status        Fault|Fault           off"
LOM_COMMAND="/usr/sbin/lom"
LOM_OPT="-pfvt"

Add this to your clientlaunch.cfg

[prtdiag]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-prtdiag.sh
        LOGFILE $HOBBITCLIENTHOME/logs/hobbitclient.log
        INTERVAL 5m

Server side

Nothing

Monitor Code

# Written by Paul A. Luzzi
# on March 22, 2000
#
# 3.0 Updates by David Levin 3 Jan 2001
# 3.1 Updates by Guy Thibodeau 24 Jan 2001
# 3.3 Updates by Craig Cook 22 Sep 2001
# 3.4 Updates by Craig Cook 28 Sep 2001
# 3.5 Updates by Craig Cook 22 Oct 2001
# 3.6 Updates by Craig Cook 12 Nov 2001
# 3.7 Updates by Craig Cook 21 May 2002
# 3.8 Updates by Craig Cook 12 Aug 2002
# 3.9 Updates by Craig Cook 27 Nov 2002
# 4.0 Updates by Craig Cook 24 Jul 2003
# 4.1 Updates by Craig Cook 2 Sep 2003
# 4.2 Updates by Thomas Hoerndlein 21 Jan 2004
# 4.3 Updates by Craig Cook 6 Feb 2004
# 4.4 Updates by Craig Cook 24 Jan 2005
# 4.5 Updates by Craig Cook 24 Feb 2005
# 4.6 Updates by Craig Cook 8 Mar 2005
# 4.7 Updates by Craig Cook 3 Jun 2005
# 4.8 Updates by Craig Cook 17 Jan 2007
# 4.9 Updates by Craig Cook 24 Jan 2007
# 4.10 Updates by Craig Cook 5 Mar 2007
# 4.11 Updates by Craig Cook 8 Mar 2008
# 4.12 Updates by Craig Cook 21 May 2008
# 4.13 Updates by Craig Cook 21 Nov 2008
# 4.13 Updates by Tom Moore 10 Jun 2009

  • 2000-03-22
    • Initial release
    • See script for details
  • monitors/bb-prtdiag.txt
  • Last modified: 2010/08/24 01:35
  • (external edit)