notification problem

Carlito - nagios user nagios at okka.org.za
Thu Aug 14 16:53:10 CEST 2003


Apologies for the long email , but this is whats enabled by default !
I've pasted this as I'm using 2 Linux boxes ( redhat 7.1 ) with nagios 1.1
installed ( 2 boxes for 2 geographically different locations in South Africa
)
To note I use escalation notifications extensively and I offer the advice of
...

Do not change this value at all or Nagios WILL NOT send out escalations ...

# AGRESSIVE HOST CHECKING OPTION
# If you don't want to turn on agressive host checking features, set
# this value to 0 (the default).  Otherwise set this value to 1 to
# enable the agressive check option.  Read the docs for more info
# on what agressive host check is or check out the source code in
# base/checks.c

use_agressive_host_checking=0 ( if this is set to 1 , no notifications will
be sent out regardless of any other options you may think that works ) 

I know this , I tried solid for 1 month :-)

Below the dump refers to the current question.

# RETAIN STATE INFORMATION
# This setting determines whether or not Nagios will save state
# information for services and hosts before it shuts down.  Upon
# startup Nagios will reload all saved service and host state
# information before starting to monitor.  This is useful for 
# maintaining long-term data on state statistics, etc, but will
# slow Nagios down a bit when it (re)starts.  Since its only
# a one-time penalty, I think its well worth the additional
# startup delay.

retain_state_information=1

# STATE RETENTION FILE
# This is the file that Nagios should use to store host and
# service state information before it shuts down.  The state 
# information in this file is also read immediately prior to
# starting to monitor the network when Nagios is restarted.
# This file is used only if the preserve_state_information
# variable is set to 1.

state_retention_file=/usr/local/nagios/var/status.sav

# RETENTION DATA UPDATE INTERVAL
# This setting determines how often (in minutes) that Nagios
# will automatically save retention data during normal operation.
# If you set this value to 0, Nagios will not save retention
# data at regular interval, but it will still save retention
# data before shutting down or restarting.  If you have disabled
# state retention, this option has no effect.

retention_update_interval=60

# USE RETAINED PROGRAM STATE
# This setting determines whether or not Nagios will set 
# program status variables based on the values saved in the
# retention file.  If you want to use retained program status
# information, set this value to 1.  If not, set this value
# to 0.

use_retained_program_state=1

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Joe Buehler
Sent: 14 August 2003 14:56
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Re: notification problem


Eric Blumenau wrote:

>   For a particular service, I have Nagios set up to notify on
> warn,unknown,critical and recoveries (w,u,c,r).  This service's contact 
> group emails and pages our administrators.  Well, my problem is that 
> emails and pages go out when the service does a hard critical but only 
> sends emails on a hard recovery.  Here are the service notifications 
> from the web page (a critical at 10:14:44, an ok at 1:17:34 and another 
> critical at 10:34:45):

I didn't look at your config in detail, but I am having problems with
notifications myself.  Perhaps your problem is the same as mine:

It turns out that there is something in nagios called
"retain_nonstatus_information" that, when enabled, causes nagios to ignore
what's in the config files and use what's in the status file instead, for
certain configuration parameters (marked as such in the documentation).

So I've been merrily changing various parameters in my config files and
wondering why the changes have been having no effect...

Perhaps the name should be changed to "ignore_config_file".
-- 
Joe Buehler




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data
Reports, E-commerce, Portals, and Forums are available now. Download today
and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
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



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
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