Is the command in the contrab running?
I put the line
*/5 * * * * root export LANG=C /usr/bin/mrtg /root/file.cfg --logging /var/log/mrtg.log But neither the out is been created, nor the log indicated created. What I am doing wrong ? Is there another way verify it's run except ls -ltr in the output directory! Thanks |
Quote:
READ THE DOCUMENTATION It DOES NOT get simpler than that. AGAIN, as you were told several times, you have NOT specified a correct cron statement. It is badly mangled...if you looked at the documentation (posted here AGAIN, for the fifth time): http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html ...and actually READ IT, you will see, towards the bottom, a very clear cron line example. Look at it..compare it to yours...the one THEY have works. It STILL doesn't get simpler than that. A cron job has SIX fields total...the last being the command. Unless you can type in "root export LANG=C /usr/bin/mrtg /root/file.cfg --logging /var/log/mrtg.log" on a command line and have it work (and it WILL NOT), why do you think it'll work in cron??? |
I will read when arrive home, but I am out of office now.
Thanks |
Easy,
I tried ask that. My Cron wasn`t running. It`s only: # service crond start . Thanks for send the sites. Tomorrow I send the results. |
Quote:
Quote:
Quote:
|
|
Quote:
|
The service was up, and I restarted it.
But the file /tmp/debug.log is full with the error: /bin/sh: root: command not found. It's strange because I can start by command line. Any suggestion? Thanks |
Quote:
Quote:
Quote:
You have been pointed to the directions/example NUMEROUS TIMES....you ARE NOT PAYING ATTENTION, and you are NOT EVEN TRYING. AGAIN, as you've been told at least half a dozen times now...READ THE DOCUMENTATION. The cron example in it is what you need to run. It does not, can not, be more simple than that. There is a command you can copy and paste, yet you REFUSE TO DO IT. STOP POSTING if you're not going to actually do things that are suggested to you. You have been spoon-fed this information multiple times, in multiple threads, and are not listening. |
Why not, only to test The syntax ?
And running by there, the graphs are being generated. |
Quote:
|
I don't said don't need to restart.
Restart was needed to changes become taken effect. I Read the documentation. I copyed and paste it and are having syntax error. |
An user here, send me directly an email saying probably I am having problems in cron. Not in mrtg. It's possible since I could run by cmd and not using cron.
|
Quote:
Quote:
http://www.cyberciti.biz/faq/how-do-...-or-unix-oses/ ...from which this is quoted: Code:
Do I have to restart cron after changing the crontable file? Quote:
You posted this, exactly: Code:
*/5 * * * * root export LANG=C /usr/bin/mrtg /root/file.cfg --logging /var/log/mrtg.log AGAIN...from the documentation that you have been spoon-fed at least half a dozen times, which you STILL haven't read or understood, I'll even quote it here, since it may keep you from coming back: Quote:
|
But The behavior wasn't that way.
I thought that way when editing using cron tab -e , but nothing happens, neither the log, nor any error. When used service cron restart, the things happened. Now I have a cron error and I need to correct it. |
All times are GMT -5. The time now is 09:21 PM. |