timezone and custom timeperiod
Posted: Sat Oct 25, 2014 10:16 am
Hello,
I have encountered with strange behavior in nagios 3.5.1-1 (CentOS 7). I have setup use_timezone in nagios.cfg
And I want to use with some hosts/services custom time period. Something like the following
With such settings timeperiod object using system timezone (UTC) and ignore use_timezone option. Is that normal or did I miss something?
I have encountered with strange behavior in nagios 3.5.1-1 (CentOS 7). I have setup use_timezone in nagios.cfg
Code: Select all
# cat /etc/nagios/nagios.cfg | grep use_timezone
use_timezone=US/Pacific
Code: Select all
define timeperiod {
timeperiod_name wl_backup
alias Backup exception
monday 00:00-02:00,02:30-24:00
tuesday 00:00-02:00,02:30-24:00
wednesday 00:00-02:00,02:30-24:00
thursday 00:00-02:00,02:30-24:00
friday 00:00-02:00,02:30-24:00
saturday 00:00-02:00,02:30-24:00
sunday 00:00-02:00,02:30-24:00
}Code: Select all
define service {
use local-service
host_name www.example.net
service_description MySQL
check_command check_mysql!db_name!db_user!db_password
check_period wl_backup
notification_interval 15
notification_period wl_backup
notifications_enabled 1
notification_options c,u,r
contact_groups admins-by-email, admins-by-sms
}