Solaris 11.2 or 10 has a repository that you can use to install the software to talk to you Nagios server.
pkgadd -d http://get.opencsw.org/now
/opt/csw/bin/pkgutil -U
/opt/csw/bin/pkgutil -y -i nrpe
/usr/sbin/pkgchk -L CSWnrpe # list files
edit
# vi /etc/opt/csw/nrpe.cfg
# svcadm restart svc:/network/cswnrpe
CentOS 7
Use the epel reposity
#yum -y install epel-release
#yum -y install nrpe nagios-plugins-all openssl
Edit /etc/nagios/nrpe.cfg file,
sudo vi /etc/nagios/nrpe.cfg
Add your Nagios server ip address:
[...]
## Find the following line and add the Nagios server IP xx
allowed_hosts=127.0.0.1, xxx.xxx.xxx.xxx
[...]
Start nrpe service on CentOS clients:
CentOS 7:
#systemctl start nrpe ; chkconfig nrpe on
CentOS 6.x:
#service nrpe start
#chkconfig nrpe on
Centos 7
# firewall-cmd --zone=public --add-port=5666/tcp --permanent
# firewall-cmd --reload
Centos 6
#iptables -A INPUT -s 192.168.0.100 -p tcp -m tcp --dport 5666 -m state --state NEW,ESTABLISHED -j ACCEPT
#service iptables save
#service iptables restart
No comments:
Post a Comment