Page 1 of 1

Auto-discovery and auto-host creation

Posted: Wed May 21, 2014 12:09 pm
by barathia
hello

I can see how auto-discovery wizard can detect a new host and determine its type such as cisco device, Linux, Windows, ESX etc.

I also can see how host config/creation can be automated. http://assets.nagios.com/downloads/nagi ... gement.pdf

But now my question, say for instance, I am running the auto-discovery wizard daily and it discovers new hosts in our networks, now how can I fetch the hostname of this newly discovered host and update that into my hostname.cfg file which I can later place in the /usr/local/nagios/etc/import/ directory.

In simple how do I link what is discovered into my config script. Where can I fetch the info of newly discovered hosts. Does the Auto-discovery wizard store it in any file or log?

If feeding the hostname is not automatic then that doesn't sound like auto host creation.

Many thanks.

Re: Auto-discovery and auto-host creation

Posted: Wed May 21, 2014 2:33 pm
by barathia
I had been looking at how I am going to find the results of auto discovery and I did find the place. Its located in

/usr/local/nagiosxi/html/includes/components/autodiscovery/jobs

I can grep the hostname of new servers from here and add it into hostname.cfg which will be placed in the /usr/local/nagios/etc/import/ directory. That way i can automate it.

I think I got my answer but if anyone had any more better suggestions please let me know.

Many thanks.

Re: Auto-discovery and auto-host creation

Posted: Thu May 22, 2014 9:48 am
by lmiltchev
By design, the Auto-Discovery Wizard is built to, well, auto-discover hosts, not add them automatically. You can try the solution that you described. This is a good feature request idea. If you want, you can post a feature request on our public tracker or I can post it for you (if you want me to). Thank you!

Re: Auto-discovery and auto-host creation

Posted: Tue Feb 10, 2015 4:47 pm
by barathia
Well yeah it looks like this cannot be archived by Nagios alone. Hence we are taking a different approach to this. We are planning to intergrate Check_MK with nagios XI.

Re: Auto-discovery and auto-host creation

Posted: Tue Feb 10, 2015 5:00 pm
by abrist
That is a fine solution - one that is used by many large organizations leveraging cloud instances.

Re: Auto-discovery and auto-host creation

Posted: Tue Feb 10, 2015 5:19 pm
by barathia
we are still at the beginning stages of the check_mk via Nagios XI solutions. Can you direct me to any documents within Nagios XI or forums that has this model? I am not able to refresh the check_mk on regular basis and am not able to get the check results into Nagios

Re: Auto-discovery and auto-host creation

Posted: Wed Feb 11, 2015 10:51 am
by abrist
We do not provide any documentation for using check_mk with Nagios XI. What documentation did you follow to set up check_mk? Are you using livestatus as well?