[Nagios-devel] Found bugs in 1.1

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Found bugs in 1.1

Post by Guest »

This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to [email protected] for more info.

--2093892754-818930009-1069444410=:10331
Content-Type: TEXT/PLAIN; charset=US-ASCII

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

Hello, I've found a few bugs in 1.1 that may be a bit troublesome.

One of them is that the 'notification_period' clause of a host is not
required. I had a template that was missing this clause and several hosts
that used the template. When I tried running a Nagios compiled w/debug
enabled it coredumped when it tried to print out the host definition.

Another is that if a service dependency has neither of the
execution_failure_criteria or notification_failure_criteria defined it is
silently ignored. I think a warning indicating that this 'lame'
servicedependency exists should be thrown; I've attached a patch to effect
this.

A third is that the following causes a coredump; I think the servicedep
duplication function should detect when its trying to set up an
immediately circular depedency.

define servicedependency{
hostgroup_name HOSTGROUP1
service_description Oracle
dependent_hostgroup_name HOSTGROUP1
dependent_service_description *
execution_failure_criteria n
notification_failure_criteria w,u,c
}


- -Jason Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.3 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQE/vm1Kl2ODWuqVSBMRAoKwAKCCZYLsz8hneU5XbGVZMkJoro0rSACgkewS
ezmdnoSS5vLrJ2OfwENrDHc=
=/gO5
-----END PGP SIGNATURE-----
--2093892754-818930009-1069444410=:10331
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="servicedeps.patch"
Content-Transfer-Encoding: BASE64
Content-ID:
Content-Description:
Content-Disposition: attachment; filename="servicedeps.patch"

KioqIHhvZHRlbXBsYXRlMS5jCUZyaSBOb3YgMjEgMTA6MzI6NTcgMjAwMw0K
LS0tIHhvZHRlbXBsYXRlLmMJRnJpIE5vdiAyMSAxMTo0MTowOC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IpOw0K

--2093892754-818930009-1069444410=:10331--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked