Page 1 of 1

How to turn off email notifications between specific time

Posted: Fri Jul 22, 2016 5:33 am
by blaha
Hi, how can I turn off email notifications between specific time of backup servers. For example, I backup every day between 20:00 - 03:00. How to exclude this time. Every day I have a lots of mail notification with alerts in mailbox. My timeperiods is in attachemnt.
Thank you
Jan.

Re: How to turn off email notifications between specific tim

Posted: Fri Jul 22, 2016 11:36 am
by mcapra
You could schedule a recurring period of downtime every day between 20:00 and 03:00.

I've attached an internal document that discusses this topic. Refer to the "The Recurring Scheduled Downtime Menu" section. This allows you to schedule downtime on a regular basis, so it sounds like it should be perfect for your use case.

With the "Add Recurring Downtime Schedule" tool, you would set your Start Time at 20:00 and the duration to 420 for 7 hours.

Re: How to turn off email notifications between specific tim

Posted: Mon Jul 25, 2016 2:36 am
by blaha
Hi, I have only item Downtime and I don't know how to set it, more in picture.
Recurring Downtime is not there.

Re: How to turn off email notifications between specific tim

Posted: Mon Jul 25, 2016 2:55 am
by Box293
You are using the Nagios Core interface, thats why it's not there.

You need to use the Nagios XI interface to be able to add recurring downtime.

Re: How to turn off email notifications between specific tim

Posted: Mon Jul 25, 2016 6:53 am
by blaha
Hi, how to use Nagios XI interface? Can I something install?

Re: How to turn off email notifications between specific tim

Posted: Mon Jul 25, 2016 12:06 pm
by mcapra
It's worth asking, are you sure you did a Nagios XI installation and not a Nagios Core installation? This question was asked in the Nagios XI section; The process is a bit different for Nagios Core.

Are you able to access the http://<server address>/nagiosxi/ path? Essentially, switching between the XI and Core interfaces is as easy as using the /nagios or /nagiosxi paths.

Re: How to turn off email notifications between specific tim

Posted: Mon Jul 25, 2016 4:56 pm
by eloyd
Either way, I'd say SKIP the recurring downtime, and just use a notifications_period entry that excludes your backup timeframe window. You're not "down" you just don't want notifications during that timeframe.

Re: How to turn off email notifications between specific tim

Posted: Tue Jul 26, 2016 9:32 am
by mcapra
Let us know if you need additional assistance @blaha!

Re: How to turn off email notifications between specific tim

Posted: Tue Jul 26, 2016 2:05 pm
by blaha
Hi, I tried URL http://192.168.100.103/nagiosxi and output is: Not Found

The requested URL /nagiosxi was not found on this server.

Re: How to turn off email notifications between specific tim

Posted: Tue Jul 26, 2016 8:52 pm
by Box293
You do not have Nagios XI and hence you do not get the advanced features of scheduling recurring downtime.

You could set it up as a cron job using the command pipe. This web page has some examples:

http://sites.box293.com/nagios/guides/t ... e-and-cgis

See the example "Scheduling Downtime On The Nagios Host - Recurring"