1834737 Members
3029 Online
110070 Solutions
New Discussion

Re: MRTG

 
SOLVED
Go to solution

MRTG

All,
Could you give me a procedure to install MRTG
The procedure of www.mrtg.org failed.
So, see that :

Hostname:/usr/local/mrtg-2/bin#./cfgmaker
syntax error in file ./cfgmaker at line 17, next 2 tokens "@main:"
syntax error in file ./cfgmaker at line 21, next 2 tokens "use strict"
/^(?:(ms)?(dos|win(32|nt)?))/: ?+* follows nothing in regexp at ./cfgmaker line 25.

Thank you for your help
Arnaud
Administrator Unix
6 REPLIES 6
Rainer von Bongartz
Honored Contributor

Re: MRTG


MRTG's cfgmaker needs perl

do you have perl installed and is the right version. Check www.mrtg.org for the required perl version

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...

Re: MRTG

have you a .depot for Perl5, because the procedure of Perl is realy to long !

Thank you very much for your
help.

Arnaud
Administrator Unix
Ron Kinner
Honored Contributor

Re: MRTG

http://www.perl.com/CPAN/ports/index.html#hpux

has binaries for hpux. If you need something else then look at:

http://www.perl.com/CPAN/ports/index.html


Ron
Yogeeraj_1
Honored Contributor
Solution

Re: MRTG

hi arnaud,

you can also download the depot from:

http://hpux.cs.utah.edu/hppd/hpux/Languages/perl-5.8.0/

Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Ahmed Attia Sweilem
Frequent Advisor

Re: MRTG

Dears,

I got the same error messages. However I already have Perl5 installed and working properly.

Any advice please ?

Thanks in advance
Ahmed Attia.
East or West........Home is best
Ron Kinner
Honored Contributor

Re: MRTG

Now that I look at this a little closer I think your problem and the original complaint is because neither of you are giving cfgmaker anything to work with. You have to tell it what target and what community string to use. It can't read your mind and I'm not sure that Unix is going to know to use Perl to run cfgmaker.

At a minimum you need:

perl cfgmaker public@a.b.c.d

where public is the community string which might not be public if you have changed it and a.b.c.d is the IP of the target.

This is what I use on my system which is WinNT but cfgmaker doesn't care that much.

perl c:\mrtg-2.9.23\bin\cfgmaker --global "workdir: c:\mrtg" public@10.1.1.1 > mrtg.cfg

The resulting mrtg.cfg file can be used as it is and stores all of the logfiles in the workdir C:\mrtg. Best to make sure the directory exists before running cfgmaker. If you have more targets then you do:

perl c:\mrtg-2.9.23\bin\cfgmaker public@10.1.1.2 >> mrtg.cfg

on subsequent entries assuming you want to keep all of your files in the same directory. Note we don't reset the workdir, the IP address has changed to that of the new target and we now use >> instead of >.

Ron