Page 2 of 2

Re: Time of Email Notifications

Posted: Tue Apr 17, 2018 3:20 pm
by TBlaine27
nagiosadmin is the only contact, which is me / my email address.

Re: Time of Email Notifications

Posted: Tue Apr 17, 2018 3:26 pm
by scottwilkerson
I cannot explain that then, is the workhours timeperiod used in any of your configurations?

Do the checks run after hours but just don't send notifications?

Re: Time of Email Notifications

Posted: Tue Apr 17, 2018 3:27 pm
by TBlaine27
Ohhhhh --- I just found this in templates.cfg

define host{
name linux-server ; The name of this host template
use generic-host ; This template inherits other values from the generic-host template
check_period 24x7 ; By default, Linux hosts are checked round the clock
check_interval 5 ; Actively check the host every 5 minutes
retry_interval 1 ; Schedule host check retries at 1 minute intervals
max_check_attempts 10 ; Check each Linux host 10 times (max)
check_command check-host-alive ; Default command to check Linux hosts
notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day
; Note that the notification_period variable is being overridden from
; the value that is inherited from the generic-host template!
notification_interval 120 ; Resend notifications every 2 hours
notification_options d,u,r ; Only send notifications for specific host states
contact_groups admins ; Notifications get sent to the admins by default
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}

Re: Time of Email Notifications

Posted: Tue Apr 17, 2018 3:45 pm
by scottwilkerson
there ya go, change workhours to 24x7 there

and restart nagios, and you should be done

Re: Time of Email Notifications

Posted: Tue Apr 17, 2018 4:04 pm
by TBlaine27
Thanks for all the help, I really appreciate it!

Re: Time of Email Notifications

Posted: Tue Apr 17, 2018 4:15 pm
by scottwilkerson
Let us know if that doesn't work but I'm guessing that'll do it

Re: Time of Email Notifications

Posted: Tue Apr 17, 2018 7:26 pm
by TBlaine27
That did it, I got alerts after 5pm!

woohoo!

Re: Time of Email Notifications

Posted: Wed Apr 18, 2018 6:59 am
by scottwilkerson
Good to hear, locking thread as resolved.