Monitor HP-UX

Hello,

Has anybody a manual how to monitor a HP-UX server.

HP-UX 11.23 Itanium 64 bit.

I have managed to get the nrpe daemon running on hpux on itanium and PA risc.

I never managed to get ssl to work. So from the nagios server I have to use the -n (noSSL) option with nrpe.

We used precompiled binarys for both nrpe daemon and the nrpe pluggins

We had the nrpe daemon for hpux-Itanium on a cd, I dont know where it came from i think it was part of “HP’s Internet Express repository” it may have come from here mayoxide.com/naghpux/

If you search around HP’s forums Im sure someone will help you out.
forums11.itrc.hp.com/service/for … Id=1180458

The PA_RISC nrpe daemon can be downloaded from here
bennyvision.com/projects/nagios/index.php

to start the nrpe daemon you have to run a configure script

hop this helps

If you want to monitor disk usage on your hp-ux box you may need this,

#the awk statement on the following line are necessary because on hpux PA-RISC if your filesystem name
#is longer than 19 characters it prints the “kbytes used avail %used Mounted on” on the next line

#eg
#/dev/vg00/lvol6 2162688 1967928 193248 91% /opt
#/dev/vgdev/interfaces

106496 1537 98449 2% /interfaces

crit=0
for FILESYSTEM in cat /etc/fstab | awk ' { print $1 } ' | grep -v 'gov.au'
do
PERCENTUSED=df -Pl $FILESYSTEM | tail -1 | awk '{if (NF!=1){if (NF==5){print $4}else{ print $5}}}' | sed s/\%//
tmp_crit=0
FILESYSTEM_SHORT=echo $FILESYSTEM | awk -F"/" '{ print $3 }'
if “$PERCENTUSED” -gt 90 ] && “$PERCENTUSED” -lt 95 ]
then
crit=$tmp_crit
echo " WARNING - $PERCENTUSED% $FILESYSTEM_SHORT;\c"
elif “$PERCENTUSED” -ge 95 ]
then
tmp_crit=2
echo " CRITICAL - $PERCENTUSED% $FILESYSTEM_SHORT;\c"
else
tmp_crit=0
fi

#this sets up the exit code variable so that when the script finishes parseing all the filesystems
#the end exit code will be the highest value.
#eg if the values are
#1,1,1,1,1,1 = 1
#1,2,2,1,2 = 2
#1,1,3,1,1 =3
if $tmp_crit -ge $crit ]
then
crit=$tmp_crit

    else
			crit=$crit

fi

done
echo "crit_val = $crit "
#this is the overall exit code that is read by nagios
exit $crit

Thanks for your answer. I monitor my HP-UX server via check_by_ssh
Works also fine!