Re: Monitor a Centos 7 host
Posted: Tue Oct 20, 2015 3:37 pm
it was already done.
and I posted earlier of the nrpe file in /etc/xinetd.d/nrpe
Code: Select all
[root@G1VTWEBGITLAB01 libexec]# ps -ef | grep nrpe
nrpe 6310 1 0 Oct19 ? 00:00:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
root 22733 2452 0 13:08 pts/1 00:00:00 grep --color=auto nrpe
[root@G1VTWEBGITLAB01 libexec]# kill 6310
[root@G1VTWEBGITLAB01 libexec]# yum install xinetd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.seas.harvard.edu
* epel: mirror.oss.ou.edu
* extras: mirror.lug.udel.edu
* updates: mirror.hostduplex.com
Package 2:xinetd-2.3.15-12.el7.x86_64 already installed and latest version
Nothing to do
Code: Select all
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1 G1VPNAG03
}
Code: Select all
[root@G1VTWEBGITLAB01 libexec]# service xinetd restart
Redirecting to /bin/systemctl restart xinetd.service
[root@G1VTWEBGITLAB01 libexec]# ps -ef | grep nrpe
root 22816 2452 0 13:12 pts/1 00:00:00 grep --color=auto nrpe
[root@G1VTWEBGITLAB01 libexec]# netstat -at | grep nrpe
tcp6 0 0 [::]:nrpe [::]:* LISTEN