pb with service notification

Steve Dussaux stevox2000 at yahoo.com
Thu Mar 20 17:30:43 CET 2003


Yes exactly i have just noticed too :)
It works now.

Thanks David

 --- "Pope, David" <DPope at bcdi.com> a écrit : > Are you not missing the notification_options
[w,u,c,r] from your
> services.cfg?
> 
> -----Original Message-----
> From: Steve Dussaux [mailto:stevox2000 at yahoo.com] 
> Sent: Thursday, March 20, 2003 8:20 AM
> To: nagios-users at sourceforge.net
> Subject: [Nagios-users] pb with service notification
> 
> 
> Hello,
> 
> Many users should have ask for this but since research in sourceforge
> mailing list archives doesn't work, I haven't found answer to my question.
> 
> I have my hosts notifications working but not the services notifications.
> Here is my configs :
> 
> ######contactgroups.cfg#########
> define contactgroup {
> contactgroup_name              nagios-admins
> alias                          Nagios Administrators
> members                        nagios
> }
> 
> ######contacts.cfg#########
> define contact {
> contact_name			nagios
> alias				nagios admin
> service_notification_period 	24x7
> host_notification_period 	24x7
> host_notification_options 	d,u,r
> service_notifications_options 	w,u,c,r
> service_notification_commands 	notify-by-email
> host_notification_commands 	host-notify-by-email
> email				nagios at ...
> }
> 
> 
> ######miscommands.cfg########
> define command {
> command_name                   notify-by-email
> command_line                   /usr/bin/printf "%b" "***** Nagios 1.0
> *****\n\nNotification Type:
> $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:
> $HOSTADDRESS$\nState:
> $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" |
> /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 1.0
> *****\n\nNotification Type:
> $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
> $HOSTADDRESS$\nInfo:
> $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert
> for $HOSTNAME$!" $CONTACTEMAIL$ }
> 
> And finally one the service (my service is actually in an UNKNOWN STATE and
> i got no
> notifications)
> ######services.cfg#######
> define service {
> hostgroup_name          serveurs-applicatifs
> service_description     Proc_usage_as400
> check_command           apan!snmpget_processor!9000!9800
> check_period            24x7
> normal_check_interval   5
> max_check_attempts      3
> retry_check_interval    1
> contact_groups          nagios-admins
> notification_interval   120
> notification_period     24x7
> }
> 
> Thanks,
> Steve
> 
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo!
> Mail : http://fr.mail.yahoo.com
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Tablet PC.  
> Does your code think in ink? You could win a Tablet PC. 
> Get a free Tablet PC hat just for playing. What are you waiting for? 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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 

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC.  
Does your code think in ink? You could win a Tablet PC. 
Get a free Tablet PC hat just for playing. What are you waiting for? 
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list