Page 1 of 1

Hosts already discovered by a configuration wizard

Posted: Mon Feb 01, 2016 8:59 am
by ajayasenapati
Hi,

In Nagios XI, is there any way to find-out what are the hosts already discovered using a custom configuration wizard?
Are there any API available ?

Regards,
Ajaya

Re: Hosts already discovered by a configuration wizard

Posted: Mon Feb 01, 2016 11:44 am
by rkennedy
The results for previous auto discovery jobs can be found at /usr/local/nagiosxi/html/includes/components/autodiscovery/jobs, in there is an XML document that you should be able to pull information accordingly.

Is that what you're looking for?

Re: Hosts already discovered by a configuration wizard

Posted: Mon Feb 01, 2016 11:51 am
by ajayasenapati
I am not looking for information that uses auto discovery jobs / wizard. In general, if a custom config wizard uses a mechanism such as "Subnet" or "Host/IP" to a specialised discover of devices, at a later stage how a user will find what are all the host/IPs that are being discovered using that custom config wizard.

Re: Hosts already discovered by a configuration wizard

Posted: Mon Feb 01, 2016 12:01 pm
by tmcdonald
At least in the case of our standard wizards, they will put in a custom variable called "_xiwizard" with a value indicating what wizard created the checks. For example, the Switch/Router Wizard has the value of "switch". Your custom wizard would need to add in this value, otherwise I can't think of a great way to identify those hosts/services from others.