Hi Robert,
all I did till now was monitoring CPU on HPUX 11.x with check _by_ssh and my
own "plugin".
This is how I did it. The PlugIn uses the sar command on the HPUX machine, so
check first if it is available on yours, too
You also need a "passphraseless" SSH Keypair to get check_by_ssh working
without password between icinga box and HPUX
#!/bin/bash
crit=$1
exitcode=0
cpuusr=`sar 1 2 | tail -n1 | awk '{ print $2 }' | sed s/,..//g`
cpusys=`sar 1 2 | tail -n1 | awk '{ print $3 }' | sed s/,..//g`
cpuiowait=`sar 1 2 | tail -n1 | awk '{ print $4 }' | sed s/,..//g`
if [ $cpuusr -gt $crit ] || [ $cpusys -gt $crit ] || [ $cpuiowait -gt $crit ];
then
echo "CPU CRITICAL: %usr: $cpuusr, %sys: $cpusys, %iowait: $cpuiowait |
cpuUsr=$cpuusr%;90;95 cpuSys=$cpusys%;90;95 cpuIOwait=$cpuiowait%;90;95"
exitcode=2
exit $exitcode
else
echo "CPU OK: %usr: $cpuusr, %sys: $cpusys, %iowait: $cpuiowait |
cpuUsr=$cpuusr%;90;95 cpuSys=$cpusys%;90;95 cpuIOwait=$cpuiowait%;90;95"
exitcode=0
exit $exitcode
fi
example check from icinga box:
./check_by_ssh -H <hostaddress> -i /home/icinga/.ssh/id_rsa -l root -C
"/check_cpu.sh 95" (95 is the critical threshold. Warning is not yet
implemented)
If you have any questions - ask them
This script is a quick shot to get things done - there may be a lot to improve
;)
Hope that helps - at least to get an idea how to continue...
Regards
Sven
Von: Robert Carpenter [mailto:robert.carpen...@ubm.com]
Gesendet: Montag, 16. Juli 2012 18:49
An: 'icinga-users@lists.sourceforge.net'
Betreff: [icinga-users] Monitoring HPUX 11.23 and Solaris 10 Servers
I currently have a the Icinga 1.7.1 server running on a Centos 5.2 server.
What I would like to do is monitor HPUX 11.23 and Solaris 10 servers as well.
As anyone tried to get these going and what do I need to do?
Robert
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users