[Nagiosplug-devel] [ nagiosplug-Patches-1110973 ] check_log.sh bug when log is unreadable
SourceForge.net
noreply at sourceforge.net
Thu Feb 3 15:56:11 CET 2005
Patches item #1110973, was opened at 2005-01-27 19:27
Message generated for change (Comment added) made by tonvoon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1110973&group_id=29880
Category: Bugfix
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Darian Rackam (darian23)
>Assigned to: Ton Voon (tonvoon)
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.
----------------------------------------------------------------------
>Comment By: Ton Voon (tonvoon)
Date: 2005-02-03 23:53
Message:
Logged In: YES
user_id=664364
Darian,
Thanks for your patch. Made a slight adjustment so that it checks for
existence first, then the readability, so the error message matches the
conditions.
Ton
----------------------------------------------------------------------
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