Hi All,
We having servers in our local office which are centos 5.x 64 bit. we have implemented Nagios Core 3.2.3 for monitoring all the servers.
We having three teams System Admin, Network team & application team.
few days back we decided to nagios alerts should be send to perticular team members. means application related alerts (eg. mysql, freeswitch, perl) should be send to only application team & system admin team only. network related (ping) alerts should be send to network team & sysadmin team.
for the Email alerts i created three new contacts in contacts.cfg & three new groups those will be members of earlier created contacts.
by using "contact_groups" we achive the email alerts sending to respective teams only with "notification_interval" set to 5 minutes.
by applying above chages we are able to receive server alerts which are sent by nagios. sometimes we received only "Server's PROBLEM Service Alert" mail only but we dont received "Server's RECOVERY Service Alert" mail even after that issue got solved & some times we received both mails of "Problem" & "Recovery" for same server & same service we receive mail. if you have any suggestion on this please let me know.
Currently i am stuck with the sending nagios sms alerts to respective team. right now sms alerts which are triggred by nagios are getting delivered to all the teams.
Now i want to send sms alerts of a perticular service to respective team just like what i did for email alerts.
for sending sms alerts we having custom script which having our kannel server url. below is my command.cfg sms parameter.
==============
# 'notify-service-by-sms' command define
define command{
command_name notify-service-by-sms
command_line /usr/local/nagios/libexec/sms_send.sh "--Nagios Service Notification-- Host: $HOSTNAME$, State: $HOSTSTATE$, Service: $SERVICEDESC$, Description: $SERVICESTATE$, Time: $LONGDATETIME$"
}
# 'notify-host-by-sms' command define
define command{
command_name notify-host-by-sms
command_line /usr/local/nagios/libexec/sms_send.sh "--Nagios Host Notification-- Host:$HOSTNAME$, State: $HOSTSTATE$, Time: $LONGDATETIME$
}
==============
if possible can anyone suggest how can i send sms service alerts generated by nagios to particular groups of numbers only.
i searched but didint found anything related to my requirment.
i am confused is it possible or not for this required.
Thanks.