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.
Auto-discovery and auto-host creation
Re: Auto-discovery and auto-host creation
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.
/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
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!
Re: Auto-discovery and auto-host creation
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
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.
"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.
Re: Auto-discovery and auto-host creation
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.
Re: Auto-discovery and auto-host creation
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.
"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.