Contact groups not getting email


#1

Hello all,

Maybe this is very simple. I created contact group beside default nagios contact group. I define contact group like this :

In template.cfg I define like this :

define contact{
name cyber-contact
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r,f,s
host_notification_options d,u,r,f,s
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
register 0
}

and service definiation as this :

define service{
name cyber-service
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 10
retry_check_interval 2
contact_groups cyberadmin
notification_options w,u,c,r
notification_interval 60
notification_period 24x7
register 0
}

So, and in contact.cfg I define the contact as this :

define contact {
use cyber-contact
contact_name test
alias cyber Admins
email cyber@cyber.com
}

And contact group as this .

define contactgroup{
contactgroup_name cyberadmin
alias cyber Admins
members test
}

One of the service i define is like this on my windows.cfg
define service{
use cyber-service
host_name test24
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,90
}

So I use this contact group for service notification and host notification but it doesn


#2

Have you reloaded Nagios configuration?


#3

reloaded and restarted.


#4

looks like its working now!!