Lines Matching +full:log +full:-

17 #  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 # 12/05/02 Port to bash -Robbie Williamson <robbiew@us.ibm.com>
20 # 02/05/03 Modified - Manoj Iyer <manjo@mail.utexas.edu> use USCTEST macros
24 # with syslog-ng
31 # o For syslog-ng the priority is set to all #
32 # because of the format of syslog-ng.conf #
39 . syslog-lib.sh || exit 1
45 # Adds some clarification of log message when syslog-ng is used
59 echo "user.debug /var/log/messages" >> $CONFIG_FILE
62 /etc/syslog-ng/syslog-ng.conf)
63 …echo "source src{ internal(); unix-dgram(\"/dev/log\"); udp(ip(\"0.0.0.0\") port(514)); };" > $CON…
68 echo "destination syslog-messages { file(\"/var/log/messages\");};" >> $CONFIG_FILE
69 …echo "log { source(src); filter(f_syslog_messages); destination(syslog-messages); };" >> $CONFIG_F…
75 if [ -e /var/log/messages ]; then
76 emerg_old=`grep -c "syslogtst: emergency log" /var/log/messages`
77 alert_old=`grep -c "syslogtst: alert log" /var/log/messages`
78 crit_old=`grep -c "syslogtst: critical log" /var/log/messages`
79 err_old=`grep -c "syslogtst: error log" /var/log/messages`
80 warning_old=`grep -c "syslogtst: warning log" /var/log/messages`
81 notice_old=`grep -c "syslogtst: notice log" /var/log/messages`
82 info_old=`grep -c "syslogtst: info log" /var/log/messages`
83 debug_old=`grep -c "syslogtst: debug log" /var/log/messages`
102 emerg_new=`grep -c "syslogtst: emergency log" /var/log/messages`
103 alert_new=`grep -c "syslogtst: alert log" /var/log/messages`
104 crit_new=`grep -c "syslogtst: critical log" /var/log/messages`
105 err_new=`grep -c "syslogtst: error log" /var/log/messages`
106 warning_new=`grep -c "syslogtst: warning log" /var/log/messages`
107 notice_new=`grep -c "syslogtst: notice log" /var/log/messages`
108 info_new=`grep -c "syslogtst: info log" /var/log/messages`
109 debug_new=`grep -c "syslogtst: debug log" /var/log/messages`
111 emerg=$(( $emerg_new - $emerg_old ))
112 alert=$(( $alert_new - $alert_old ))
113 crit=$(( $crit_new - $crit_old ))
114 err=$(( $err_new - $err_old ))
115 warning=$(( $warning_new - $warning_old ))
116 notice=$(( $notice_new - $notice_old ))
117 info=$(( $info_new - $info_old ))
119 if [ $emerg -ne 1 -o $alert -ne 1 -o $crit -ne 1 -o $err -ne 1 -o \
120 $warning -ne 1 -o $notice -ne 1 -o $info -ne 1 -o \
121 $info -ne 1 ]; then