Installing NRPE in Solaris 10
1. Install NRPE and dependencies using blastwave repository, if new to blastwave then follow the howto use the repostory for installing third party and GNU tools in Solaris.
/opt/csw/bin/pkgutil -i nrpe
2. Download manifest files
wget -P /tmp/ http://www.terdmonk.com/files/solaris/nagios/nrpe_smf.zip
# cd /tmp
# unzip nrpe_smf.zip
# mv nrpe/manifest/nagios-nrpe.xml /var/svc/manifest/network
# mv nrpe/method/nagios-nrpe /lib/svc/method/nagios-nrpe
# svccfg import /var/svc/manifest/network/nagios-nrpe.xml
3. Create nrpe.cfg file
mv /opt/csw/etc/nrpe.cfg-sample /opt/csw/etc/nrpe.cfg
4. Fixing permissions
chown nagios:nagios /opt/csw/etc/nrpe.cfg
chmod ug+x /lib/svc/method/nagios-nrpe
5. Starting NRPE daemon
# svcadm disable nrpe
# svcadm enable nrpe
That's all confirm that nrpe is running and listening on port 5666
# svcs | grep nrpe
online May_29 svc:/network/nagios/nrpe:default
# netstat -a | grep 5666
*.5666 *.* 0 0 49152 0 LISTEN
No comments:
Post a Comment