Time of Email Notifications

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
TBlaine27
Posts: 10
Joined: Tue Apr 17, 2018 9:08 am

Re: Time of Email Notifications

Post by TBlaine27 »

nagiosadmin is the only contact, which is me / my email address.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Time of Email Notifications

Post 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?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
TBlaine27
Posts: 10
Joined: Tue Apr 17, 2018 9:08 am

Re: Time of Email Notifications

Post 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!
}
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Time of Email Notifications

Post by scottwilkerson »

there ya go, change workhours to 24x7 there

and restart nagios, and you should be done
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
TBlaine27
Posts: 10
Joined: Tue Apr 17, 2018 9:08 am

Re: Time of Email Notifications

Post by TBlaine27 »

Thanks for all the help, I really appreciate it!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Time of Email Notifications

Post by scottwilkerson »

Let us know if that doesn't work but I'm guessing that'll do it
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
TBlaine27
Posts: 10
Joined: Tue Apr 17, 2018 9:08 am

Re: Time of Email Notifications

Post by TBlaine27 »

That did it, I got alerts after 5pm!

woohoo!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Time of Email Notifications

Post by scottwilkerson »

Good to hear, locking thread as resolved.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked