#  log2monitor v0.1
# ---------------------------------------------
#  by neuronal@systemfailure.org - 20/12/2002 -
 
#!/bin/bash
 
DIR_LOG="/var/log"
 
case "$1" in
  'start')
	tail -f $DIR_LOG/messages \
                $DIR_LOG/syslog \
                $DIR_LOG/kern.log \
                $DIR_LOG/auth.log \
                $DIR_LOG/apache-perl/access_log \
                $DIR_LOG/apache-perl/error_log \
                $DIR_LOG/apache-ssl/access.log \
                $DIR_LOG/apache-ssl/error.log \
                $DIR_LOG/vsftpd.log
                $DIR_LOG/mysql.log
 		$DIR_LOG/mysql/mysql.err &
#		$DIR_LOG/
#               $DIR_LOG/
	;;
  'stop')
        skill -KILL tail
	;;
  *)
	echo -e " Uso: `basename $0` { start\033[1;37m|\033[0mstop }"
	echo
esac
 
codigo/bash/log2monitor.txt · Última modificación: 2006/12/08 22:39 (editor externo)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki