nv-l
[Top] [All Lists]

RE: [nv-l] [NV, DM] UNIX hardware monitoring

To: "'blane.robertson@CenterPointEnergy.com'" <blane.robertson@CenterPointEnergy.com>, nv-l@lists.tivoli.com, tme10@lists.tivoli.com
Subject: RE: [nv-l] [NV, DM] UNIX hardware monitoring
From: "Davis, Donald" <donald.davis@firstcitizens.com>
Date: Mon, 31 Mar 2003 17:49:02 -0500
Delivered-to: mailing list nv-l@lists.tivoli.com
Delivery-date: Tue, 01 Apr 2003 00:06:26 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
List-help: <mailto:nv-l-help@lists.tivoli.com>
List-post: <mailto:nv-l@lists.tivoli.com>
List-subscribe: <mailto:nv-l-subscribe@lists.tivoli.com>
List-unsubscribe: <mailto:nv-l-unsubscribe@lists.tivoli.com>
Mailing-list: contact nv-l-help@lists.tivoli.com; run by ezmlm

I am running 7.1.3 on AIX 5.1.
Here's a script that I use. I got it from the AIX forum at www.tek-tips.com
I use it to send me e-mail when anything is written to errpt.
With a little massaging you should be able to send a custom SNMP trap or run a command with it too.
I run it from /etc/inittab with the following line:
ErrorRpt:23:respawn:/usr/local/Tivoli/scripts/errmon.ksh  >/dev/console 2>&1

#! /usr/bin/ksh
#
# $0 = errmon.ksh
#
# Written 11/3/1998 Bill Verzal.
#
# This script will run every [interval] and check the error log
# for new entries.  Upon finding them, it will send an email to
# administrators containing a message indicating the change
# in errlog status, as well as the offending lines.
#
if [ "$1" = "-v" ] ; then
   set -x
fi
lc="NULL"
tc="$lc"
# lc="last count"
# tc="this count"
#interval=900
interval=300
# Divide interval by 60 to get number of minutes.
me="$0 - Hardware error monitoring"
myname=`hostname`
args="$*"
#mailto="root"
#mailto="alert"
mailto="donald.davis@firstcitizens.com"
true=0
false=1
boj=`date`

echo "$me started.\nThis message goes to $mailto." | mail -s "Errlog monitoring for $myname" $mailto
logger "$0 started"

while [ "$true" != "$false" ] ; do
   tc=`errpt -dH,S,U,O | wc -l`
   if [ "$lc" = "NULL" ] ; then
      lc="$tc"
   fi
   if [ "$lc" -ne "$tc" ] ; then
      foo=`echo "$tc-$lc"|bc`
      msg="$foo new errors have been found on $myname"
      page_msg="$foo new errors have been found on $myname"
      errlogl=`errpt -dH,S,U,O -a`
      if [ "$tc" -eq "0" ] ; then
         msg="$msg\n Errlog was cleared"
      else
         logger $msg
         msg=" $msg \n Errlog details below:\n $errlogl \n"
         echo "$msg" | mail -s "Errlog status change on host $myname" $mailto
      fi
   fi
   lc="$tc"
   sleep $interval
done


Don
=======================
Don Davis
First Citizens Bank
Raleigh, NC.  27603-3526
 


-----Original Message-----
From: blane.robertson@CenterPointEnergy.com
[mailto:blane.robertson@CenterPointEnergy.com]
Sent: Friday, March 28, 2003 5:20 PM
To: nv-l@lists.tivoli.com; tme10@lists.tivoli.com
Subject: [nv-l] [NV, DM] UNIX hardware monitoring


Good day Tivoliers,

We (ESM) are having a discussion with the UNIX team as to what tool(s) to
use for monitoring the hardware on these platforms.  We have both SUN and
AIX, but the UNIX team has told us that SNMP is useless for this task.  Is
this true?  Up to this point, it hasn't been an issues for us, but it's
coming to the forefront so it needs to be addressed.

Any input would be most appreciated.  Please respond directly as well as to
the list since I only get the digest.  Thanks in advance.

Peace,
Blane Robertson
IT - Nerve Center
CenterPoint Energy, Inc.
713.207.2002

What good is it for a man to gain the whole world, yet forfeit his soul? -
Mark 8:36

Whether you think you can or you think you can't, you're right. --
Anonymous



---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com

*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)

------------------------------------------------------------------------------
This electronic mail and any files transmitted with it are confidential and are intended solely for the use of individual or entity to whom they are addressed. If you are not the intended recipient or the person responsible for delivering the electronic mail to the intended recipient, be advised that you have received this electronic mail in error and that any use, dissemination, forwarding, printing, or copying of this electronic mail is strictly prohibited. If you have received this electronic mail in error, please immediately notify the sender by return mail.
==============================================================================

<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web