[Nagiosplug-devel] check_dns fixes

Matthew Kent mkent at magoazul.com
Thu Dec 9 08:17:00 CET 2004


On Thu, 2004-12-09 at 13:31, Ollie Cook wrote:
> Hi,
> 
> The check_dns plugin from 1.4.0alpha2 crashes (segmentation violation) if the
> standard output is not recognised *and* there is no recognised error on
> standard error.
> 
> The crash is an attempt to reference 'output' which is NULL.
> 
> I've attached a patch which covers two new errors:
> 
>   Query refused:  usually caused by an ACL in the nameserver configuration
>   No information: I've seen this when the primary IP of the nameserver being
>                   queried has two PTR records.
> 
> I've modified the check which it seems was supposed to detect the case of not
> recognising and output either on stdout or stderr.
> 
> I've also caused stderr lines to be written when in verbose mode, as for
> stdout.
> 

Thank you for the patch. I'll take a look at it this evening.

> Cheers,
> 
> Ollie





More information about the Devel mailing list