How to send notification to non-admin group ?

J. Bakshi joydeep at infoservices.in
Fri May 29 11:55:48 CEST 2009


Marc Powell wrote:
> On May 29, 2009, at 3:17 AM, J. Bakshi wrote:
>
>   
>> Dear all,
>>
>> Coming back to the list after a long time. Hope you all are well.
>>
>> I monitor a few remote servers with nagios  (  2.12 ).  I have
>> individual cfg file for every remote servers under nagios  
>> monitoring. I
>> need to add another email notification for a particular server say
>> serverA. Hence in serverA.cfg I have added the following
>>
>> ````````````````````````````````````````````````````````````
>> define contact{
>>     
> <snip>
>   
>>        }
>>
>> define contactgroup{
>>     
> <snip>
>   
>>        }
>>     
>
> Nothing obviously wrong above...
>
>   
>> define host{
>>   name           serverA   ; The name of this host template
>>     
>
>   
>>   notification_period     workhours   ; Linux admins hate to be woken
>> up, so we only notify during the day
>>     
>
> This is a restriction. Did it meet your test criteria?
>
>   
>>   contact_groups       admins,others      ; Notifications get sent to
>> the admins by default
>>   register       0     ; DONT REGISTER THIS DEFINITION - ITS NOT A  
>> REAL
>> HOST, JUST A TEMPLATE!
>>     
>
> This is a template, not a usable definition. Does the host{}  
> definition that uses this template override the contact_groups  
> parameter?
>
> Other than those, does nagios.log show notifications to the contact?  
> Nagios was restarted after making these changes?
>   

Hello Marc,

yes, I have restarted the nagios a no. of times but no success.
Regarding the host defination I have already posted it in my previous post.
There is a noticeable line like

contact_groups  admins,others    ; Notifications get sent to the admins by default
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

is there anything which prevents my non admin group ?



> --
> Marc
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, & 
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
> _______________________________________________
> 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
>
>   


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
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