Ways of having a passive only service with freshness checking

Thomas Guyot-Sionnest dermoth at aei.ca
Sat Feb 14 18:00:19 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 13/02/09 08:45 AM, Thomas Lorenzen wrote:
> Hi'
> 
> For passive only services I would like to use option
> 
> check_period   none
> 
> instead of option
>  
> active_checks_enabled   0
> 
> since the latter gives rise to showing these checks as disabled in the
> "tactical overview", which the former does not. It is less confusing
> for our operators to not see anything being disabled.
> 
> Now I have spiced these passive only checks up with freshness checkings,
> see docs/freshness.html, but it seems, that this only works, if I use
> "active_checks_enabled 0" instead of "check_period none". One might
> suspect that, but docs/timeperiods.html states, that "Note: On-demand
> checks and passive checks are not restricted by the timeperiod you
> specify in the check_period directive. Only regularly scheduled active
> checks are restricted.". Would you think, that freshness checking should
> also fall under that category.
> 
> Also, the FAQ at
> http://www.nagios.org/faqs/viewfaq.php?faq_id=271&expand=false&showdesc=false
> seems to indicate, that using "check_period none" would be the right
> thing to do, but maybe that was true only in an earlier release.

You can try the patch attached, although I doubt Ethan will accept it.
He's the one who "Fixed" freshness checks running despite of timeperiod
in 2004:

commit eeb5ca93945994826afc921dc99c650bf5a3fc48
Author: Ethan Galstad <egalstad at nagios.org>
Date:   Thu Jun 24 05:03:29 2004 +0000

    Freshness checking timeperiod bug fix

OTOH many people complain about passive services showing as "Disabled"
in the tactical overview.

Another fix would be not to show them as disabled in the CGI if the
following conditions are true (any of them will prevent freshness checks
from running):
  - Freshness checking is enabled globally
  - Freshness checking is enabled on the service
  - Passive checks are enabled
  - Either check_interval or freshness interval is defined

I can do that if it's going into mainline.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJlvij6dZ+Kt5BchYRAqMYAKDGB/Mqmhi9/YnlxhKuX2FUUHCIygCg0B0o
wGO5gKP+liVnBmiuH0ykY2U=
=LJ/9
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freshness_checking_timeperiod.patch
Type: text/x-diff
Size: 606 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20090214/4f90f063/attachment.patch>
-------------- next part --------------
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list