[syslog-ng] program dies

Jeff DiNisco Dinisco at yahoo.com
Fri Oct 14 17:40:52 CEST 2005


I'm running syslog-ng on solaris 10.  I have a destination defined as - destination d_alert {
program("/usr/local/admin/syslog-ng/alert.bash"); }; 

when syslog-ng is started, these processes also start...
/bin/bash /usr/local/admin/syslog-ng/alert.bash
/bin/sh -c /usr/local/admin/syslog-ng/alert.bash

About an hour later, for no apparent reason, the 2 alert.bash processes die but the syslog-ng
process continues to run.  I've implemented a watchdog script to alert and restart syslog-ng when
they die.  It's interesting to note that they seem to die exactly 1 hour after being restarted.

command used to start syslog-ng -  /usr/local/sbin/syslog-ng -f /usr/local/etc/syslog-ng.conf >>
${logfile} 2>&1

alert.bash script...
#!/bin/bash

export mailaddr=jeff at xxxxxx.com

while read input
do
  hostname=`echo ${input} |awk '{print $4}' |sed 's|/.*||'`
  program=`echo ${input} |awk '{print $5}' |sed 's|[[(].*||'`

  echo ${input} | mailx -s "${program} alert on ${hostname}" ${mailaddr}
done

Any help would be greatly appreciated. 

 - Jeff


		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/


More information about the syslog-ng mailing list