<div dir="ltr"><div><div>I find the way you have stuctured may be wrong why dont you try it like this (This is how I have done in my environment and it works)<br>define contactgroup{<br> contactgroup_name admins<br>
alias Network Admins<br>}<br><br><br>define contactgroup{<br> contactgroup_name analysts<br> alias System Analysts<br>}<br><br>define contact {<br>
contact_name Henrique<br> use generic-contact<br> alias Henrique Mac<br> contactgroups admins<br> email <a href="mailto:henrique@domain.com.br">henrique@domain.com.br</a><br>
}<br><br>define contact {<br> contact_name Marcio<br> use generic-contact<br> alias Marcio Fra<br> contactgroups admins<br>
email <a href="mailto:marcio@domain.com.br">marcio@domain.com.br</a><br>}<br><br># Analists<br>define contact {<br> contact_name Valter<br> use generic-contact<br>
alias Valter Kn<br> contactgroups analysts<br> email <a href="mailto:valter@domain.com.br">valter@domain.com.br</a><br>}<br>define contact {<br>
contact_name Otavio<br> use generic-contact<br> alias Otavio Ba<br> contactgroups analysts<br> email <a href="mailto:otavio@domain.com.br">otavio@domain.com.br</a><br>
}<br><br></div>Please let me know if this works <br><br></div>Regards<br>Sunil<br><div><div><br><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 10, 2013 at 12:26 AM, Henrique Machado <span dir="ltr"><<a href="mailto:henri.mjr@gmail.com" target="_blank">henri.mjr@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello, i'm stucked in a problem. When i define more than one contactgroup nagios dont send mails (i tail in sendmail logs)</div>
<div><br></div><div>This doesnt work:</div><div>
<br></div><div><div># Infrastructure</div><div>define contact {</div><div> contact_name Henrique</div><div> use generic-contact</div><div> alias Henrique Mac</div>
<div> email <a href="mailto:henrique@domain.com.br" target="_blank">henrique@domain.com.br</a></div><div>}</div><div><br></div><div>define contact {</div><div> contact_name Marcio</div>
<div> use generic-contact</div><div> alias Marcio Fra</div><div> email <a href="mailto:marcio@domain.com.br" target="_blank">marcio@domain.com.br</a></div>
<div>}</div><div><br></div><div># Analists</div><div>define contact {</div><div> contact_name Valter</div><div> use generic-contact</div><div> alias Valter Kn</div>
<div> email <a href="mailto:valter@domain.com.br" target="_blank">valter@domain.com.br</a></div><div>}</div><div>define contact {</div><div> contact_name Otavio</div>
<div> use generic-contact</div>
<div> alias Otavio Ba</div><div> email <a href="mailto:otavio@domain.com.br" target="_blank">otavio@domain.com.br</a></div><div>}</div><div><br></div><div>
<br></div><div>define contactgroup{</div>
<div> contactgroup_name admins</div><div> alias Network Admins</div><div> members Henrique, Marcio</div><div>}</div><div><br></div><div>
<div><br></div><div>define contactgroup{</div><div> contactgroup_name analysts</div><div> alias System Analysts</div><div> members Valter, Otavio</div>
<div>}</div></div><div><br></div><div><br></div><div>This Work:</div><div><br></div><div><div>define contact{</div><div> contact_name xadmins ; Short name of user</div>
<div> use generic-contact ; Inherit default values from generic-contact template (defined above)</div><div> alias Nagios Admin ; Full name of user</div>
<div> email <a href="mailto:sysop@domain.com.br" target="_blank">sysop@domain.com.br</a> ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******</div><div> }</div><div><br></div>
<div>define contactgroup{</div>
<div> contactgroup_name admins</div><div> alias admins</div><div> members xadmins</div><div>}</div><div><br></div></div><div><br></div>
<div>
<br></div></div><div>This is my Service:</div><div><br></div><div><div>define service{</div><div> use generic-service</div><div> host_name ems206</div><div> service_description RPW Producao</div>
<div> contact_groups admins, analysts</div><div> check_command check_nrpe!check_rpw_producao</div><div>}</div><div><br></div></div><div><br></div>Any idea?<br clear="all"><div><br><br>Att,<br><br>Henrique Machado<br>
ITIL V3 Certified</div>
</div>
<br>------------------------------------------------------------------------------<br>
See everything from the browser to the database with AppDynamics<br>
Get end-to-end visibility with application monitoring from AppDynamics<br>
Isolate bottlenecks and diagnose root cause in seconds.<br>
Start your free trial of AppDynamics Pro today!<br>
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br><br clear="all"><br>-- <br>Regards<br>Sunil Sankar
</div>