Auto-discovery and auto-host creation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
barathia
Posts: 18
Joined: Thu Dec 19, 2013 8:04 pm

Auto-discovery and auto-host creation

Post 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.
barathia
Posts: 18
Joined: Thu Dec 19, 2013 8:04 pm

Re: Auto-discovery and auto-host creation

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Auto-discovery and auto-host creation

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
barathia
Posts: 18
Joined: Thu Dec 19, 2013 8:04 pm

Re: Auto-discovery and auto-host creation

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Auto-discovery and auto-host creation

Post by abrist »

That is a fine solution - one that is used by many large organizations leveraging cloud instances.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
barathia
Posts: 18
Joined: Thu Dec 19, 2013 8:04 pm

Re: Auto-discovery and auto-host creation

Post 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
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Auto-discovery and auto-host creation

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked