[Nagiosplug-devel] [ nagiosplug-Patches-1110973 ] check_log.sh bug when log is unreadable
SourceForge.net
noreply at sourceforge.net
Thu Jan 27 11:40:54 CET 2005
Patches item #1110973, was opened at 2005-01-27 11:27
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1110973&group_id=29880
Category: Bugfix
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Darian Rackam (darian23)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_log.sh bug when log is unreadable
Initial Comment:
check_log.sh always exits with an OK status if it runs as a user that does not have permissions to read the file being examined. The only indication of a problem goes to stderr (which nrpe discards).
It would be best to exit with an UNKNOWN status. This can be accomplished by replacing the test for the logfile's existence with a test for readability.
I'm attaching a patch against the version of check_log.sh from nagios-plugins-1.4-beta1.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1110973&group_id=29880
More information about the Devel
mailing list