Export hosts and ip's

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Export hosts and ip's

Post by abrist »

WillemDH wrote: It also opens the door for some new questions ( :oops: ) => Is it somehow possible to edit this xml file directly? Or edit it and then import it to Nagios?
Not really. The xml is a formatted output representing information in the DB. It is one way.
WillemDH wrote:'m asking this as it would be superb if we could compare this with our server database and add hosts to hostgroup based on our internal server database.
You may be able to do this by parsing the xml and then writing a static config file for hostgroup membership. This would have to be a custom script though.
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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Export hosts and ip's

Post by WillemDH »

Thread can be closed. Backend API works perfectly.
Nagios XI 5.8.1
https://outsideit.net
Locked