Nagios can do auto acknowledgment

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bashar.abed
Posts: 153
Joined: Tue Oct 11, 2016 1:34 am
Location: Ramallah West Bank Palestine
Contact:

Nagios can do auto acknowledgment

Post by bashar.abed »

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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios can do auto acknowledgment

Post by cdienger »

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:

Code: Select all

curl -XGET "https://xi_ip/nagiosxi/api/v1/objects/hoststatus?apikey=apikey&pretty=1&problem_has_been_acknowledged=0&current_state=1" -k
curl -XGET "https://xi_ip/nagiosxi/api/v1/objects/hoststatus?apikey=apikey&pretty=1&problem_has_been_acknowledged=0&current_state=2" -k
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bashar.abed
Posts: 153
Joined: Tue Oct 11, 2016 1:34 am
Location: Ramallah West Bank Palestine
Contact:

Re: Nagios can do auto acknowledgment

Post by bashar.abed »

Many thanks for your response

please send me more details about API and External Command
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios can do auto acknowledgment

Post by cdienger »

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.
hh_naseef
Posts: 2
Joined: Fri Jan 01, 2021 9:28 am

Re: Nagios can do auto acknowledgment

Post by hh_naseef »

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 ?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios can do auto acknowledgment

Post by cdienger »

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked