<P>
<BR>
hi,<BR>
<BR>
i compiled gnokii on nagios server for sending sms and i connected my Nokia 3315 Mobile phone is connected. if i send sms using gnokii from root and nagios users, the message is sucessfully delevered. i configured my nagios server configurations of contacts and misccommands and nagios cfg's like this.<BR>
<BR>
contacts.cfg<BR>
#'nagios' contact definition<BR>
define contact{<BR>
contact_name nagios<BR>
alias Nagios Admin<BR>
service_notification_period 24x7<BR>
host_notification_period 24x7<BR>
service_notification_options w,u,c,r<BR>
host_notification_options d,u,r<BR>
service_notification_commands notify-by-email,notify-by-epager<BR>
host_notification_commands host-notify-by-email,host-notify-by-epager<BR>
email sysadmin@mydomain.com<BR>
pager +919892400971<BR>
}<BR>
<BR>
misccommands.cfg<BR>
<BR>
define command{<BR>
command_name notify-by-email<BR>
command_line /usr/bin/printf "%b" "****Nagios ****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\n\nHost: ........ | /bin/mail -s "*** $NOTIFICATIONTYPE$ alert $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTAT$ **" $CONTACTMAIL$<BR>
}<BR>
<BR>
define command{<BR>
command_name notify-by-epager<BR>
command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $OUTPUT$\nDate: $DATAETIME$" | /usr/local/bin/gnokii --sendsms -r $CONTACTPAGER$<BR>
}<BR>
<BR>
same as host-notify-by-email and host-notify-by-epager.<BR>
<BR>
nagios.cfg<BR>
<BR>
admin_email=root@localhost<BR>
admin_pager=+919892400971<BR>
<BR>
<BR>
using above the configuration when ever my host / service goes down it send mail and sms. but i don't get any sms. if i send sms using same from nagios user and root users it deleverd sms. I checked /var/log/messages, it shows host notified and service notified.<BR>
<BR>
How will i send Nagios mail alerts to different mail server users internally.<BR>
<BR>
pl. help me out<BR>
<BR>
rgds,<BR>
kumar <BR>
<BR>
</P>
<br><br>
<A target="_blank" HREF="http://clients.rediff.com/signature/track_sig.asp"><IMG SRC="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom" BORDER=0 VSPACE=0 HSPACE=0></a>