check_nrpe exit code on socket errors
Stephen Gran
steve at lobefin.net
Thu Nov 24 08:28:37 CET 2011
Hello,
We periodically get spurious alerts for socket errors on some hosts
(behind a failing firewall, on a bad link, etc). I see that check_nrpe
already has a way to tell it to not report checks that time out as
critical, and I think it would be helpful to be able treat socket errors
in the same way. Attached are two patches: one that adds the socket
error handling to the existing -u option, and one that adds a new option
so these classes of errors can be handled seperately. I have no strong
arguments for which is the better way of doing it, so I present both.
Cheers,
--
--------------------------------------------------------------------------
| Stephen Gran | "I have more information in one place |
| steve at lobefin.net | than anybody in the world." -- Jerry |
| http://www.lobefin.net/~steve | Pournelle, an absurd notion, apparently |
| | about the BIX BBS |
--------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-add-new-option-to-return-socket-errors-as-UNKNOWN.patch
Type: text/x-diff
Size: 2586 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20111124/c7a017be/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Allow-socket-errors-to-be-returned-as-unknown-instea.patch
Type: text/x-diff
Size: 775 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20111124/c7a017be/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20111124/c7a017be/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list