이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 4. Configure the Nagios Core Server
After configuring NRPE on a Ceph host, configure the Nagios Core Server to recognize and monitor the host.
4.1. Install the check_nrpe Plug-in 링크 복사링크가 클립보드에 복사되었습니다!
4.2. Check to Ensure Connectivity 링크 복사링크가 클립보드에 복사되었습니다!
Ensure that the make and install procedures worked and that there is connectivity between the Nagios Core server and the remote host containing NRPE.
/usr/local/nagios/libexec/check_nrpe -H <IP-address-of-remote-host>
[user@nagios]# /usr/local/nagios/libexec/check_nrpe -H <IP-address-of-remote-host>
It should echo NRPE v3.1.0-rc1 if it is working correctly.
4.3. Create a Configuration for the Remote Host 링크 복사링크가 클립보드에 복사되었습니다!
cd /usr/local/nagios/etc/objects cp localhost.cfg mon.cfg
[user@nagios]# cd /usr/local/nagios/etc/objects
[user@nagios]# cp localhost.cfg mon.cfg
Replace localhost with the hostname of the remote host, and the loopback IP address with the IP address of the remote host. Finally, delete or comment out the Host Group definition.
Change the file ownership to nagios.
chown nagios:nagios mon.cfg
[user@nagios]# chown nagios:nagios mon.cfg
Add a cfg_file= reference to the mon.cfg file in /usr/local/nagios/etc/nagios.cfg.
vim /usr/local/nagios/etc/nagios.cfg
[user@nagios]# vim /usr/local/nagios/etc/nagios.cfg
For example:
cfg_file=/usr/local/nagios/etc/objects/mon.cfg
cfg_file=/usr/local/nagios/etc/objects/mon.cfg
Then, restart the Nagios server.
systemctl restart nagios
[user@nagios]# systemctl restart nagios