Problems with service notifications

Hello:

Looking into the nagios.log I found
[1143735332] SERVICE ALERT: 3com;UP;OK;SOFT;2;OK - 192.168.0.10: rta 4.146ms, lost 0%

I proved to me that nagios detected a service event occurred

the definition for this service is the following
define service{
use generic-service ; Name of service template to use

    host_name                       developper_Desktop
    service_description             CPU
    contact_groups                  admins
    check_command                   check_snmp_load!public!5!7
    }

the generic-service template is the following
define service{
; The ‘name’ of this service template, referenced in other service definitions
name generic-service
active_checks_enabled 1 ; Active service checks are enabled
passive_checks_enabled 0 ; Passive service checks are enabled/disabled
parallelize_check 1 ; Active service checks should be parallelized
; (disabling this can lead to major performance problems)
obsess_over_service 1 ; We should obsess over this service (if necessary)
check_freshness 0 ; Default is to NOT check service 'freshness’
notifications_enabled 1 ; Service notifications are enabled
event_handler_enabled 0 ; Service event handler is disabled
flap_detection_enabled 0 ; Flap detection is disabled
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

standard bits and peices

    is_volatile                     0
    check_period                    24x7
    max_check_attempts              3
    normal_check_interval           5
    retry_check_interval            1
    notification_interval           5
    notification_period             24x7
    notification_options            w,c,r
    notifications_enabled           1

    register                        0       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
    }

the user included into the contact group admin has the following configuration

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

I don’t know why I’m not receiving service notification, on the other hand for host notifications everything is fine

one more detail
for host notifications I got the following logs
[1143735432] HOST NOTIFICATION: administrator;cisco_pix;DOWN;host-notify-by-email;CRITICAL - 192.168.0.251: rta nan, lost 100%

wher explicitly was writing by nagios that it sent one email to the administrator (my email configured on this contact)

Now I don’t receive any service notification. nagios doesn’t execute notify-by-email associated to service notifications.

Thanks in advance for any help
Enediel

Try setting register 1 for your service. That probably shouldn’t matter, but it’s worth a shot. Also, if you’ve done any sort of configuration change, make sure you restart Nagios or reload its configs.

[quote=“enediel”]Looking into the nagios.log I found
[1143735332] SERVICE ALERT: 3com;UP;OK;SOFT;2;OK - 192.168.0.10: rta 4.146ms, lost 0%
I proved to me that nagios detected a service event occurred

the definition for this service is the following
define service{
use generic-service ; Name of service template to use

    host_name                       developper_Desktop
    service_description             CPU
    contact_groups                  admins
    check_command                   check_snmp_load!public!5!7
    }

[/quote]

The event you have and the serice definition are NOT the same.
host_name developper_Desktop is not the same as 3com. Please show the appropriate definitions for your problem.