Cron /etc/webmin/bandwidth/rotate.pl

10 posts / 0 new
Last post
#1 Wed, 10/01/2008 - 04:28
alfredolo

Cron /etc/webmin/bandwidth/rotate.pl

Good morning,

I am getting the message "Restarting system log daemon: syslogd." by mail every 1 hours, at 12:00, 13:00, 14:00 and so on.. What is it ? Any idea on how to fix it ? Thank you !

Wed, 10/01/2008 - 12:16
Joe
Joe's picture

What do you mean "fix it"? I don't see any error there.

--

Check out the forum guidelines!

Wed, 10/01/2008 - 12:19 (Reply to #2)
Joe
Joe's picture

Oh, and as for "what is it", it's a log rotation of the bandwidth log. Bandwidth logging is crazily verbose...it kinda has to be, since it's logging every packet that passes across your network interface. So, it has to be processed and rotated very frequently, or it'll overwhelm you machine.

--

Check out the forum guidelines!

Wed, 10/01/2008 - 12:37
alfredolo

Ok thank you..
I don't want an email every hour, it is boring.. There is a solution to put this action without email generation ?
Thank you a lot !

Wed, 10/01/2008 - 12:52 (Reply to #4)
Joe
Joe's picture

Oh, you didn't say it was coming in via email. ;-)

I guess you have cron configured to email you the results of every cronjob when it runs?

--

Check out the forum guidelines!

Wed, 10/01/2008 - 12:54 (Reply to #5)
Joe
Joe's picture

Oh, actually, I guess you did. Sorry for the confusion...I thought you were just seeing a log entry...which is what normally happens, unless cron is configured to email on every job.

--

Check out the forum guidelines!

Thu, 10/02/2008 - 04:35
alfredolo

Oh sorry, I forgot it..
I have a .forward file in root user. Now when I have created a new domain "example.it" , a new user "example" was automatically created but I never inserted the .forward file in this user.
I have created some crontab job for this new user "example", and every hour I get a message from the root (?) user..

title : "Cron <root@example> /etc/webmin/bandwidth/rotate.pl"
body :
Cron Daemon
Restarting system log daemon: syslogd.

The email is important for me. If my php script return a error, automatically I get a new email from cron reporting the error and I can check and fix the problem.
I would like only error email, not cron restart.
It is possible ?
Thank you very much !

Sat, 10/04/2008 - 01:35
alfredolo

Anyone know how to remove all email generated from crontab ?
I will remove all, it is good too..
Thank you!

Fri, 10/10/2008 - 09:47
alfredolo

I got the solution.
If someone have the same problem. just edit crontab :

# crontab -u root -e
change the line :
0 * * * * /etc/webmin/bandwidth/rotate.pl

into
0 * * * * /etc/webmin/bandwidth/rotate.pl >/dev/null 2>&1

and you don't get any more mossage from crontab.

Hope this can help someone

Wed, 09/14/2016 - 04:29
brunodegoyrans

Thanks. It helped me.

You can also do this thru the Webmin interface - System - Scheduled Cron Job Then you select/edit the job finishing with "rotale.pl" and add the parameter:

/dev/null 2 >&1

at the end of Command

Topic locked