[Nagiosplug-checkins] nagiosplug/plugins-scripts check_log.sh,1.3,1.4

Ton Voon tonvoon at users.sourceforge.net
Thu Feb 3 15:53:46 CET 2005


Update of /cvsroot/nagiosplug/nagiosplug/plugins-scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1881

Modified Files:
	check_log.sh 
Log Message:
Check for log file readability


Index: check_log.sh
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-scripts/check_log.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- check_log.sh	28 Oct 2002 13:05:07 -0000	1.3
+++ check_log.sh	3 Feb 2005 23:51:35 -0000	1.4
@@ -167,6 +167,9 @@
 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





More information about the Commits mailing list