[mrtg] Re: Perl external command ?!!

Roth, Gabrielle gabrielle.roth at xo.com
Tue Dec 3 16:51:31 MET 2002


>In fact, the pbem comes from the crontab.
>When I execute from the command line exactly what it is in crontab :
>/usr/local/mrtg/bin/mrtg /usr/local/mrtg/bin/rssi_error.cfg --logging
>/usr/local/mrtg/bin/rssi_error.log
>
>It works : MRTG started without errors, warnings ..
>When I use crontab, I 've got these errors :
>WARNING: Could not get any data from external command '/usr/bin/perl
>bm_rssi_error.
>pl bmpcmali'
>Maybe the external command did not even start. (Illegal seek)
>
>Argh !! Help very appreciated !!

I would be willing to bet my morning scone that the problem is not cron.
Cron runs under a different, and often more restrictive, environment than
your shell.  Cron might not know where that script is;  you need to tell it.

As Daniel said, change your target to contain absolute paths, like so:
Target[bmpcmali_error]: `/usr/bin/perl /path/to/bm_rssi_error.pl bmpcmali`
                                       ^^^^^^^^^ New stuff

-gabrielle
- mrtg questions sent to me privately will not be answered. -
- please use the list!                                      - 

--
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