Service notifications not working

Hello, I can’t for the life of me get my nagios to notify on SERVICE allerts. It sends HOST allerts fine. Its almost as though i have it dissabled as it doesn’t even say its sending a notification in the history. I had it all working fine with an old config, but since rebuilding it all from scratch, it doesn’t work. Here are some snippets of config:

define command{
command_name notify-by-email
command_line /usr/bin/printf “%b” “***** Nagios ***\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s " $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **” $CONTACTEMAIL$
}

define command{
command_name host-notify-by-email
command_line /usr/bin/printf “%b” “***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n” | /bin/mail -s “Host $HOSTSTATE$ alert for $HOSTNAME$!” $CONTACTEMAIL$
}

define contact{
contact_name nagios-admin
alias Nagios Admin
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email [email protected]
}

define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members nagios-admin
}

define host{
name generic-host
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
register 0
}

define host{
use generic-host
host_name butters
alias butters
address 127.0.0.1
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,r
contact_groups admins
}

define service{
name generic-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
register 0
}

define service{
use generic-service
host_name butters
service_description PING
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_interval 120
notification_period 24x7
check_command check_ping!100.0,20%!500.0,60%
}

Edited ]

This is a common type of problem and I fought it for weeks myself. There are many things, that if you have it configured in the .cfg files, it still won’t take affect unless you issue the change using the web interface. So please, disable/enable notifications for each and every service that you wish to be notified about.
For more details
nagios.sourceforge.net/docs/1_0/ … tion_notes

i have same problems as aevans and do enable/disable using the web interface but nagios still don’t send notification on services.It only send notifications on host problems

Then you haven’t configured your service or perhaps the contact with the correct settings.
services.cfg file:
notification_interval ??
notification_period ??
notification_options ??
notifications_enabled ??
contact_groups ??

contactgroups.cfg has you as a contact?
in contacts.cfg for YOU…
service_notification_period ???
service_notification_options ???
service_notification_commands ???
have you tested your service_notification_commands by hand using the nagios user (not root) to make sure they work. As you can see, there are many items and info that you can provide, to see if you have it even close to being setup.