i have problem with the notification period ... im trying to set time about notification but i cant make it ... im getting mail on every 30 min. But i have nowhere configure that timer and i cant find out where it is ... i have the following ....
and timeperiods.cfg file is default, i have not change there nothing ... so why is nagios send me mail notification on every 30 min ... i would like for test and for some routers to gave me notification when the router is down and next when the router is updefine host{
name generic-host ; The name of this host template
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
notification_period 24x7 ; Send host notifications at any time
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
define contact{
name generic-contact ; The name of this c$
service_notification_period 24x7 ; service notificati$
host_notification_period 24x7 ; host notifications$
service_notification_options w,u,c,r,f,s ; send notifications$
host_notification_options d,u,r,f,s ; send notifications$
service_notification_commands notify-service-by-email ; send service notif$
host_notification_commands notify-host-by-email ; send host notifica$
register 0 ; DONT REGISTER THIS$
}
define host{
name router-in
use generic-host
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 10
check_command check-host-alive
notification_options d,u,r
hostgroups routers-zgrada
register 0
}
define host{
use router-in
host_name RouterCiscoT
alias Test Cisco SNMP
address 192.168.1.1
_SNMPCOMMUNITY TestCisco
contacts Ivan
}
define contact{
use generic-contact
contact_name Ivan
alias mp ivan contact
email mpivan@mydomain.com
host_notification_options d,u,r
host_notifications_enabled 1
service_notifications_enabled 0
}