Here is how you get your hands dirty :
1. Insert the below into /usr/local/etc/smokeping/config :
syslogfacility = local0 syslogpriority = debug2. Insert the below into /etc/syslog.conf :
local0.* /var/log/smokeping.log3. Create the log file :
touch /var/log/smokeping.log4. Make sure the ownership of smokeping process is able to write to the log file :
- check the owner of the smokeping process :
ps aux | grep -i smokeping
- change the ownership of the log file
chown smokeping:smokeping /var/log/smokeping.log5. Optionally, rotate the log file daily. Insert the below line into /etc/newsyslog.conf :
/var/log/smokeping.log smokeping:smokeping 644 7 * @T00 JC6. Reload the necessary config files for the above changes to take effect :
/etc/rc.d/syslogd reload /etc/rc.d/newsyslog reload /usr/local/etc/rc.d/smokeping reload
Voilla !!!
No comments:
Post a Comment