http://labs.consol.de/wp-content/uploads/2011/10/check_hpasm-4.3.tar.gz
被监控端:
$ sudo tar zxfv check_hpasm-4.3.tar.gz
$ cd check_hpasm
$ ./configure --enable-hpacucli --enable-perfdata --enable-extendedinfo
$ sudo make
$ sudo make install
$ sudo vi /etc/nagios/nrpe.cfg
command[check_hpasm]=/usr/local/nagios/libexec/check_hpasm --perfdata short
:wq
$ sudo service nagios-nrpe-server restart
监控端:
$ sudo vi /usr/local/nagios/etc/objects/ming.cfg
define service{
use local-service
host_name ming
service_description hpasm
check_command check_nrpe!check_hpasm
}
:wq
$ sudo service nagios restart
本文转自linux博客51CTO博客,原文链接http://blog.51cto.com/yangzhiming/1537556如需转载请自行联系原作者
yangzhimingg