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)
define contactgroup{
contactgroup_name admins
alias Network Admins
}
define contactgroup{
contactgroup_name analysts
alias System Analysts
}
define contact {
contact_name Henrique
use generic-contact
alias Henrique Mac
contactgroups admins
email [email protected]
}
define contact {
contact_name Marcio
use generic-contact
alias Marcio Fra
contactgroups admins
email [email protected]
}
# Analists
define contact {
contact_name Valter
use generic-contact
alias Valter Kn
contactgroups analysts
email [email protected]
}
define contact {
contact_name Otavio
use generic-contact
alias Otavio Ba
contactgroups analysts
email [email protected]
}
Please let me know if this works
Regards
Sunil
On Wed, Jul 10, 2013 at 12:26 AM, Henrique Machado <[email protected]>wrote:
> 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 [email protected]
> }
>
> define contact {
> contact_name Marcio
> use generic-contact
> alias Marcio Fra
> email [email protected]
> }
>
> # Analists
> define contact {
> contact_name Valter
> use generic-contact
> alias Valter Kn
> email [email protected]
> }
> define contact {
> contact_name Otavio
> use generic-contact
> alias Otavio Ba
> email [email protected]
> }
>
>
> 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 [email protected] ; <<*****
> 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
>
>
> ------------------------------------------------------------------------------
> 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
> _______________________________________________
> Nagios-users mailing list
> [email protected]
> 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
>
--
Regards
Sunil Sankar
------------------------------------------------------------------------------
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
_______________________________________________
Nagios-users mailing list
[email protected]
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