[mrtg] problem with the cron exec

Lingegowda, Nagesh (Consultant) Nagesh.Lingegowda at GTECH.COM
Tue Jun 24 16:10:09 MEST 2003


Hello,

My mrtgcron crated by the mrtg with the *cfg  file is as follows.


#This file runs the MRTG for each config
/usr/local/src/mrtg-2.9.20/contrib/ovmrtg/file
cd /usr/local/src/mrtg-2.9.20/contrib/ovmrtg
/opt/OV/bin/Perl/bin/perl /usr/local/src/mrtg-2.9.20/contrib/ovmrtg/mrtg
lucy.cfg
/opt/OV/bin/Perl/bin/perl /usr/local/src/mrtg-2.9.20/contrib/ovmrtg/mrtg
ricky2.cfg
/opt/OV/bin/Perl/bin/perl /usr/local/src/mrtg-2.9.20/contrib/ovmrtg/mrtg
wg2-msfc.cfg
# Additional commands could go here. Under NT the next line won't return
./buildht
# End of rebuild ht file

If i run mrtgcron from the command line its updating the html and index file
in their respective directory
like lucy-day.png, lucy.index file  but if I call this from the cron its
making the index file ( eg .lucy.index file to zero size)
and also not updating the other files. But if I look at the cron log , its
executing the command.

cron entry is

0,5,10,15,20,25,30,35,40,45,50 * * * *
/usr/local/src/mrtg-2.9.20/contrib/ovmrtg/mrtgcron >
/var/opt/OV/log/mrtg/log 2>&1

I can see fro every five mins, cron is calling the command. but its making
the index file to zero size without affecting the other files

ls - l  listing as follows

-rw-rw-rw-   1 root       sys           6803 Jun 24 09:20 lucy.5.err.html
-rw-rw-rw-   1 root       sys          48055 Jun 24 09:20 lucy.5.err.log
-rw-rw-rw-   1 root       sys          48055 Jun 24 09:06 lucy.5.err.old
-rw-rw-rw-   1 root       sys           7096 Jun 24 09:20 lucy.5.html
-rw-rw-rw-   1 root       sys          48055 Jun 24 09:20 lucy.5.log
-rw-rw-rw-   1 root       sys          48055 Jun 24 09:06 lucy.5.old
-rw-rw-rw-   1 root       sys           1562 Jun 24 09:20 lucy.6-day.png
-rw-rw-rw-   1 root       sys           1471 Jun 24 09:05 lucy.6-month.png
-rw-rw-rw-   1 root       sys           1585 Jun 24 09:05 lucy.6-week.png
-rw-rw-rw-   1 root       sys           1819 Jun 24 09:05 lucy.6-year.png
-rw-rw-rw-   1 root       sys           1929 Jun 24 09:20 lucy.6.err-day.png
-rw-rw-rw-   1 root       sys           1548 Jun 24 09:05
lucy.6.err-month.png
-rw-rw-rw-   1 root       sys           1659 Jun 24 09:05
lucy.6.err-week.png
-rw-rw-rw-   1 root       sys           1789 Jun 24 09:05
lucy.6.err-year.png
-rw-rw-rw-   1 root       sys           6803 Jun 24 09:20 lucy.6.err.html
-rw-rw-rw-   1 root       sys          48055 Jun 24 09:20 lucy.6.err.log
-rw-rw-rw-   1 root       sys          48055 Jun 24 09:06 lucy.6.err.old
-rw-rw-rw-   1 root       sys           7096 Jun 24 09:20 lucy.6.html
-rw-rw-rw-   1 root       sys          48055 Jun 24 09:20 lucy.6.log
-rw-rw-rw-   1 root       sys          48055 Jun 24 09:06 lucy.6.old
-rw-rw-rw-   1 root       sys           0 Jun 24 09:21 lucy.html

I appreciate your time.
any help in this regard will be appreciated

thanks
Nagesh


-----------------------------------------
This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.  Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof.

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list