alfredolo (User)
Posts: 17
|
| Cron /etc/webmin/bandwidth/rotate.pl 2008/10/01 04:28 |
|
|
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 !
|
|
|
|
The administrator has disabled public write access. |
Joe (Admin)
Posts: 4124
|
| Re:Cron /etc/webmin/bandwidth/rotate.pl 2008/10/01 12:16 |
|
|
What do you mean "fix it"? I don't see any error there.
|
|
|
|
The administrator has disabled public write access. |
Joe (Admin)
Posts: 4124
|
| Re:Cron /etc/webmin/bandwidth/rotate.pl 2008/10/01 12:19 |
|
|
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.
|
|
|
|
The administrator has disabled public write access. |
alfredolo (User)
Posts: 17
|
| Re:Cron /etc/webmin/bandwidth/rotate.pl 2008/10/01 12:37 |
|
|
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 !
|
|
|
|
The administrator has disabled public write access. |
Joe (Admin)
Posts: 4124
|
| Re:Cron /etc/webmin/bandwidth/rotate.pl 2008/10/01 12:52 |
|
|
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?
|
|
|
|
The administrator has disabled public write access. |
Joe (Admin)
Posts: 4124
|
| Re:Cron /etc/webmin/bandwidth/rotate.pl 2008/10/01 12:54 |
|
|
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.
|
|
|
|
The administrator has disabled public write access. |
alfredolo (User)
Posts: 17
|
| Re:Cron /etc/webmin/bandwidth/rotate.pl 2008/10/02 04:35 |
|
|
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 !
|
|
|
|
The administrator has disabled public write access. |
alfredolo (User)
Posts: 17
|
| Re:Cron /etc/webmin/bandwidth/rotate.pl 2008/10/04 01:35 |
|
|
Anyone know how to remove all email generated from crontab ? I will remove all, it is good too.. Thank you!
|
|
|
|
The administrator has disabled public write access. |
alfredolo (User)
Posts: 17
|
| Re:Cron /etc/webmin/bandwidth/rotate.pl 2008/10/10 09:47 |
|
|
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
|
|
|
|
The administrator has disabled public write access. |
|