enable separate logging for watchdog
Hi
I want to enable separate log file ( which will log everything related to watchdog in it) for watchdog demon which is running on my system. Syslog is running as system logger in RHEL4 box which i am using and my /etc/syslog.conf file looks like follows.
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;watchdog.none;mail.none;authpriv.none;cron.none /var/log/messages
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* -/var/log/maillog
# Log cron stuff
cron.* /var/log/cron
# Watchdog Logs
watchdog.* /var/log/watchdog/watchdog.log
# Everybody gets emergency messages
*.emerg *
# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler
# Save boot messages also to boot.log
local7.* /var/log/boot.log
Also My /etc/watchdog.conf file is look like as follows.
#ping = 172.31.14.1
#ping = 172.26.1.255
#interface = eth0
file = /var/log/watchdog/watchdog.log
#change = 1407
# Uncomment to enable test. Setting one of these values to '0' disables it.
# These values will hopefully never reboot your machine during normal use
# (if your machine is really hung, the loadavg will go much higher than 25)
max-load-1 = 24
max-load-5 = 18
max-load-15 = 12
# Note that this is the number of pages!
# To get the real size, check how large the pagesize is on your machine.
min-memory = 1
repair-binary = /usr/local/bin/repair
#test-binary = /usr/local/bin/test
#test-timeout =
watchdog-device = /dev/watchdog
# Defaults compiled into the binary
#temperature-device =
#max-temperature = 120
# Defaults compiled into the binary
#admin = root
#interval = 10
logtick = 3
# This greatly decreases the chance that watchdog won't be scheduled before
# your machine is really loaded
realtime = yes
priority = 1
# Check if syslogd is still running by enabling the following line
#pidfile = /var/run/syslogd.pid
#pidfile = /var/run/httpd.pid
after changing the configuration files i've rebooted the system and saw that logging is not working (even I've created /var/log/watchdog/watchdog.log) file mannually. Can anybody please help me out to solve that problem.
Thanx in advance !!!
|