Nagios not sending mails when two contactgroup is in contact.cfg
Henrique Machado
henri.mjr at gmail.com
Tue Jul 9 20:56:19 CEST 2013
Hello, i'm stucked in a problem. When i define more than one contactgroup
nagios dont send mails (i tail in sendmail logs)
This doesnt work:
# Infrastructure
define contact {
contact_name Henrique
use generic-contact
alias Henrique Mac
email henrique at domain.com.br
}
define contact {
contact_name Marcio
use generic-contact
alias Marcio Fra
email marcio at domain.com.br
}
# Analists
define contact {
contact_name Valter
use generic-contact
alias Valter Kn
email valter at domain.com.br
}
define contact {
contact_name Otavio
use generic-contact
alias Otavio Ba
email otavio at domain.com.br
}
define contactgroup{
contactgroup_name admins
alias Network Admins
members Henrique, Marcio
}
define contactgroup{
contactgroup_name analysts
alias System Analysts
members Valter, Otavio
}
This Work:
define contact{
contact_name xadmins ; Short
name of user
use generic-contact ; Inherit
default values from generic-contact template (defined above)
alias Nagios Admin ; Full name
of user
email sysop at domain.com.br ; <<*****
CHANGE THIS TO YOUR EMAIL ADDRESS ******
}
define contactgroup{
contactgroup_name admins
alias admins
members xadmins
}
This is my Service:
define service{
use generic-service
host_name ems206
service_description RPW Producao
contact_groups admins, analysts
check_command check_nrpe!check_rpw_producao
}
Any idea?
Att,
Henrique Machado
ITIL V3 Certified
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130709/85e46edc/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
-------------- next part --------------
_______________________________________________
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