[Nagios-users] notifications not being sent on host down/unreachable

2009-10-06 Thread Noel Platzke
I have a nagios setup consisting of 2 distributed servers and one master
using nsca. I'm having an issue where notifications aren't being sent for
hosts going down or becoming unreachable but I see them in that state in the
GUI and the logs. If a service check fails the notification is sent fine but
if the whole box dies I'm never seeing a host down/unreachable alert. In
fact there is no notification listed in the notification history so it seems
to be a config issue. But I've looked through all of the configs multiple
times and just can't figure this out.

My host, service and contacts are defined with the following templates:

define host{
namestandard-host
max_check_attempts  3
check_interval  15
retry_interval  5
check_command   check-host-alive
check_period24x7
notifications_enabled   1
retain_status_information   1
retain_nonstatus_information1
contactsops
notification_interval   15
notification_period 24x7
check_freshness 1
freshness_threshold 300
register0
}


define service{
namestandard-service
max_check_attempts  3
check_interval  5
retry_interval  3
check_period24x7
notification_interval   10
notification_period 24x7
notification_optionsu,c,r
contactsops
register0
check_freshness 1
freshness_threshold 300
}

define contact{
namestandard-contact
host_notifications_enabled  1
service_notifications_enabled   1
host_notification_period24x7
service_notification_period 24x7
host_notification_options   d,u,r
service_notification_optionsc,u,r
host_notification_commands  host-notify-by-email
service_notification_commands   notify-by-email-verbose
register0
}
--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
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] notifications not being sent on host down/unreachable

2009-10-06 Thread Marc Powell

On Oct 6, 2009, at 12:21 PM, Noel Platzke wrote:

 My host, service and contacts are defined with the following  
 templates:

 define host{
 namestandard-host
 max_check_attempts  3
 check_interval  15
 retry_interval  5
 check_command   check-host-alive
 check_period24x7
 notifications_enabled   1
 retain_status_information   1
 retain_nonstatus_information1
 contactsops
 notification_interval   15
 notification_period 24x7
 check_freshness 1
 freshness_threshold 300
 register0
 }

Hello,

This is just a template and not a complete host definition. In fact,  
they were all just templates and missing critical pieces of  
information or may have parts that are overridden in the full  
definition. You should post the entire definition for the host,  
contact group and contact as found in objects.cache. At first glance,  
you don't specify any notification_options for the host. With  
Nagios-3, this will mean that all states will result in a notification  
but under 2.x I believe that behavior is different. I'd go ahead and  
specify the specific states to you want to receive notifications for.

--
Marc


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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] notifications not being sent on host down/unreachable

2009-10-06 Thread Noel Platzke
I included the template because the actual host definitions only include the
server specific information. I'm not overriding anything. For example...

define host{
use standard-host
host_name   server1
hostgroups  +servers
alias   server1
address server1.domain.com
}


The same goes for contacts everything else.


On Tue, Oct 6, 2009 at 1:53 PM, Marc Powell m...@ena.com wrote:


 On Oct 6, 2009, at 12:21 PM, Noel Platzke wrote:

  My host, service and contacts are defined with the following
  templates:
 
  define host{
  namestandard-host
  max_check_attempts  3
  check_interval  15
  retry_interval  5
  check_command   check-host-alive
  check_period24x7
  notifications_enabled   1
  retain_status_information   1
  retain_nonstatus_information1
  contactsops
  notification_interval   15
  notification_period 24x7
  check_freshness 1
  freshness_threshold 300
  register0
  }

 Hello,

 This is just a template and not a complete host definition. In fact,
 they were all just templates and missing critical pieces of
 information or may have parts that are overridden in the full
 definition. You should post the entire definition for the host,
 contact group and contact as found in objects.cache. At first glance,
 you don't specify any notification_options for the host. With
 Nagios-3, this will mean that all states will result in a notification
 but under 2.x I believe that behavior is different. I'd go ahead and
 specify the specific states to you want to receive notifications for.

 --
 Marc



 --
 Come build with us! The BlackBerryreg; Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
 http://p.sf.net/sfu/devconf
 ___
 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

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
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] notifications not being sent on host down/unreachable

2009-10-06 Thread Noel Platzke
So this is working now but I'm not sure why. I deleted the objects.cache
file and restarted and got a host down alert as soon as nagios came up.


On a whim I deleted the cache file and restarted nagios and it sent out a
host down alert. I didn't change anything else.


On Tue, Oct 6, 2009 at 2:22 PM, Noel Platzke neuf...@gmail.com wrote:

 I included the template because the actual host definitions only include
 the server specific information. I'm not overriding anything. For example...

 define host{
 use standard-host
 host_name   server1
 hostgroups  +servers
 alias   server1
 address server1.domain.com
 }


 The same goes for contacts everything else.


 On Tue, Oct 6, 2009 at 1:53 PM, Marc Powell m...@ena.com wrote:


 On Oct 6, 2009, at 12:21 PM, Noel Platzke wrote:

  My host, service and contacts are defined with the following
  templates:
 
  define host{
  namestandard-host
  max_check_attempts  3
  check_interval  15
  retry_interval  5
  check_command   check-host-alive
  check_period24x7
  notifications_enabled   1
  retain_status_information   1
  retain_nonstatus_information1
  contactsops
  notification_interval   15
  notification_period 24x7
  check_freshness 1
  freshness_threshold 300
  register0
  }

 Hello,

 This is just a template and not a complete host definition. In fact,
 they were all just templates and missing critical pieces of
 information or may have parts that are overridden in the full
 definition. You should post the entire definition for the host,
 contact group and contact as found in objects.cache. At first glance,
 you don't specify any notification_options for the host. With
 Nagios-3, this will mean that all states will result in a notification
 but under 2.x I believe that behavior is different. I'd go ahead and
 specify the specific states to you want to receive notifications for.

 --
 Marc



 --
 Come build with us! The BlackBerryreg; Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9#45;12, 2009. Register
 now#33;
 http://p.sf.net/sfu/devconf
 ___
 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



--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
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] notifications not being sent on host down/unreachable

2009-10-06 Thread Marc Powell

On Oct 6, 2009, at 1:38 PM, Noel Platzke wrote:

 So this is working now but I'm not sure why. I deleted the  
 objects.cache file and restarted and got a host down alert as soon  
 as nagios came up.

This tells me that nagios wasn't running with the configuration you  
thought it was (unless you also deleted status.dat, which may have  
settings overrides your object definitions). Seeing what was in  
objects.cache (and status.dat) might have explained the issue.

 On Tue, Oct 6, 2009 at 2:22 PM, Noel Platzke neuf...@gmail.com  
 wrote:
 I included the template because the actual host definitions only  
 include the server specific information. I'm not overriding  
 anything. For example...

Then you should tell us this at the least. We're not mind readers and  
when you provide something that is incomplete, with no comment that  
it's known incomplete and why, we have to assume you don't know what  
you gave us. ;) IMHO, you (as in anyone reporting problems) should  
provide *all* related information for any problem regardless of what  
bits you think are needed. Usually the problem is not in what you know  
you need, but in what you don't know you need. =)

--
Marc


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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