[Nagiosplug-devel] Working on testcases

Garrett Honeycutt gh at 3gupload.com
Fri Nov 4 14:42:48 CET 2005


On Fri, 2005-11-04 at 22:20 +0000, Ton Voon wrote:
> On 4 Nov 2005, at 18:50, John P. Rouillard wrote:
> 
> > Ton Voon writes:
> >
> >> On 4 Nov 2005, at 17:58, John P. Rouillard wrote:
> >>
> >>> How about a flag to set the exit status in case of a failed lookup?
> >>
> >> What do you mean?
> >
> > --dns-failure-status = CRITICAL
> > --dns-faulre-status = UNKNOWN
> >
> > Then if a dns failure occurs, the user can set what they want the
> > exit status of the command to be.
> 
> I see what you mean now. However, using this technique would mean  
> that every plugin using hostname lookups would have to support this  
> flag and I'm not sure that is a good idea.
> 
> And then what if you get a different kind of failure? A malloc call  
> failure? A system call with unexpected results? A different flag for  
> each?

It could be a compile time option handled by the configure script. This
gives those who want to change it the ability.

> I'm of the Keep It Simple philosophy so I think we need to decide  
> whether "unexpected failures" should be UNKNOWN or CRITICAL.  
> Unfortunately, I think your suggestion will take us to some  
> complicated exceptions handling.

"my thought is that for most plugins (except the dns-related ones),
UNKNOWN seems a proper state.  chances are there's something
monitoring DNS that will issue a CRITICAL anyway.  however, i don't
feel to comitted to this opinion and would be interested to hear
the counter-argument." -sean

I would rather get false positives than miss something because the
status was UNKNOWN as opposed to CRTICAL.


> 
> Anyway, what's the default setting? :)
> 
> Ton
> 
> 
> http://www.altinity.com
> T: +44 (0)870 787 9243
> F: +44 (0)845 280 1725
> Skype: tonvoon
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________________
> Nagios Plugin Development Mailing List Nagiosplug-devel at lists.sourceforge.net
> Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
-- 
// Garrett Honeycutt
// 3GUpload.com, Inc.
// Sr. Systems Administrator
// 317.472.4969 Office





More information about the Devel mailing list