Page 7 of 7
Re: Nagiosxi Client Installation
Posted: Wed May 27, 2015 8:24 am
by lmichel
Can one client be monitored by more than one Nagios servers?
if yes where is the secondary server configured on the client side.
I thought the nrpe.cfg file contains the IP address of my primary Nagios server but I could not find it any where.
can you tell me which file on the client side contains the IP of the Nagios server?
can multiple IP addresses of Nagios servers be added to the client configuration file?
Re: Nagiosxi Client Installation
Posted: Wed May 27, 2015 12:27 pm
by jdalrymple
There is an allowed_hosts configuration option in nrpe.cfg, however this is typically handled by xinetd:
Code: Select all
[jdalrymple@localhost libexec]$ 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 = 192.168.145.133
}
change "only_from" to suit your needs, or omit it entirely to allow all hosts. After changing be sure to restart xinetd.
Re: Nagiosxi Client Installation
Posted: Wed May 27, 2015 12:31 pm
by jolson
To add to what jdalrymple said, you can use more than one host in the 'only_from' setting.
Code: Select all
only_from = 192.168.145.133 192.168.1.1 192.168.1.2
Re: Nagiosxi Client Installation
Posted: Thu Jun 25, 2015 9:31 am
by lmichel
Hi I have been tasked to move the Nagios monitoring server to a VM.
what is the best practice?
Re: Nagiosxi Client Installation
Posted: Thu Jun 25, 2015 9:36 am
by tmcdonald
lmichel wrote:Hi I have been tasked to move the Nagios monitoring server to a VM.
what is the best practice?
This needs to be posted in a new topic since it is unrelated to the issue at hand. Please keep issues to one per topic, as it can get very difficult trying to resolve and keep track of several issues in one thread.