Good day! I have a couple systems that I'm testing syslog-ng with php-syslog-ng to centralize logs for both linux and Windows machines. I have a vmware Ubuntu 7.10 server guest setup with a working syslog-ng and php-syslog-ng installation. The setup receives and logs the remote machines correctly but for some unknown reason I can't seem to find out why every day at exactly 06:20:04 the syslog-ng service gets stopped. I don't see any errors but I'll paste the results of the last few localhost entries logged by syslog-ng and the results of the cron jobs for active users.
Log results from localhost in syslog-ng:
123015 loghost.localdomain auth-info 2008-03-28 06:25:02
su[26933]: (pam_unix) session closed for user nobody
123014 loghost.localdomain auth-info 2008-03-28 06:25:01
su[26933]: (pam_unix) session opened for user nobody by (uid=0)
123013 loghost.localdomain authpriv-info 2008-03-28 06:25:01
su[26933]: + ??? root:nobody
123012 loghost.localdomain authpriv-info 2008-03-28 06:25:01
su[26933]: Successful su for nobody by root
123011 loghost.localdomain auth-info 2008-03-28 06:25:01
su[26931]: (pam_unix) session closed for user nobody
123010 loghost.localdomain auth-info 2008-03-28 06:25:01
su[26931]: (pam_unix) session opened for user nobody by (uid=0)
123009 loghost.localdomain authpriv-info 2008-03-28 06:25:01
su[26931]: + ??? root:nobody
123008 loghost.localdomain authpriv-info 2008-03-28 06:25:01
su[26931]: Successful su for nobody by root
123007 loghost.localdomain auth-info 2008-03-28 06:25:01
su[26928]: (pam_unix) session closed for user nobody
123006 loghost.localdomain auth-info 2008-03-28 06:25:01
su[26928]: (pam_unix) session opened for user nobody by (uid=0)
123005 loghost.localdomain authpriv-info 2008-03-28 06:25:01
su[26928]: + ??? root:nobody
123004 loghost.localdomain authpriv-info 2008-03-28 06:25:01
su[26928]: Successful su for nobody by root
123003 loghost.localdomain auth-info 2008-03-28 06:25:01
CRON[26898]: (pam_unix) session closed for user root
123002 loghost.localdomain cron-info 2008-03-28 06:25:01
/USR/SBIN/CRON[26899]: (root) CMD (php /www/php-syslog-ng/scripts
/reloadcac
he.php >> /var/log/php-syslog-ng/rel
oadcache.l
og)
123001 loghost.localdomain auth-info 2008-03-28 06:25:01
CRON[26898]: (pam_unix) session opened for user root by (uid=0)
123000 loghost.localdomain cron-info 2008-03-28 06:25:01
/USR/SBIN/CRON[26897]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
122999 loghost.localdomain auth-info 2008-03-28 06:25:01
CRON[26896]: (pam_unix) session opened for user root by (uid=0)
Crontab for root:
test@loghost:~$ sudo crontab -l -u root
# m h dom mon dow command
@daily php /www/php-syslog-ng/scripts
/logrotate
.php >> /var/log/php-syslog-ng/log
rotate.log
@daily find /www/php-syslog-ng/html/jp
cache/ -atime 1 -exec rm -f '{}' ';'
0,5,10,15,20,25,30,35,40,4
5,50,55 * * * * php /www/php-syslog-ng/scripts
/reloadcac
he.php >> /var/log/php-syslog-ng/rel
oadcache.l
og
# Removed below as of v2.9.4
# @reboot /www/php-syslog-ng/scripts
/syslog2my
sql.sh >> /var/log/php-syslog-ng/mys
ql.log 2>&1
# Demo PHP-Syslog-NG
# CHANGE TO MATCH YOUR DIRECTORY PATHS
# @hourly /www/php-syslog-ng/scripts
/dbgen.pl >> /var/log/php-syslog-ng/dbg
en.log
test@loghost:~$
Start Free Trial