Page 1 of 1
Downtime with no-check
Posted: Thu Feb 11, 2021 9:10 am
by Support_Talea
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
Re: Downtime with no-check
Posted: Thu Feb 11, 2021 7:10 pm
by ssax
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.
Re: Downtime with no-check
Posted: Sat Feb 13, 2021 3:38 am
by Support_Talea
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
Re: Downtime with no-check
Posted: Mon Feb 15, 2021 1:41 pm
by ssax
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.
Re: Downtime with no-check
Posted: Wed Feb 17, 2021 10:29 am
by Support_Talea
Hi Ssax,
I never thought about it, great thank you.
-Fede
Re: Downtime with no-check
Posted: Wed Feb 17, 2021 6:24 pm
by ssax
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.
Re: Downtime with no-check
Posted: Tue Feb 23, 2021 9:42 am
by Support_Talea
HI,
I don't know how to close the thread, anyway yes, all explained.
Regards,
-Fede
Re: Downtime with no-check
Posted: Tue Feb 23, 2021 5:46 pm
by scottwilkerson
Support_Talea wrote:HI,
I don't know how to close the thread, anyway yes, all explained.
Regards,
-Fede
Locking thread