[mrtg] Re: MRTG running, but no PNG graphs
Roberts, Larry
Larry.Roberts at expanets.com
Wed Jan 8 18:54:18 MET 2003
I did a fresh compile of each portion. It think ( im not in front of the
machine right now ) that I had to install 3 software packages PRIOR to
installing Redhat.
I remember the Libpng, and I think that GD and ZLIB were the others I
installed.
The Unix install directions are pretty simple and if you follow them, you
*should* be producing the graphs in no time.
I suspect that if your using RPM's , the path to the LIBPNG is wrong ( I'm
not an RPM person so I don't know how they work )
I would really recommend reading the UNIX install directions and giving that
a shot. It takes a little time to find the files you need, but the install
is straight forward.
But First....
Try running MRTG from within the MRTG directory.
Linux doesn't search the current directory by default like Dos/Windows, so
you will need to go into the MRTG directory containing the mrtg executable
and do ./mrtg "your config file " ( Sans quotes )
I believe it defaults to /usr/local/mrtg-2/bin, but I could be mistaken.
I had an issue were a bogus copy of mrtg was installed on a development
machine and it was sym-linked in the path.
Speaking of which, verify that your path contains the path to your MRTG
files ( see above for default )
I would do a "locate mrtg | more" and see if there are any rogue copies
floating around...
I'm not a Linux expert by any means, so take my advice with the proper
seasoning ( grain of salt )
Good luck and let us know how you do...
Thanks
Larry
-----Original Message-----
From: Grover, Ross [mailto:RGrover at oldrepnatl.com]
Sent: Wednesday, January 08, 2003 10:45 AM
To: mrtg at list.ee.ethz.ch; 'Jean-Hugues BELPOIS'
Subject: [mrtg] Re: MRTG running, but no PNG graphs
Thanks again Larry. My attempt to edit /etc/profile (as per Eric) was a bust
(I'm still a bit green with RedHat, so I think I did it wrong). Taking your
advice I looked at my env variables and sure enough, it was still:
LANG="en_US.UTF-8"
...rather than:
LANG="en_US"
My fix was to edit the /etc/sysconfig/i18n file and change the LANG variable
there (then: source /etc/sysconfig/i18n). As you said, this removed the
first block of errors. Now I'm left with only one error (which repeats
several times) - no graphs yet, but considerable progress:
gd-png: fatal libpng error: Invalid filter type specified gd-png error:
setjmp returns error condition
When you re-installed your libpng/mrtg software, were you able to install an
RPM or did you compile from source?
Thanks again,
-ross
-----Original Message-----
From: Roberts, Larry [mailto:Larry.Roberts at expanets.com]
Sent: Tuesday, January 07, 2003 4:56 PM
To: 'Grover, Ross'; mrtg at list.ee.ethz.ch
Subject: RE: [mrtg] Re: MRTG running, but no PNG graphs
Ok,
Type env...
See what your LANG is equal to.
If you changed the file, but didn't log out and back in the change didn't
get implemented.
You can type those to commands at a command prompt to change the current
running shell variables and avoid a logout/login as well.
Thanks
Larry
-----Original Message-----
From: Grover, Ross [mailto:RGrover at oldrepnatl.com]
Sent: Tuesday, January 07, 2003 4:59 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: MRTG running, but no PNG graphs
Thanks for the help Eric and Larry. Unfortunately the problem still
persists:
When I installed RedHat the dependant RPM's were already installed:
gd-1.8.4-9
zlib-1.1.4-4
libpng-1.2.2-6
...as per Eric I added:
LANG='en_US'
export LANG
...to my /etc/profile
...and taking Larry's advice, I went ahead and re-downloaded/installed the
dependencies with a --force option:
gd-1.8.4-9
zlib-1.1.4-4
libpng-1.2.2-6
Still no luck, and the same errors:
Malformed UTF-8 character (unexpected continuation byte 0xa4, with no
preceding start byte) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 277.
(this error repeats many times with many, many different line numbers)
gd-png: fatal libpng error: Invalid filter type specified gd-png error:
setjmp returns error condition (this error repeats several times as well)
I'm feeling rather newbish here. I have MRTG running flawlessly with an
older version on another RedHat system (one that I had compiled rather than
RPM'd). Unfortunately we're trying to keep this particular system loaded
with 'easy' RPM's.
Any other ideas?
Thanks again,
--
Ross Grover
Network Administrator
Old Republic National Title Insurance
rgrover at oldrepnatl.com
-----Original Message-----
From: Roberts, Larry [mailto:Larry.Roberts at expanets.com]
Sent: Tuesday, January 07, 2003 11:44 AM
To: 'Grover, Ross'; mrtg at list.ee.ethz.ch
Subject: RE: [mrtg] Re: MRTG running, but no PNG graphs
The language fix will help the Line 277 error, however by default RH doesn't
install any of the PNG software.
I had the same issue and had to download all the separate libpng software,
install it, then re-install MRTG.
At least that's what happened with me.
The good news is that after redoing the MRTG install and adding the stuff
the Eric added, MRTG is running like a champ on RH8.0
Thanks
Larry
-----Original Message-----
From: Brander, Eric [mailto:Eric.Brander at ACS-INC.com]
Sent: Tuesday, January 07, 2003 11:41 AM
To: 'Grover, Ross'; mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: MRTG running, but no PNG graphs
LANG='en_US'
export LANG
Put that in your /etc/profile
Eric Brander
ACS
Texas CHIP Account
Sr. Communications Engineer - Information Systems Department 512.336.3331
Eric.Brander at acs-inc.com
-----Original Message-----
From: Grover, Ross [mailto:RGrover at oldrepnatl.com]
Sent: Tuesday, January 07, 2003 10:21 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] MRTG running, but no PNG graphs
I'm new to this mailing list, so I apologize if this topic has already been
covered. I have looked through many FAQ's, and posts for answers to this
question - I've found many others with this same issue, but no answers yet:
I'm running Linux RedHat (version 8), and have installed the
mrtg-2.9.25-1.7.2.i386.rpm
Regarding dependencies, I have the following installed: gd-1.8.4-9
zlib-1.1.4-4 libpng-1.2.2-6
-------------------
After the install, SNMP data is collected, and everything seems to be
running fine. But on the web page, no graphs are displayed. In my html
directory, the .png files are seemingly created, but only 75 bytes long.
Below are the errors I receive:
Malformed UTF-8 character (unexpected continuation byte 0xa4, with no
preceding start byte) at /usr/bin/../lib/mrtg2/locales_mrtg.pm line 277.
(this error repeats many times with different line numbers)
gd-png: fatal libpng error: Invalid filter type specified gd-png error:
setjmp returns error condition (this error repeats several times as well)
Any help would be greatly appreciated. Thanks gang,
--
Ross Grover
Network Administrator
Old Republic National Title Insurance
rgrover at oldrepnatl.com
--
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
--
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
--
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
--
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
--
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