Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.