Page 1 of 1

Automatic detection of host to be monitored

Posted: Fri Aug 22, 2014 2:55 am
by alberto.alonso
Hello

Im installing Nagios and I have a doubt I don`t know how to deal with.

When setting up Nagios, in the file /usr/local/nagios/etc/hosts.cfg is where you configure the hosts to be monitored. The question is, how can I update automatically this file when a new server has to be monitored too?

If a new server (that has to be monitored too) starts running, I would like Nagios to automatically monitor this new server too. But if this new server hasnt been included in the hosts.cfg, this wont happen.

is there something that does this automatically?

Thanks in advance

Re: Automatic detection of host to be monitored

Posted: Fri Aug 22, 2014 10:10 am
by tmcdonald
There is nothing built into Nagios Core that will do this. You would need to first determine what counts as a new server. Newly-added to the network? What if it was on the network but powered off? What if it is blocking pings so it appears to be down? It can certainly be done, but it is not something we have currently.