summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 227c04a)
raw | patch | inline | side by side (parent: 227c04a)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Thu, 3 Feb 2005 23:51:35 +0000 (23:51 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Thu, 3 Feb 2005 23:51:35 +0000 (23:51 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1129 f882894a-f735-0410-b71e-b25c423dba1c
plugins-scripts/check_log.sh | patch | blob | history |
index 355bd01e3251318d0605b59331ea932169a596fc..0da732d2a28f8f007a5acaff29db39a712af6cba 100755 (executable)
if [ ! -e $logfile ]; then
$ECHO "Log check error: Log file $logfile does not exist!\n"
exit $STATE_UNKNOWN
+elif [ ! -r $logfile ] ; then
+ $ECHO "Log check error: Log file $logfile is not readable!\n"
+ exit $STATE_UNKNOWN
fi
# If the old log file doesn't exist, this must be the first time