Fwd: Re: check_nrpe timeout triggering criticial service notification

Tony den Haan tony at dhits.nl
Wed May 31 12:03:54 CEST 2006


> > I suggest making check_nrpe return STATUS_UNKNOWN in alarm_handler(),
> > instead of STATUS_CRITICAL.
>
> I'll put this on my TODO list for NRPE.  I'll add a command line option
> that will allow either CRITICAL or UNKNOWN on timeouts for check_nrpe.

that would make things easier indeed.
i wrote a possible patch, but attached as whole file since i couldn't help
asking vim to fix indents :)
i'm not sure if it's a good thing to return this selected state on all
connection related errors, but that's how i implemented it here.

tony

-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_nrpe.c
Type: text/x-csrc
Size: 11365 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20060531/7d209f79/attachment.c>


More information about the Developers mailing list