Routers and Switches templates

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
elade
Posts: 144
Joined: Wed Mar 28, 2018 6:23 am

Routers and Switches templates

Post by elade »

Hi,

I’m writing automation for deploy Nagios alerts and I’m having trouble using Network Switch / Router wizard.
I found out how to create the files in /etc/mrtg/conf.d/ and /usr/local/nagiosxi/tmp/ (/usr/bin/cfgmaker).
After that how I create the X.X.X.X.cfg file and import it to XI?
There any way to use this wizard in ansible play-book?
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Routers and Switches templates

Post by mbellerue »

The best way to create the configuration file via automation would be to use the Nagios XI API. You can get the API key for authentication by clicking on your username in the upper right corner of Nagios XI. You can get a lot of good information on how to use the API from Help -> Config Reference.

Code: Select all

curl -XGET "http://<NagiosXIHostOrIPAddress>/nagiosxi/api/v1/config/host?apikey=<YourAPIKey>&pretty=1"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
elade
Posts: 144
Joined: Wed Mar 28, 2018 6:23 am

Re: Routers and Switches templates

Post by elade »

Hi mbellerue,

Thank you.

You can close the topic
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Routers and Switches templates

Post by scottwilkerson »

elade wrote:Hi mbellerue,

Thank you.

You can close the topic
Great!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked