newsyslog changes in DA 1.232

Chrysalis

Verified User
Joined
Aug 25, 2004
Messages
1,587
Location
uk
http://www.directadmin.com/features.php?id=447

The changes made here seem to be broken every day I am emailed with the error, which is like this.

newsyslog: bad value '695' for process number in /var/run/proftpd.pid
newsyslog: bad value '48303' for process number in /var/run/httpd.pid
newsyslog: bad value '620' for process number in /var/run/exim.pid
newsyslog: bad value '620' for process number in /var/run/exim.pid


I haven't looked into it much yet, but are others getting the same?
 
After upgrading DA, I am getting the same error email everyday with FreeBSD 4.9.
 
Hello,

Those were added to the /etc/newsyslog.conf file.

That error is very strange.. I found the code that generates that error ( http://www.google.ca/search?q=cache...bad+value+for+process+number&hl=en&lr=lang_en )

and it checks to make sure those numbers are within a certain range. In this case, 5 and 99999. The pid's shown are within that range, so something is wrong.

What happens when you run:

newsyslog -v

... a more clear description of the error should appear..

John
 
Here's my output (FreeBSD 4.9) from newsyslog -v:

Code:
zuni# newsyslog -v
/var/log/cron <3Z>: size (Kb): 46 [100] --> skipping
/var/log/amd.log <7Z>: does not exist, skipped.
/var/log/auth.log <7Z>: size (Kb): 68 [100] --> skipping
/var/log/kerberos.log <7Z>: does not exist, skipped.
/var/log/lpd-errs <7Z>: size (Kb): 0 [100] --> skipping
/var/log/maillog <7Z>: --> will trim at Mon Dec 20 00:00:00 2004
/var/log/sendmail.st <10>:  age (hr): 102 [168] --> skipping
/var/log/messages <5Z>: size (Kb): 42 [100] --> skipping
/var/log/all.log <7Z>: does not exist, skipped.
/var/log/slip.log <3Z>: size (Kb): 0 [100] --> skipping
/var/log/ppp.log <3Z>: size (Kb): 0 [100] --> skipping
/var/log/security <10Z>: size (Kb): 0 [100] --> skipping
/var/log/wtmp <3>: --> will trim at Wed Dec  1 05:00:00 2004
/var/log/daily.log <7Z>: does not exist, skipped.
/var/log/weekly.log <5Z>: does not exist, skipped.
/var/log/monthly.log <12Z>: does not exist, skipped.
/var/log/console.log <5Z>: does not exist, skipped.
/var/log/chrootshell.log <4>: does not exist, skipped.
/var/log/proftpd/auth.log <4>: --> will trim at Mon Dec 20 00:00:00 2004
/var/log/proftpd/xferlog.legacy <4>: --> will trim at Mon Dec 20 00:00:00 2004
/var/log/proftpd/access.log <4>: --> will trim at Mon Dec 20 00:00:00 2004
/var/log/httpd/access_log <4>: --> will trim at Mon Dec 20 00:00:00 2004
/var/log/httpd/fpexe_log <4>: does not exist, skipped.
/var/log/httpd/suexec_log <4>: --> will trim at Mon Dec 20 00:00:00 2004
/var/log/httpd/error_log <4>: --> will trim at Mon Dec 20 00:00:00 2004
/var/log/exim/paniclog <4>: does not exist, skipped.
/var/log/exim/exim_paniclog <4>: --> will trim at Mon Dec 20 00:00:00 2004
/var/log/exim/rejectlog <4>: does not exist, skipped.
/var/log/exim/exim_rejectlog <4>: --> will trim at Mon Dec 20 00:00:00 2004
/var/log/exim/processlog <4>: does not exist, skipped.
/var/log/exim/exim_processlog <4>: does not exist, skipped.
/var/log/exim/mainlog <4>: does not exist, skipped.
/var/log/exim/exim_mainlog <4>: --> will trim at Mon Dec 20 00:00:00 2004
/var/log/directadmin/error.log <4>: --> will trim at Mon Dec 20 00:00:00 2004
/var/log/directadmin/errortaskq.log <4>: --> will trim at Mon Dec 20 00:00:00 2004
/var/log/directadmin/security.log <4>: --> will trim at Mon Dec 20 00:00:00 2004
/var/log/directadmin/system.log <4>: --> will trim at Mon Dec 20 00:00:00 2004

It doesnt shed any more light to this newbie! :)
 
/var/log/auth.log <5Z>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/console.log <3Z>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/cron <3Z>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/daily.log <7J>: does not exist, skipped.
/var/log/debug.log <3Z>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/maillog <3Z>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/messages <5Z>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/monthly.log <12J>: does not exist, skipped.
/var/log/weekly.log <5J>: does not exist, skipped.
/var/log/wtmp <3>: --> will trim at Sat Jan 1 05:00:00 2005
/var/log/xferlog <3Z>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/ipfw/ipfw.log <7Z>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/chrootshell.log <4>: does not exist, skipped.
/var/log/proftpd/auth.log <4>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/proftpd/xferlog.legacy <4>: does not exist, skipped.
/var/log/proftpd/access.log <4>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/httpd/access_log <4>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/httpd/fpexe_log <4>: does not exist, skipped.
/var/log/httpd/suexec_log <4>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/httpd/error_log <4>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/exim/paniclog <4>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/exim/exim_paniclog <4>: does not exist, skipped.
/var/log/exim/rejectlog <4>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/exim/exim_rejectlog <4>: does not exist, skipped.
/var/log/exim/processlog <4>: does not exist, skipped.
/var/log/exim/exim_processlog <4>: does not exist, skipped.
/var/log/exim/mainlog <4>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/exim/exim_mainlog <4>: does not exist, skipped.
/var/log/directadmin/error.log <4>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/directadmin/errortaskq.log <4>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/directadmin/security.log <4>: --> will trim at Wed Dec 22 00:00:00 2004
/var/log/directadmin/system.log <4>: --> will trim at Wed Dec 22 00:00:00 2004
 
I got the same errors as well

FreeBSD 5.2.1

/var/log/all.log <7J>: does not exist, skipped.
/var/log/amd.log <7J>: does not exist, skipped.
/var/log/auth.log <7J>: size (Kb): 13 [100] --> skipping
/var/log/console.log <5J>: does not exist, skipped.
/var/log/cron <3J>: size (Kb): 54 [100] --> skipping
/var/log/daily.log <7J>: does not exist, skipped.
/var/log/debug.log <7J>: size (Kb): 4 [100] --> skipping
/var/log/kerberos.log <7J>: does not exist, skipped.
/var/log/lpd-errs <7J>: size (Kb): 0 [100] --> skipping
/var/log/maillog <7J>: --> time is up
--> trimming log....
daemon pid 293 notified
small pause to allow daemon(s) to close log
/var/log/messages <5J>: size (Kb): 37 [100] --> skipping
/var/log/monthly.log <12J>: does not exist, skipped.
/var/log/ppp.log <3J>: size (Kb): 0 [100] --> skipping
/var/log/security <10J>: size (Kb): 0 [100] --> skipping
/var/log/sendmail.st <10>: age (hr): 75 [168] --> skipping
/var/log/slip.log <3J>: size (Kb): 0 [100] --> skipping
/var/log/weekly.log <5J>: does not exist, skipped.
/var/log/wtmp <3>: --> will trim at Sat Jan 1 05:00:00 2005
/var/log/xferlog <7J>: size (Kb): 2 [100] --> skipping
/var/log/chrootshell.log <4>: does not exist, skipped.
/var/log/proftpd/auth.log <4>: --> time is up
--> trimming log....
/var/log/proftpd/xferlog.legacy <4>: --> time is up
--> trimming log....
/var/log/proftpd/access.log <4>: --> time is up
--> trimming log....
newsyslog: bad value '701' for process number in /var/run/proftpd.pid
newsyslog: (expecting value between -99999 and -5)
/var/log/httpd/access_log <4>: --> time is up
--> trimming log....
/var/log/httpd/fpexe_log <4>: does not exist, skipped.
/var/log/httpd/suexec_log <4>: --> time is up
--> trimming log....
/var/log/httpd/error_log <4>: --> time is up
--> trimming log....
newsyslog: bad value '9611' for process number in /var/run/httpd.pid
newsyslog: (expecting value between -99999 and -5)
/var/log/exim/paniclog <4>: --> time is up
--> trimming log....
/var/log/exim/exim_paniclog <4>: does not exist, skipped.
/var/log/exim/rejectlog <4>: --> time is up
--> trimming log....
/var/log/exim/exim_rejectlog <4>: does not exist, skipped.
/var/log/exim/processlog <4>: does not exist, skipped.
/var/log/exim/exim_processlog <4>: does not exist, skipped.
/var/log/exim/mainlog <4>: --> time is up
--> trimming log....
newsyslog: bad value '586' for process number in /var/run/exim.pid
newsyslog: (expecting value between -99999 and -5)
/var/log/exim/exim_mainlog <4>: does not exist, skipped.
/var/log/directadmin/error.log <4>: --> time is up
--> trimming log....
/var/log/directadmin/errortaskq.log <4>: --> time is up
--> trimming log....
/var/log/directadmin/security.log <4>: --> time is up
--> trimming log....
/var/log/directadmin/system.log <4>: --> time is up
--> trimming log....
elm2# newsyslog -v
/var/log/all.log <7J>: does not exist, skipped.
/var/log/amd.log <7J>: does not exist, skipped.
/var/log/auth.log <7J>: size (Kb): 13 [100] --> skipping
/var/log/console.log <5J>: does not exist, skipped.
/var/log/cron <3J>: size (Kb): 55 [100] --> skipping
/var/log/daily.log <7J>: does not exist, skipped.
/var/log/debug.log <7J>: size (Kb): 4 [100] --> skipping
/var/log/kerberos.log <7J>: does not exist, skipped.
/var/log/lpd-errs <7J>: size (Kb): 0 [100] --> skipping
/var/log/maillog <7J>: --> time is up
--> trimming log....
daemon pid 293 notified
small pause to allow daemon(s) to close log
/var/log/messages <5J>: size (Kb): 37 [100] --> skipping
/var/log/monthly.log <12J>: does not exist, skipped.
/var/log/ppp.log <3J>: size (Kb): 0 [100] --> skipping
/var/log/security <10J>: size (Kb): 0 [100] --> skipping
/var/log/sendmail.st <10>: age (hr): 75 [168] --> skipping
/var/log/slip.log <3J>: size (Kb): 0 [100] --> skipping
/var/log/weekly.log <5J>: does not exist, skipped.
/var/log/wtmp <3>: --> will trim at Sat Jan 1 05:00:00 2005
/var/log/xferlog <7J>: size (Kb): 2 [100] --> skipping
/var/log/chrootshell.log <4>: does not exist, skipped.
/var/log/proftpd/auth.log <4>: --> time is up
--> trimming log....
/var/log/proftpd/xferlog.legacy <4>: --> time is up
--> trimming log....
/var/log/proftpd/access.log <4>: --> time is up
--> trimming log....
newsyslog: bad value '701' for process number in /var/run/proftpd.pid
newsyslog: (expecting value between -99999 and -5)
/var/log/httpd/access_log <4>: --> time is up
--> trimming log....
/var/log/httpd/fpexe_log <4>: does not exist, skipped.
/var/log/httpd/suexec_log <4>: --> time is up
--> trimming log....
/var/log/httpd/error_log <4>: --> time is up
--> trimming log....
newsyslog: bad value '9611' for process number in /var/run/httpd.pid
newsyslog: (expecting value between -99999 and -5)
/var/log/exim/paniclog <4>: --> time is up
--> trimming log....
/var/log/exim/exim_paniclog <4>: does not exist, skipped.
/var/log/exim/rejectlog <4>: --> time is up
--> trimming log....
/var/log/exim/exim_rejectlog <4>: does not exist, skipped.
/var/log/exim/processlog <4>: does not exist, skipped.
/var/log/exim/exim_processlog <4>: does not exist, skipped.
/var/log/exim/mainlog <4>: --> time is up
--> trimming log....
newsyslog: bad value '586' for process number in /var/run/exim.pid
newsyslog: (expecting value between -99999 and -5)
/var/log/exim/exim_mainlog <4>: does not exist, skipped.
/var/log/directadmin/error.log <4>: --> time is up
--> trimming log....
/var/log/directadmin/errortaskq.log <4>: --> time is up
--> trimming log....
/var/log/directadmin/security.log <4>: --> time is up
--> trimming log....
/var/log/directadmin/system.log <4>: --> time is up
--> trimming log....
 
Here's what I get every hour on the hour every since upgrade. FreeBSD 4.8

newsyslog: illegal flag in config file -- N

Looks different. In fact I get this even when I try
# newsyslog -v

so... Any help?

thanks
 
well the logs are actually rotating, so I am just gonna edit the crontab so it stops emailing me the errors and ignore it.
 
Chrysalis said:
well the logs are actually rotating, so I am just gonna edit the crontab so it stops emailing me the errors and ignore it.

It would be nice if we got updated why this is happening though.
 
I'm still getting the error on FreeBSD 4.x (I know, wrong forum, but right thread!) after running the commands in http://www.directadmin.com/features.php?id=465 - looking through the file, it's still got N's all over the place, so I'm assuming it hasn't done the exchange properly.

What should / shouldn't it have?

Text copy attached.
 

Attachments

  • newsyslogconf.txt
    3.9 KB · Views: 380
Back
Top