what wrong with these ?

Assaf Flatto assaf at m-wise.com
Wed Dec 14 15:37:37 CET 2005


from the first glance is look like a problem in the host/service notification 
configuration ,
service notification should be defined as :
" service_notification_commands   notify-by-sms"
you are using host_notify-by-sms for services.

Assaf

> 
> my command definition is like this :
> 
> define command{
>     command_name host-notify-by-sms
>     command_line /usr/local/bin/gsmsendsms -d /dev/ttyd0 -b 19200 
> 05322623103 "$NOTIFICATIONTYPE$: $HOSTNAME$ is $HOSTSTATE$ ($OUTPUT$)"
> }
> 
> [located in misscommands.cfg]
> 
> and service definition :
> 
> # 'nagios' contact definition
> define contact{
>     contact_name            sysadmin
>     alias                Sys Admin
>     service_notification_period    24x7
>     host_notification_period    24x7
>     service_notification_options    w,u,c,r
>     host_notification_options    d,u,r
>     service_notification_commands    notify-by-email,host-notify-by-sms
>     host_notification_commands    host-notify-by-email,host-notify-by-sms
>     email                makbulut at boun.edu.tr <mailto:makbulut at boun.edu.tr>
>     }


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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