1847858 Members
2693 Online
104021 Solutions
New Discussion

Monitoring Software

 
Jade Bulante
Frequent Advisor

Monitoring Software

I currently have Predictive Software installed in our HP9000 11x but would like to find out if there is any other monitoring software that would call or page me if the system ever goes down.
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: Monitoring Software

Hi:

Check out EMS (its on the SupportPlus CD in the DIAGNOSTICS bundle). Here's the documentation link:

http://docs.hp.com/hpux/onlinedocs/B6191-90022/B6191-90022.html

...JRF...
Craig A. Sharp
Super Advisor

Re: Monitoring Software

I have written several scripts that do just what you want. Here is an example to follow. This script checks every minute via cron for diabled printers and pages when it finds one.

PRINTERS=`lpstat -p | grep 'disabled since' | awk '{print $2"," $3}'`
set -x
for i in $PRINTERS
do
NAME=`echo $i | cut -f1 -d,`
STATUS=`echo $i | cut -f2 -d,`
if [ ! -f /home/admin/ptrcheck/$NAME.disabled ]
then
echo Printer $NAME is disabled >> /home/admin/ptrcheck/OUTPUT
touch /home/admin/ptrcheck/$NAME.disabled
fi
done

if [ -f /home/admin/ptrcheck/OUTPUT ]
then
cat /home/admin/ptrcheck/OUTPUT | mailx -s "Printer Warning" ##########@pagen
etmessage.net
cat /home/admin/ptrcheck/OUTPUT | mailx -s "Printer Warning" ##########@pagenet.net
fi

cd /home/admin/ptrcheck
for fn in *.disabled
do
NAME=`echo $fn | awk -F. '{print $1}'`
cnt=`lpstat -p$NAME | grep enabled | wc -l`
if [ $cnt -eq 1 ]
then
rm /home/admin/ptrcheck/$NAME.disabled
fi
done

rm /home/admin/ptrcheck/OUTPUT
Jade Bulante
Frequent Advisor

Re: Monitoring Software

Can EMS be configured to grab a line and page somebody??