Team,
Our present version Nagios XI "5.2.7" and planning to automate nagios alerts like enable/disable and put schedule down time tasks.
Can you please provide API's for alerts enable/disable and schedule down time.
Please answer below questions:
1. Is the version 5.2.7 support full nagios api's ?
2. If we want to upgrade to new version, can we use same license to upgrade to new version ?
What API's to schedule down time & enable/disabled alert?
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: What API's to schedule down time & enable/disabled alert
Hello @ibmkenexa,
There has been a lot of development done on the API since 5.2.7, so I would recommend upgrading to the latest version to be able to schedule downtime, enable/disable notifications and more. If you have any questions about your current license, please send a messages to [email protected].
Once you upgrade, the documentation for the API is found in the UI at Help > API Docs. There you'll find example commands.
For example, to enable/disable notifications, you can use the external nagios core commands from the API.
There has been a lot of development done on the API since 5.2.7, so I would recommend upgrading to the latest version to be able to schedule downtime, enable/disable notifications and more. If you have any questions about your current license, please send a messages to [email protected].
Once you upgrade, the documentation for the API is found in the UI at Help > API Docs. There you'll find example commands.
For example, to enable/disable notifications, you can use the external nagios core commands from the API.
Code: Select all
#Disable
curl -XPOST "http://192.168.23.100/nagiosxi/api/v1/system/corecommand?apikey=<api-key>" -d "cmd=DISABLE_NOTIFICATIONS"
#Enable
curl -XPOST "http://192.168.23.100/nagiosxi/api/v1/system/corecommand?apikey=<api-key" -d "cmd=ENABLE_NOTIFICATIONS"
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!