How to configure nagios to send notifications to more than 2


#1

Hi all,

  I am new to nagios, I manged to install and configure nagios and it is working fine and sending notifications to me, now I am planning to add few more person's mail ID in contacts.cfg file, I tried to define contact Group and adding contact with other mail ID in it, but nagios is not sending notifications to them, kindly suggest me on this, thanks in advance.

#########################/usr/local/nagios/etc/objects/templates.cfg########################

CONTACT TEMPLATES

define contact{
name SYS-ADMIN ; The name of this contact template apart from default
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r,f,s
host_notification_options d,u,r,f,s
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
register 0
}
###############################/usr/local/nagios/etc/objects/contact.cfg##############

CONTACTS

define contact{
contact_name Yoga
use SYS-ADMIN
alias system admin
email yoganandagk@XXX.com
}


#2

Check the docs:

nagios.sourceforge.net/docs/3_0/ … ml#contact
nagios.sourceforge.net/docs/3_0/ … ntactgroup


#3

Hi Luca,

  Thanks for giving response :) s ( apart from me ), and there is no error if I run this  

command /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg . can you let me know where I am worng.

Thanks\Regards,
KP :smiley:


#4

Nagios usually sends emails to a contactgroup.

Contacts need to be in one of the contact groups associated with a service or host.

here you can see how exactly notifications work: nagios.sourceforge.net/docs/3_0/ … tions.html


#5

Hi Luca,

           Thanks for the help :D , now I learned and configured notifications correctly .

Thanks\Regards,
KP :stuck_out_tongue: