Problems with SMS

Here is my problem.

SMS seems not to be working fine , my setup is

Services

[blockquote]define service{
use local-service
hostgroup_name US Agents
service_description PING
check_command check_ping!400.0,20%!500.0,30%
check_period 24x7
notification_interval 60
notification_period 24x7
notification_options w,c,r
contact_groups seo[/blockquote]

Time
[blockquote]
define timeperiod{
timeperiod_name 24x7
alias 24x7
sunday 00:00-24:00
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
}
define timeperiod{
timeperiod_name post hours
alias post hours
saturday 18:00-23:00
sunday 18:00-23:00
monday 18:00-23:00
tuesday 18:00-23:00
wednesday 18:00-23:00
thursday 18:00-23:00
friday 18:00-23:00
}
[/blockquote]

Contact
[blockquote]
define contact{
contact_name houssam
alias houssam
service_notification_period 24x7
host_notification_period 24x7
service_notification_options u,c
host_notification_options d
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
email [email protected]
}
define contact{
contact_name houssamn
alias houssamn
service_notification_period post hours
host_notification_period post hours
service_notification_options u,c
host_notification_options d
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
email [email protected]
}[/blockquote]

contact group
[blockquote]
define contactgroup{
contactgroup_name seo
alias seo
contactgroup_members email,sms
}

define contactgroup{
contactgroup_name email
alias email
members houssam
}
define contactgroup{
contactgroup_name sms
alias sms
members houssamn
}

[/blockquote]

What am I doing wrong here ? Email is working fine but sms is not (although it’s an email basically)

do you see anything being written in the log for the houssamn contact when you expect to get the notification?
One thought, try changing the “post hours” time period to “post_hours” - maybe that space is causing some sort of trouble.

HTH

/S

Thanks a lot

i’ve added the _ to the period, where can i see the log you’re talking about ?

…nagios/var/nagios.log

you should see something like

nagios-08-10-2008-00.log:[1218242376] SERVICE NOTIFICATION: …etc

Thanks a lot , I don’t see any errors in the logfile . however it seems the space is the problem , i will monitor it today and see , thanks again.