Hi,
I need a technical opinion.
I am in the situation that the vpn tunnel check verifies connectivity, in case of no connectivity, try the tunnel reset.
If by any chance something abnormal happens to the tunnel, the VPN check keeps resetting the tunnel to critical.
Is there any way to set up some kind of downtime where it doesn't check for a certain amount of time?
Because I don't want to disable the check (dependencies etc) and I don't want to remove the script execution.
Best regards,
-Fede
Downtime with no-check
Re: Downtime with no-check
To make sure I'm understanding how you have this setup, is this an active check that checks the VPN tunnel and if there's an issue it runs an event handler script (defined on the service) that will reset the VPN tunnel? Or is that VPN reset all done by the plugin (or some other method)?
There really isn't a good way to do this because even if you schedule downtime (the only thing that auto-expires) the check still runs only the notifications are suppressed. A complex example would be that you could have your VPN reset script create a temp file and submit a command to stop the service from checking:
https://assets.nagios.com/downloads/nag ... mmand_id=6
Then you could have a cron job that constantly checks for that file, if it exists wait until it's creation date + X minutes have passed, then delete the file and re-enable the service checking:
https://assets.nagios.com/downloads/nag ... mmand_id=5
A better method would probably be to convert it into a passive check and only submit the results you want since all the fail/reset/wait logic would be done in the plugin.
There really isn't a good way to do this because even if you schedule downtime (the only thing that auto-expires) the check still runs only the notifications are suppressed. A complex example would be that you could have your VPN reset script create a temp file and submit a command to stop the service from checking:
https://assets.nagios.com/downloads/nag ... mmand_id=6
Then you could have a cron job that constantly checks for that file, if it exists wait until it's creation date + X minutes have passed, then delete the file and re-enable the service checking:
https://assets.nagios.com/downloads/nag ... mmand_id=5
A better method would probably be to convert it into a passive check and only submit the results you want since all the fail/reset/wait logic would be done in the plugin.
-
Support_Talea
- Posts: 73
- Joined: Wed Oct 04, 2017 7:12 am
Re: Downtime with no-check
Hi,
Thanks for the reply.
I will try to configure a script that runs enable and disable svc.
A button in the dashboard with an icon would be more convenient, you may think it for the next releases.
Best regards,
-Fede
Thanks for the reply.
I will try to configure a script that runs enable and disable svc.
A button in the dashboard with an icon would be more convenient, you may think it for the next releases.
Best regards,
-Fede
Re: Downtime with no-check
You can view the service, click the advanced (+) tab, and do it from there as well, I just thought you wanted an automated solution, that's why I was asking how you had it setup.
-
Support_Talea
- Posts: 73
- Joined: Wed Oct 04, 2017 7:12 am
Re: Downtime with no-check
Hi Ssax,
I never thought about it, great thank you.
-Fede
I never thought about it, great thank you.
-Fede
Re: Downtime with no-check
No problem, let us know if you have any further questions or when we're okay to lock this up and mark it as resolved.
-
Support_Talea
- Posts: 73
- Joined: Wed Oct 04, 2017 7:12 am
Re: Downtime with no-check
HI,
I don't know how to close the thread, anyway yes, all explained.
Regards,
-Fede
I don't know how to close the thread, anyway yes, all explained.
Regards,
-Fede
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Downtime with no-check
Locking threadSupport_Talea wrote:HI,
I don't know how to close the thread, anyway yes, all explained.
Regards,
-Fede