Install NRPE agent and nagios plugins
(on Oracle Solaris 10 and 11)
Internet connection is needed to grab packages from public repositories. If you use a proxy to get to the internet run the following command first from a terminal:
export http_proxy=http://<your-proxy-IP-or-name>:<proxy-port>
then
pkgadd -d http://get.opencsw.org/now
answer all
and yes
to the interactive questions, then run:
/opt/csw/bin/pkgutil -U
/opt/csw/bin/pkgutil -y -i nrpe nrpe_plugin nagios_plugins
/usr/sbin/pkgchk -L CSWnrpe # list files
NRPE agent is now installed. Run svcs
command to check:
svcs -l cswnrpe
outputo should look like this:
fmri svc:/network/cswnrpe:default
enabled true
state online
next_state none
state_time November 1, 2015 04:54:47 PM CET
logfile /var/svc/log/network-cswnrpe:default.log
restarter svc:/system/svc/restarter:default
contract_id 144
manifest /var/opt/csw/svc/manifest/network/cswnrpe.xml
dependency require_all/none svc:/system/filesystem/local (online)
dependency require_all/none svc:/network/loopback (online)
Additional tweaks
Make a backup copy of the original nrpe.cfg file:
cp /etc/opt/csw/nrpe.cfg /etc/opt/csw/nrpe.cfg.orig
and replace the nrpe.cfg
content with this (remember to edit the line with allowed_hosts and insert the <site-controller-IP>):
# cat /etc/opt/csw/nrpe.cfg
pid_file=/var/run/nrpe.pid
server_port=5666
nrpe_user=nagios
nrpe_group=nagios
dont_blame_nrpe=1
debug=1
command_timeout=60
allowed_hosts=127.0.0.1,<site-controller-IP>
command[check_users]=/opt/csw/libexec/nagios-plugins/check_users $ARG1$
command[check_disk]=/opt/csw/libexec/nagios-plugins/check_disk $ARG1$
command[check_procs]=/opt/csw/libexec/nagios-plugins/check_procs $ARG1$
command[check_swap]=/opt/csw/libexec/nagios-plugins/check_swap $ARG1$
command[check_load]=/opt/csw/libexec/nagios-plugins/check_load $ARG1$
Save, exit and restar the nrpe service:
svcadm restart svc:/network/cswnrpe:default
Reference
http://www.opencsw.org/packages/CSWnrpe/
Test
Tested on Oracle Solaris 10 (x86_64), 11 (x86_64)
Finally i got working link for activate Nagios Plugins & NRPE on Solaris 11
Hi there, glad we could help!
And don’t forget to check out this video tutorial too:
Video tutorial: Atlantix nrpe agent install on Oracle Solaris 10/11 servers
http://kb.atlantixlab.com/archives/703