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?
Routers and Switches templates
Re: Routers and Switches templates
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Routers and Switches templates
Hi mbellerue,
Thank you.
You can close the topic
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
Great!elade wrote:Hi mbellerue,
Thank you.
You can close the topic
Locking