Well, here's what I have in its entirety. My services.cfg looks like this:
#### Generic services template ################ define service{ name generic-service; active_checks_enabled 1; obsess_over_service 1; check_freshness 0; notifications_enabled 1; event_handler_enabled 1; flap_detection_enabled 1; retain_status_information 1; retain_nonstatus_information 1; register 0; } define service{ use generic-service name basic-service is_volatile 0 check_period 24x7 max_check_attempts 15 normal_check_interval 5 retry_check_interval 1 notification_interval 20 notification_period 24x7 register 0 } define service{ use basic-service name dns-service check_command check_dns max_check_attempts 10 check_period 24x7 notification_interval 20 notification_period 24x7 notification_options c,r contact_groups localadmin register 0 } #### HOST01 ###### define service{ use dns-service host_name host01 servicegroups mygroup service_description DNS contact_groups localadmin } So, to me, that looks correct. Host01's service check should inherit everything through 'use dns-service' line. checkcommands.cfg file for DNS: # 'check_dns' command definition define command{ command_name check_dns command_line $USER1$/check_dns -H $HOSTADDRESS$ } contactgroups.cfg: define contactgroup{ contactgroup_name localadmin alias Site Administrator members nagios } contacts.cfg: define contact{ contact_name nagios alias admin host_notification_period 24x7 service_notification_period 24x7 service_notification_options w,u,c,r,f host_notification_options d,u,r,f service_notification_commands notify-by-email host_notification_commands host-notify-by-email email [EMAIL PROTECTED] } I believe the above should be correct since I have host and service to be notified by email. Obviously I'm overlooking something. Marc, if you meant something else by setting up the contact_group for services, please let me know. Thanks Marc Powell wrote: > On Mar 3, 2008, at 10:56 PM, Artyom Khmelnitsky wrote: > > >> Hello everyone, >> > > Hello. Did you see that you sent this to the list 6 times so far? > > >> I have just configured some service checks for services such as >> http, smtp, etc.. The commands are defined in the commands.cfg file >> and then called in the services.cfg file. The following is an >> example of how a commands.cfg and services.cfg looks: >> > > <big chop, thanks> > > >> The contacts are setup correctly since our check_ping which is >> declared in the hosts.cfg file works perfectly fine and we do get >> the correct alerts >> > > ...for the host definitions. > > >> Could someone point me in the right direction of what I'm doing >> wrong here? I can't seem to get emails if a service is down. It's >> most likely in my syntax, but I'm not sure where since I get no >> errors when reloading Nagios. >> > > > You don't have any contact_groups defined for the services that I can > see. no contacts == no notifications. With nagios-2, they're not > automagically inherited from the hosts. I expect that nagios is > complaining with warnings though in nagios.log or when using -v. > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > > -- > marc > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null