diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2005-02-03 23:51:35 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2005-02-03 23:51:35 (GMT) |
commit | eff6bae7ed30f6f262670736cc94700e91dcdc75 (patch) | |
tree | cd14c345fadbb868636d20aea981c528221b3429 | |
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
-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 355bd01..0da732d 100755 --- a/plugins-scripts/check_log.sh +++ b/plugins-scripts/check_log.sh | |||
@@ -167,6 +167,9 @@ done | |||
167 | if [ ! -e $logfile ]; then | 167 | if [ ! -e $logfile ]; then |
168 | $ECHO "Log check error: Log file $logfile does not exist!\n" | 168 | $ECHO "Log check error: Log file $logfile does not exist!\n" |
169 | exit $STATE_UNKNOWN | 169 | exit $STATE_UNKNOWN |
170 | elif [ ! -r $logfile ] ; then | ||
171 | $ECHO "Log check error: Log file $logfile is not readable!\n" | ||
172 | exit $STATE_UNKNOWN | ||
170 | fi | 173 | fi |
171 | 174 | ||
172 | # If the old log file doesn't exist, this must be the first time | 175 | # If the old log file doesn't exist, this must be the first time |