is_volatile directive for active service
-
- Posts: 43
- Joined: Wed Mar 21, 2018 1:11 pm
is_volatile directive for active service
Hello Team,
I would like to know whether this directive is_volatile can work on active checks .
If not , is there any way to make my active service OK state before next normal check interval
I would like to know whether this directive is_volatile can work on active checks .
If not , is there any way to make my active service OK state before next normal check interval
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: is_volatile directive for active service
Yes it does
-
- Posts: 43
- Joined: Wed Mar 21, 2018 1:11 pm
Re: is_volatile directive for active service
Hello scottwilkerson
Thank you for your info . I am creating the definition like follows . But its not turning the service to OK state . this service is a log monitoring service so at every normal interval it should trigger new alert . So i thought of making the service OK before the next normal check interval .
Kindly let me know whether am doing any error .
Thank you for your info . I am creating the definition like follows . But its not turning the service to OK state . this service is a log monitoring service so at every normal interval it should trigger new alert . So i thought of making the service OK before the next normal check interval .
Code: Select all
max_check_attempts 1
normal_check_interval 10
retry_check_interval 10
process_perf_data 0
notification_options c,r
is_volatile 1
check_freshness 1
freshness_threshold 300
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: is_volatile directive for active service
do you have a check_command defined? That is what is going to be run at the freshness_interval
Usually you would add a check_dummy command to the definition like the following:
Usually you would add a check_dummy command to the definition like the following:
Code: Select all
check_dummy!0!"Reset to OK"
-
- Posts: 43
- Joined: Wed Mar 21, 2018 1:11 pm
Re: is_volatile directive for active service
Its a active check .
The defined check command monitors log file at client every 10 minutes . i think check command cannot be changed , it should point the logfile monitoring .
is there a way to use is_volatile without freshness threshold .
Also am wondering check_dummy can be used for active checks . We are using it only for passive check where to commands triggered from nagios side .
The defined check command monitors log file at client every 10 minutes . i think check command cannot be changed , it should point the logfile monitoring .
is there a way to use is_volatile without freshness threshold .
Also am wondering check_dummy can be used for active checks . We are using it only for passive check where to commands triggered from nagios side .
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: is_volatile directive for active service
I'm confused, if it is an active check, why would you want to
See:
https://assets.nagios.com/downloads/nag ... vices.html
?satheesh19870819 wrote:make my active service OK state before next normal check interval
See:
https://assets.nagios.com/downloads/nag ... vices.html
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: is_volatile directive for active service
yes. freshness is not requiredsatheesh19870819 wrote:is there a way to use is_volatile without freshness threshold .
-
- Posts: 43
- Joined: Wed Mar 21, 2018 1:11 pm
Re: is_volatile directive for active service
i have a check which monitors log file . every 30 minutes it will monitor the file and if there is any new error message in log then it will alert . Once alerted admin will acknowledge the alert and start working on it .
During the next check if there is new error entry in log for different message (not the old error) , then we need new alert .
Since its ACK no new alerts will happen without state change . So i thought of making it OK before next normal check interval .
During the next check if there is new error entry in log for different message (not the old error) , then we need new alert .
Since its ACK no new alerts will happen without state change . So i thought of making it OK before next normal check interval .
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: is_volatile directive for active service
There is not function to make it OK before the next check attempt, unless instead of acknowledging the alert the person just sends a passive check of OK which you can do from the interface.
-
- Posts: 43
- Joined: Wed Mar 21, 2018 1:11 pm
Re: is_volatile directive for active service
ok thank you for the clear information .
So in general shall we say like is_volatile and freshness will not work for active checks and they are meant for passive checks .
So in general shall we say like is_volatile and freshness will not work for active checks and they are meant for passive checks .