LinuxQuestions.org
Visit Jeremy's Blog.
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 07-10-2007, 10:03 AM   #1
manish_2479
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Rep: Reputation: 0
MRTG cfgmaker Error SNMPwalk problem


Wehn i run the MRTG cfgmaker command as below

Code:
cfgmaker  --output=/usr/local/etc/mrtg/web-02-mrtg.cfg --ifdesc=ip --ifref=descr --global LoadMIBs: /usr/local/share/snmp/mibs/UCD-SNMP-MIB.txt, /usr/local/share/snmp/mibs/TCP-MIB.txt "WorkDir: /usr/local/www/endai-mrtg/web-02" --global "Options[_]: bits,growright" snmpee2mrtg@web-02
The error Is as below

[html]Error:
can't resolve "/usr/local/share/snmp/mibs/UCD-SNMP-MIB.txt," to IP address
at /usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm line 426
SNMPWALK Problem for public@/usr/local/share/snmp/mibs/UCD-SNMP-MIB.txt,::::::v4only
at /usr/local/bin/cfgmaker line 918
WARNING: Skipping public@/usr/local/share/snmp/mibs/UCD-SNMP-MIB.txt,: as no info could be retrieved

Error:
can't resolve "/usr/local/share/snmp/mibs/TCP-MIB.txt" to IP address
at /usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm line 426
SNMPWALK Problem for public@/usr/local/share/snmp/mibs/TCP-MIB.txt::::::v4only
at /usr/local/bin/cfgmaker line 918
WARNING: Skipping public@/usr/local/share/snmp/mibs/TCP-MIB.txt: as no info could be retrieved

Error:
can't resolve "WorkDir" to IP address
at /usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm line 426
SNMPWALK Problem for public@WorkDir: /usr/local/www/endai-mrtg/web-02:::::v4only
at /usr/local/bin/cfgmaker line 918
WARNING: Skipping public@WorkDir: /usr/local/www/endai-mrtg/web-02 as no info could be retrieved[/html]Why snmpwalk goes to public secret word not the one which i have set as snmpee2mrtg.Now how to reslove this problem cause I wana use system CPU usage and MEM usage for different server remotely and for that I don't wana edit mrtg.cfg files for each of them.I wan a configure a global setup for all of this servers.
 
Old 07-10-2007, 11:06 AM   #2
Linville79
Member
 
Registered: Nov 2006
Location: Indiana, U.S.A.
Distribution: Red Hat Enterprise Linux, Fedora, CentOS
Posts: 134

Rep: Reputation: 16
Well, I've recently setup MRTG on multiple RHEL servers, and any time I received the "can't resolve" error, I knew that I didn't have proper name to IP resolution.

The easy fix is to simply create a host entry that maps your webserver IP address to the name that you are trying to use to reference it in the config file.

I use Apache and setup a virtual host for the MRTG server and gave it a name like:
mrtg_serv@domain.com

Then created the /etc/hosts entry similar to this:
192.168.0.1 mrtg_serv@domain.com

That took care of any "can't resolve" errors that I received.
 
Old 07-10-2007, 02:22 PM   #3
manish_2479
LQ Newbie
 
Registered: Aug 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Well I have edited that /etc/hosts file but still I am getting same kind of error.Is there any more thing I need to check.If I don't use that MIB files then I am able to create mrtg.cfg but if I use that MIB files to load then it gives me error.
 
Old 07-10-2007, 03:48 PM   #4
Linville79
Member
 
Registered: Nov 2006
Location: Indiana, U.S.A.
Distribution: Red Hat Enterprise Linux, Fedora, CentOS
Posts: 134

Rep: Reputation: 16
Here is the How-To that I read through before beginning my work.
Linux MRTG Configuration How-To
Following it step-by-step (on a RHEL server) was quick and easy.

For getting additional information such as CPU, Disk, RAM usage, I found some simple PERL scripts that I was able to modify. I got the script templates from the Sourceforge project.
http://mrtg-pme.sourceforge.net/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cfgmaker for Mrtg pkrishna10 Linux - Newbie 0 12-05-2004 02:57 AM
cfgmaker for mrtg. pkrishna10 Linux - Wireless Networking 0 12-05-2004 02:02 AM
mrtg cfgmaker generates invalid file sealnose Linux - Networking 0 05-01-2004 04:47 PM
mrtg cfgmaker tarak4u Linux - Networking 2 03-06-2004 04:59 PM
MRTG cfgmaker need help G-Fox Linux - Networking 2 10-03-2003 08:52 AM

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

All times are GMT -5. The time now is 09:25 PM.

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