Problem Installing MRTG on Solaris 8

Hi everybody,

I installed the following pkgs from sunfreeware in order to get MRTG working, on a SunFire V100 with iPlanet WebServer:

application SMCftype       freetype
application SMCgcc342      gcc
application SMCgd          gd
application SMCjpeg        jpeg
application SMClibpng      libpng
application SMCliconv      libiconv
application SMCmrtg        mrtg
application SMCxpm         xpm
application SMCzlib        zlib

but when I try to run:

/usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg

I get:

/usr/local/mrtg-2/bin/mrtg: not found

But:

# ls -l /usr/local/mrtg-2/bin/mrtg
-rwxr-xr-x   1 bin      bin        87496 Sep 26 05:06 /usr/local/mrtg-2/bin/mrtg

# ls -l /home/mrtg/cfg/mrtg.cfg
-rw-r--r--   1 mrtg     mrtg       65478 Sep 10 11:16 /home/mrtg/cfg/mrtg.cfg

Can somebody help me?

Allan
allruizAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

allruizAuthor Commented:
I need help as fast as you can, please.
0
wesly_chenCommented:
Could you try
file /usr/local/mrtg-2/bin/mrtg
and
cat /home/mrtg/cfg/mrtg.cfg

Wesly
0
allruizAuthor Commented:
# file /usr/local/mrtg-2/bin/mrtg
/usr/local/mrtg-2/bin/mrtg:     executable /usr/local/bin/perl script

# cat /home/mrtg/cfg/mrtg.cfg
#Created by  : Carlos Barahona
#Mofified by : Mirtha Navarro A 20040108
WorkDir: /usr/local/mrtg-2/htdocs/mrtg
Language: spanish
Options[_]: growright,bits
XSize[^]: 500
YSize[^]: 150
RunAsDaemon: Yes
Interval: 5
Forks: 4
....
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

wesly_chenCommented:
> # file /usr/local/mrtg-2/bin/mrtg
> /usr/local/mrtg-2/bin/mrtg:     executable /usr/local/bin/perl script
Do
head -1 /usr/local/mrtg-2/bin/mrtg
and check if your "perl" is at the right path. If not, please modify to the right path of PERL.

Wesly
0
allruizAuthor Commented:
# head -1 /usr/local/mrtg-2/bin/mrtg
#! /usr/local/bin/perl -w
 # which perl
/usr/bin/perl
0
wesly_chenCommented:
So did you modify /usr/local/mrtg-2/bin/mrtg
to
#! /usr/bin/perl -w
and try it again?

Wesly
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
allruizAuthor Commented:
Of course It works and I also change my WorkDir and it work.

And I get:

WARNING: Could not match host:'PRUEBA@10.241.2.1:' ref:'Ip' key:'10.241.6.93'
WARNING: Could not match host:'PRUEBA@10.241.3.1:' ref:'Ip' key:'10.241.3.1'
WARNING: Could not match host:'PRUEBA@10.241.3.1:' ref:'Ip' key:'10.241.6.11'
ERROR: Target[amtm][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
ERROR: Target[amtm][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
ERROR: Target[amtm2][_IN_] ' $target->[1]{$mode} ' did not eval into defined data
ERROR: Target[amtm2][_OUT_] ' $target->[1]{$mode} ' did not eval into defined data
ERROR: Target[agcia_sn_rafael_sur_fa0-0][_IN_] ' $target->[24]{$mode} ' did not eval into defined data
ERROR: Target[agcia_sn_rafael_sur_fa0-0][_OUT_] ' $target->[24]{$mode} ' did not eval into defined data
ERROR: Target[agcia_sn_rafael_sur_et1-0][_IN_] ' $target->[25]{$mode} ' did not eval into defined data
ERROR: Target[agcia_sn_rafael_sur_et1-0][_OUT_] ' $target->[25]{$mode} ' did not eval into defined data

What this could mean and how do I know when is fully loaded?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.