Downtime with no-check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Support_Talea
Posts: 73
Joined: Wed Oct 04, 2017 7:12 am

Downtime with no-check

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Downtime with no-check

Post 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.
Support_Talea
Posts: 73
Joined: Wed Oct 04, 2017 7:12 am

Re: Downtime with no-check

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Downtime with no-check

Post 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.
Support_Talea
Posts: 73
Joined: Wed Oct 04, 2017 7:12 am

Re: Downtime with no-check

Post by Support_Talea »

Hi Ssax,

I never thought about it, great thank you.

-Fede
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Downtime with no-check

Post 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.
Support_Talea
Posts: 73
Joined: Wed Oct 04, 2017 7:12 am

Re: Downtime with no-check

Post by Support_Talea »

HI,

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

Post by scottwilkerson »

Support_Talea wrote:HI,

I don't know how to close the thread, anyway yes, all explained.

Regards,
-Fede
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked