Automatically state return to OK after a time

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sonuma
Posts: 42
Joined: Fri Jan 13, 2012 3:51 am

Automatically state return to OK after a time

Post by sonuma »

Hello,

With different service passive check, several times per day, I need click "submit passive check result" for return the state to OK

Is it possible to return automatically to OK state after a time defined ? if no other warning appear...
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Automatically state return to OK after a time

Post by abrist »

Is there a way to make this passive check return a resolved/recovery check? This is typically how people use passives, and it takes less management. What type of check is it? An snmp trap, nsca,nrdp, etc?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Automatically state return to OK after a time

Post by abrist »

Is there a way to make this passive check return a resolved/recovery check? This is typically how people use passives, and it takes less management. What type of passive check is it? Ssnmp trap, nsca, nrdp, etc? What metric are you checking?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
sonuma
Posts: 42
Joined: Fri Jan 13, 2012 3:51 am

Re: Automatically state return to OK after a time

Post by sonuma »

Hi,
Good question for the way...
It's SNMP trap
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Automatically state return to OK after a time

Post by sreinhardt »

Just use freshness checking for the interval that you would like, and have the check set to "check_dummy 0". This will result in any time a trap comes in, the freshness check returning it to OK will only happen if another trap does not come before the freshness interval is over. If another trap does come in, the countdown is reset again. Is that what you are looking for?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
sonuma
Posts: 42
Joined: Fri Jan 13, 2012 3:51 am

Re: Automatically state return to OK after a time

Post by sonuma »

Yes.

Freshness threshold is the intervall in second ?
I try this
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Automatically state return to OK after a time

Post by slansing »

Yes, freshness_threshold is in seconds. Let us know how this works for you.
sonuma
Posts: 42
Joined: Fri Jan 13, 2012 3:51 am

Re: Automatically state return to OK after a time

Post by sonuma »

Work fine ! thank you
Locked