diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2005-02-03 23:51:35 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2005-02-03 23:51:35 +0000 |
commit | eff6bae7ed30f6f262670736cc94700e91dcdc75 (patch) | |
tree | cd14c345fadbb868636d20aea981c528221b3429 /plugins-scripts/check_log.sh | |
parent | 227c04a6886b708ce23cb9fd97e49b000228b1cb (diff) | |
download | monitoring-plugins-eff6bae7ed30f6f262670736cc94700e91dcdc75.tar.gz |
Check for log file readability
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1129 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-scripts/check_log.sh')
-rwxr-xr-x | plugins-scripts/check_log.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins-scripts/check_log.sh b/plugins-scripts/check_log.sh index 355bd01e..0da732d2 100755 --- a/plugins-scripts/check_log.sh +++ b/plugins-scripts/check_log.sh @@ -167,6 +167,9 @@ done 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 |