Discrepancy between command definitions and actual implementation

Thomas Guyot-Sionnest dermoth at aei.ca
Tue Mar 3 03:03:42 CET 2009


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

The documentation for ACKNOWLEDGE_{SVC,HOST}_PROBLEM commands in Nagios
2.x and 3.x says to use 1 for sticky and 0 for non-sticky ack's; however
the way it's currently implemented is using the following macros for
non-sticky and sticky ack's respectively:

include/common.h:#define ACKNOWLEDGEMENT_NORMAL          1
include/common.h:#define ACKNOWLEDGEMENT_STICKY          2

Looks like it's always been like that so I think the best would be to
fix the documentation... At least for the current releases. OTOH this
will leave broken any home-build script that send the command according
to the documentation.

http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=39
http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=40

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

iD8DBQFJrI/96dZ+Kt5BchYRAtFzAJ4xmDbYBwjvDVyug7HBxIegN94prQCfRlJJ
EyiLy6kvvMrEod6BZuBd9nc=
=G0ku
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
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




More information about the Developers mailing list