how to verify if linux nrpe agent is running?
how to verify if linux nrpe agent is running?
How do I verify if the Linux NRPE agent is running on the Centos 7.x machine that is being monitored?
And how do I modify the "allow" IP address for the NagiosXI Server because I have installed NagiosXI on a different server?
thanks,
ik.
And how do I modify the "allow" IP address for the NagiosXI Server because I have installed NagiosXI on a different server?
thanks,
ik.
-
dwasswa
Re: how to verify if linux nrpe agent is running?
Hi @ikekim,
To check if NRPE is running , run the command
And to modify allow IP on the nagios xi server you will have to go to nrpe configuration file
cd
like so..
Look for this line
and then add your IP like so...
To check if NRPE is running , run the command
Code: Select all
service nrpe statuscd
like so..
Code: Select all
/usr/local/nagios/etc/nrpe.cfgCode: Select all
allowed_hosts=127.0.0.1Code: Select all
allowed_hosts=127.0.0.1,<IP address>Re: how to verify if linux nrpe agent is running?
Hi dwasswa ,
the command doesn't tell me if the service is running.
[root@centos-min2 ~]# service nrpe status
Redirecting to /bin/systemctl status nrpe.service
Unit nrpe.service could not be found.
I also looked at the /usr/local/nagios/etc/nrpe.cfg , but interestingly, I don't see the original INagios XI P address which the install script prompted for me to eneter.
thank,
ik
the command doesn't tell me if the service is running.
[root@centos-min2 ~]# service nrpe status
Redirecting to /bin/systemctl status nrpe.service
Unit nrpe.service could not be found.
I also looked at the /usr/local/nagios/etc/nrpe.cfg , but interestingly, I don't see the original INagios XI P address which the install script prompted for me to eneter.
thank,
ik
Re: how to verify if linux nrpe agent is running?
Most probably NRPE is running under xinetd. You can view the nrpe config by running:
Try:
Code: Select all
cat /etc/xinetd.d/nrpeCode: Select all
service xinetd status
/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: how to verify if linux nrpe agent is running?
I tried:
and it returned:
# 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 = 49.27.73.92
}
So in following your instructions I have to modify the line "only_from = new ip address"?
If yes, can I add multiple IP addresses in case I'm using more than one Nagios XI Server?
thanks.
Code: Select all
cat /etc/xinetd.d/nrpe# 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 = 49.27.73.92
}
So in following your instructions I have to modify the line "only_from = new ip address"?
If yes, can I add multiple IP addresses in case I'm using more than one Nagios XI Server?
thanks.
-
dwasswa
Re: how to verify if linux nrpe agent is running?
Yes,you can add multiple IP addresses.
Re: how to verify if linux nrpe agent is running?
Sorry I got to ask in what format do I need to provide the multiple IP addresses?
Are the values separated by space, comma, semi colon, etc?
example of multiple ip addresses(Nagio XI servers) like this ?
only_from = 192.168.1.10, 192.168.9.11
thanks.
Are the values separated by space, comma, semi colon, etc?
example of multiple ip addresses(Nagio XI servers) like this ?
only_from = 192.168.1.10, 192.168.9.11
thanks.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: how to verify if linux nrpe agent is running?
@ikekim They need to be separated by space, no commas in-between.
After modifying /etc/xinetd.d/nrpe file, restart your nrpe by running .
Let us know if that worked.
Code: Select all
only_from = 192.168.1.10 192.168.9.11Code: Select all
service xinetd restartLet us know if that worked.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.