Re: [Nagios-users] How to send notification to non-admin group ?
Marc Powell wrote: > On May 29, 2009, at 4:55 AM, J. Bakshi wrote: > > 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! > > >> 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. >> > > What you posted originally was not a host definition but rather a host > _template_. The difference is critical and you even explain it in ALL > CAPS above. The 'register 0' means that nagios isn't supposed to treat > it as a host to check but rather as something that will be referenced > in a subsequent host definition with a 'use' statement. Find where > you 'use serverA' and look at that definition. If contact_groups is > defined there, what's used in the template doesn't matter. > It is working now. I have to put the group in the "define service" section also. Thanks > >> There is a noticeable line like >> >> contact_groups admins,others; Notifications get sent to the >> admins by default >> ^ >> ^ >> ^ >> ^ >> ^ >> ^ >> ^ >> ^ >> ^ >> ^ >> ^ >> ^ >> ^ >> ^ >> ^ >> ^^ >> > > This wouldn't matter if the actual host definition overrides it. > That's what I'm trying to determine. > > >> is there anything which prevents my non admin group ? >> > > Nothing outside of a configuration or logic error would. admins, non- > admins, it's all the same to nagios. > > -- > 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@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@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
Re: [Nagios-users] How to send notification to non-admin group ?
On May 29, 2009, at 4:55 AM, J. Bakshi wrote: >>> 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! > 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. What you posted originally was not a host definition but rather a host _template_. The difference is critical and you even explain it in ALL CAPS above. The 'register 0' means that nagios isn't supposed to treat it as a host to check but rather as something that will be referenced in a subsequent host definition with a 'use' statement. Find where you 'use serverA' and look at that definition. If contact_groups is defined there, what's used in the template doesn't matter. > There is a noticeable line like > > contact_groups admins,others; Notifications get sent to the > admins by default > ^ > ^ > ^ > ^ > ^ > ^ > ^ > ^ > ^ > ^ > ^ > ^ > ^ > ^ > ^ > ^^ This wouldn't matter if the actual host definition overrides it. That's what I'm trying to determine. > is there anything which prevents my non admin group ? Nothing outside of a configuration or logic error would. admins, non- admins, it's all the same to nagios. -- 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@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
Re: [Nagios-users] How to send notification to non-admin group ?
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{ >> > > >>} >> >> define contactgroup{ >> > > >>} >> > > 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@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@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
Re: [Nagios-users] How to send notification to non-admin group ?
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{ > >} > > define contactgroup{ > >} 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? -- 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@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
[Nagios-users] How to send notification to non-admin group ?
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{ contact_name nagios-others alias Nagios Others service_notification_period 24x7 host_notification_period24x7 service_notification_optionsw,u,c,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email x...@example.com # } define contactgroup{ contactgroup_name others alias Nagios AdminOthers members nagios-others } define host{ name serverA ; The name of this host template usegeneric-host ; This template inherits other values from the generic-host template check_period 24x7 ; By default, Linux hosts are checked round the clock max_check_attempts 30; Check each Linux host 30 times (max) check_command check-host-alive ; Default command to check Linux hosts notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day ; Note that the notification_period variable is being overridden from ; the value that is inherited from the generic-host template! notification_interval 130 ; Resend notification every 2 hours notification_optionsd,u,r; Only send notifications for specific host states 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! } ` After starting nagios I have checked that emails come to me as a member of admins group but no to the another email address ( member of others group ) I have checked it several times; " even nagios -v nagios.cfg " reports no problem but still the another email-id is not getting any mail. Kindly enlighten me what is wrong here. Thanks -- 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@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
[Nagios-users] How to send notification to non-admin group ?
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{ contact_name nagios-others alias Nagios Others service_notification_period 24x7 host_notification_period24x7 service_notification_optionsw,u,c,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email x...@example.com # } define contactgroup{ contactgroup_name others alias Nagios AdminOthers members nagios-others } define host{ name serverA ; The name of this host template usegeneric-host ; This template inherits other values from the generic-host template check_period 24x7 ; By default, Linux hosts are checked round the clock max_check_attempts 30; Check each Linux host 30 times (max) check_command check-host-alive ; Default command to check Linux hosts notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day ; Note that the notification_period variable is being overridden from ; the value that is inherited from the generic-host template! notification_interval 130 ; Resend notification every 2 hours notification_optionsd,u,r; Only send notifications for specific host states 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! } ` After starting nagios I have checked that emails come to me as a member of admins group but no to the another email address ( member of others group ) I have checked it several times; " even nagios -v nagios.cfg " reports no problem but still the another email-id is not getting any mail. Kindly enlighten me what is wrong here. Thanks -- 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@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