RE: Re:Bandwidth Monitor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Harry wrote:
> Hello Mr.Ed,
> 
> I am sorry I am just not able to get this working....correct me if I
> am wrong, the graphs/output that u sent me a while ago are the ones
> that get generated when Josep wendels script is executed right? But
> each time I run that script which is mrtg_total.pl
> /etc/mrtg/makecfg.sh, I get this error,
>
> /usr/local/bin/mrtg_total.pl: line 135: syntax error near unexpected
> token `$DEBUG'
> /usr/local/bin/mrtg_total.pl: line 135: `my ($DEBUG)= (0); # 1 to get
> debugging printouts to STDERR,'

Pardon my interuption, but...

The above looks to be a shell error, not a perl error. i.e. wrong
interpreter.

Either add the call to perl on the first line of mrtg_total.pl or execute
from a shell command line using something like:

# cd /usr/local/bin
# perl mrtg_total.pl /FULL_PATH_TO/mrtg.cfg 

> 
> I have read the site and he does say something abt it, but I dont seem
> to understand whats to be done..Can u pls let me know what exactly you
> have done to get this working? I have also attached my makecfg.sh
> script, pls have a look at it and let me know if its right?

The attached script you reference creates the .cfg file(s) that would be
used by both mrtg and mrtg_total.pl. Run this script first, then refernece
the created .cfg file(s) as shown above for mrtg_total.pl.

Steve Cowles


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux