LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-05-2004, 08:08 AM   #1
debloxie
Member
 
Registered: Jul 2003
Posts: 153

Rep: Reputation: 30
Question help with MRTG graphs!!


HI there,

am trying out MRTG for the first time. i have installed all the need tools and libraries, gd, zlib, libpng etc and also MRTG itself.

i also have installed SNMP and tested it: when i run the following command it gives:

[root@mail Documents]# snmpwalk -v 2c localhost -c public system
sysDescr.0 "Linux 2.4.22"
sysObjectID.0 netSnmpAgentOIDs.10
sysUpTime.0 133046
sysContact.0 root <root@mail.casttechnologies.com>
sysName.0 mail.casttechnologies.com
sysLocation.0 Lagos, Nigeria
sysORLastChange.0 14
sysORID.1 ifMIB
sysORID.2 snmpMIB
sysORID.3 tcpMIB
sysORID.4 ip
sysORID.5 udpMIB
sysORID.6 vacmBasicGroup
sysORID.7 snmpFrameworkMIBCompliance
sysORID.8 snmpMPDCompliance
sysORID.9 usmMIBCompliance
sysORDescr.1 The MIB module to describe generic objects for network interface sub-layers
sysORDescr.2 The MIB module for SNMPv2 entities
sysORDescr.3 The MIB module for managing TCP implementations
sysORDescr.4 The MIB module for managing IP and ICMP implementations
sysORDescr.5 The MIB module for managing UDP implementations
sysORDescr.6 View-based Access Control Model for SNMP.
sysORDescr.7 The SNMP Management Architecture MIB.
sysORDescr.8 The MIB for Message Processing and Dispatching.
sysORDescr.9 The management information definitions for the SNMP User-based Security Model.
sysORUpTime.1 11
sysORUpTime.2 11
sysORUpTime.3 11
sysORUpTime.4 11
sysORUpTime.5 11
sysORUpTime.6 11
sysORUpTime.7 14
sysORUpTime.8 14
sysORUpTime.9 14

i shud think this means my snmp is running well . Mind u, this is a local computer connected on a network. the snmp device here is just my network card (Realtek 8139 c+).

i then created the working dir /var/www/mrtg

and the mrtg.cfg dit /home/mrtg/cfg/. i then ran the following

[root@mail Documents]# /usr/local/mrtg-2/bin/cfgmaker --global 'WorkDir: /var/www/mrtg' --global 'Options[_]:bits,growright' --output /home/mrtg/cfg/mrtg.cfg public@192.168.0.68
--base: Get Device Info on public@192.168.0.68:
--base: Vendor Id:
--base: Populating confcache
--snpo: confcache public@192.168.0.68: Descr lo --> 1
--snpo: confcache public@192.168.0.68: Descr eth0 --> 2
--snpo: confcache public@192.168.0.68: Type 24 --> 1
--snpo: confcache public@192.168.0.68: Type 6 --> 2
--snpo: confcache public@192.168.0.68: Ip 127.0.0.1 --> 1
--snpo: confcache public@192.168.0.68: Ip 192.168.0.68 --> 2
--snpo: confcache public@192.168.0.68: Eth --> 1
--snpo: confcache public@192.168.0.68: Eth 00-08-02-d0-66-b5 --> 2
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
--base: Walking ifSpeed
--base: Writing /home/mrtg/cfg/mrtg.cfg

and then:

[root@mail Documents]# /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg
libpng warning: Application was compiled with png.h from libpng-1.2.5
libpng warning: Application is running with png.c from libpng-1.0.15
gd-png: fatal libpng error: Incompatible libpng version in application and library
ERROR: Skipping webupdates because rateup did not return anything sensible
WARNING: rateup died from Signal 11
with Exit Value 0 when doing router '192.168.0.68_2'
Signal was 11, Returncode was 0

what do u think is the problem, it didnt display any web pages in the work dir except png images of MRTG.

pls i need help

debloxie
 
Old 10-05-2004, 09:01 AM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Best I can tell, it looks like mrtg was compiled against libgd/libpng libraries that are incompatible for some reason. I know, duh! But your problem could be something as simple as a missing libpng/libgd .so link in /usr/lib. Because everythng else you've done prior to running mrtg looks correct. i.e. snmpwalk, cfgmaker, etc...

You don't mention your linux distro, but if its RPM based like redhat, I would load that version of mrtg. Otherwise, you will probably have to recompile mrtg against the gd/png libraries.
 
Old 10-05-2004, 09:45 AM   #3
debloxie
Member
 
Registered: Jul 2003
Posts: 153

Original Poster
Rep: Reputation: 30
Ho Scowles,

i bet thats where the problem is coming from. i figure that the libpng versions that i installed and that of the mrtg package were different. i have installed version 1.0.5 instead of at least 1.2.5 of that on the mrtg package.

and again i noticed that maybe the last step of the installation of the libpng wasnt done right coz i done this:

If you don't have libpng installed

wget http://planetmirror.com/pub/sourcefo...-1.0.15.tar.gz
gunzip -c libpng-*.tar.gz |tar xf -
rm libpng-*.tar.gz
mv libpng-* libpng
cd libpng
make -f scripts/makefile.std CC=gcc ZLIBLIB=../zlib ZLIBINC=../zlib
rm *.so.* *.so
cd ..

but the the second to the last statement containing the rm gave this:

[root@mail libpng]# rm *.so.* *.so
rm: cannot lstat `*.so.*': No such file or directory
rm: cannot lstat `*.so': No such file or directory

i would want to assume that ur a guru in this mrtg stuff, can u give me a good guide to this thing well coz i wud want to be able to generate graphs for different machines, put them on a webserver (apache), have the database of the various machines (clients) something like MySQL and PHP etc.

thanks for everything and awaiting ur reply

debloxie
 
Old 10-05-2004, 10:39 AM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I haven't manually compiled mrtg in years, so I don't know if I can help you. I now use redhat supplied mrtg RPM's which are compiled against the previously installed png/gd libraries. In fact, the redhat rpm's even install all the apache aliases , RRD integration and a cron script that runs mrtg every 5 minutes. All I do is run cfgmaker against the devices I want to monitor/graph. Sorry, I know this doesn't help you with your current problem, but I don't have the time to try and compile mrtg and all the libraries to see where your error is occuring.

If I were in your shoes, I would either try:

1) To switch to a rpm based linux distro

2) If option 1 is not a choice, then try to compile all the png/gd libraries from scratch and make sure you pay attention to the ./configure script options used to compile these libraries. Especially the installation path. Then when you run ./configure for mrtg, make sure you specify the library installtion paths so that the resulting binaries (like rateup) know how to get to these gd/png libraries.

Good luck!
 
Old 10-05-2004, 11:13 AM   #5
debloxie
Member
 
Registered: Jul 2003
Posts: 153

Original Poster
Rep: Reputation: 30
Dear Scowles,

i am running mandrake 9.2 wch i think is an RPM based distro.

i think i ll get the RPMs for this distro and toggle with it a lil bit. i was told that that wud be so much of a fuss than doing it manually. and since this will do all i need, no problem

Thanks

i ll get back to u

debloxie
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reversing rrdtool graphs whysyn Linux - Software 0 06-05-2005 04:31 PM
SNMP - graphs vladimir-dk *BSD 1 09-16-2004 09:06 AM
software for graphs and charts alainhenry Linux - Software 2 07-06-2004 06:50 AM
Strange Graphs karunesh Linux - Networking 0 01-24-2004 11:49 AM
Perl cgi and graphs berry Programming 2 05-22-2002 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration