Hi Nagios team ,
I have nagios XI system version 5.6.5 we need you help about this issue
Nagios can do auto acknowledgment after 7 days if hosts or services are critical or warning
Thanks
Nagios can do auto acknowledgment
-
- Posts: 153
- Joined: Tue Oct 11, 2016 1:34 am
- Location: Ramallah West Bank Palestine
- Contact:
Re: Nagios can do auto acknowledgment
This functionality doesn't currently exist, but it could be scripted using the API and external commands.
For example, to get a list of hosts that are in a DOWN or UNKNOWN state and have not been acknowledged:
Examples specific to your XI instance can be found under Help > API Docs > Objects Reference.
That will give you information like how long it has been in that state. After parsing the data out of the response you can submit an acknowledgement - https://assets.nagios.com/downloads/nag ... mand_id=39. An external command for services also exists - https://assets.nagios.com/downloads/nag ... mand_id=40.
For example, to get a list of hosts that are in a DOWN or UNKNOWN state and have not been acknowledged:
Code: Select all
curl -XGET "https://xi_ip/nagiosxi/api/v1/objects/hoststatus?apikey=apikey&pretty=1&problem_has_been_acknowledged=0¤t_state=1" -k
curl -XGET "https://xi_ip/nagiosxi/api/v1/objects/hoststatus?apikey=apikey&pretty=1&problem_has_been_acknowledged=0¤t_state=2" -k
That will give you information like how long it has been in that state. After parsing the data out of the response you can submit an acknowledgement - https://assets.nagios.com/downloads/nag ... mand_id=39. An external command for services also exists - https://assets.nagios.com/downloads/nag ... mand_id=40.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
- Posts: 153
- Joined: Tue Oct 11, 2016 1:34 am
- Location: Ramallah West Bank Palestine
- Contact:
Re: Nagios can do auto acknowledgment
Many thanks for your response
please send me more details about API and External Command
please send me more details about API and External Command
Re: Nagios can do auto acknowledgment
Have you had the chance to look at the documents I linked to? Is there something specific that needs clarification?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Nagios can do auto acknowledgment
Hi,
is there any way to use POST or PUT methods in addition to GET?
what is the Nagios's roadmap to enhance API capabilities to include rest of functions ?
is there any way to use POST or PUT methods in addition to GET?
what is the Nagios's roadmap to enhance API capabilities to include rest of functions ?
Re: Nagios can do auto acknowledgment
Yes, POST and PUT can be used to create or modify configurations. You can find examples under Help > API Docs > Config Reference, and System Reference.
We don't list any specific features for the API on our roadmaps page(https://www.nagios.com/roadmaps/), but if you have something you'd like to see implemented, let us know and we can submit a feature request if needed.
We don't list any specific features for the API on our roadmaps page(https://www.nagios.com/roadmaps/), but if you have something you'd like to see implemented, let us know and we can submit a feature request if needed.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.