Nagiosxi Client Installation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lmichel
Posts: 44
Joined: Tue Mar 15, 2011 9:11 am

Re: Nagiosxi Client Installation

Post 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?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagiosxi Client Installation

Post 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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Nagiosxi Client Installation

Post 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
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
lmichel
Posts: 44
Joined: Tue Mar 15, 2011 9:11 am

Re: Nagiosxi Client Installation

Post by lmichel »

Hi I have been tasked to move the Nagios monitoring server to a VM.
what is the best practice?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagiosxi Client Installation

Post 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.
Former Nagios employee
Locked