LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-02-2010, 09:12 AM   #1
fadu
LQ Newbie
 
Registered: Oct 2008
Location: Dhaka,Bangladesh
Posts: 7

Rep: Reputation: 0
Angry can anyone help me for snmp & mrtg???


i am running a gateway with red hat linux 9.0 and i want to configure mrtg in that gateway i did following but there is some problem they are following:
Installing the SNMP

# rpm –qa | grep snmp
# rpm –ivh net-snmp-utils-………………rpm

Configuring SNMP

# cd /etc/snmp
# mv snmpd.conf snmpd.conf.old
# vi snmpd.conf [new file]
rocommunity ropublic [any string]
or

#echo “rocommunity ropublic”>/etc/snmp/snmp.conf

# chkconfig snmpd on
# /etc/rc.d/init.d/snmpd start

# snmpwalk –v 1 –c ropublic localhost system (when I quering this the output is :Timeout:no response from localhost)
# snmpwalk –v 1 –c ropublic localhost interface(when I quering this the output is :Timeout:no response from localhost)


Step 2: Web Server

# rpm –qa | grep httpd
# rpm –ivh httpd-2………..rpm
# service httpd start

Step 3: MRTG

Installing MRTG

# rpm –ivh mrtg-2.10…………rpm [RH 9.0 Disk 02]
# vi /etc/sysconfig/i18n
Replace LANG=”en_US.UTF_8”
with LANG=”en_US”
# init 6

Making Configuration File:

# cfgmaker - -output=/etc/mrtg/shahin.cfg - - global “workdir: /var/www/html/traffic” - - global ‘options[ _ ]: growright, bits’ ropublic@localhost (when I quering this the output is :no file created)



please help me i don't know what to do...???i am novice please reply me in detail.......

Last edited by fadu; 02-02-2010 at 09:17 AM.
 
Old 02-02-2010, 09:47 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by fadu View Post
i am running a gateway with red hat linux 9.0 and i want to configure mrtg in that gateway i did following but there is some problem they are following:
Installing the SNMP

# rpm –qa | grep snmp
# rpm –ivh net-snmp-utils-………………rpm

Configuring SNMP

# cd /etc/snmp
# mv snmpd.conf snmpd.conf.old
# vi snmpd.conf [new file]
rocommunity ropublic [any string]
or

#echo “rocommunity ropublic”>/etc/snmp/snmp.conf

# chkconfig snmpd on
# /etc/rc.d/init.d/snmpd start

# snmpwalk –v 1 –c ropublic localhost system (when I quering this the output is :Timeout:no response from localhost)
# snmpwalk –v 1 –c ropublic localhost interface(when I quering this the output is :Timeout:no response from localhost)


Step 2: Web Server

# rpm –qa | grep httpd
# rpm –ivh httpd-2………..rpm
# service httpd start

Step 3: MRTG

Installing MRTG

# rpm –ivh mrtg-2.10…………rpm [RH 9.0 Disk 02]
# vi /etc/sysconfig/i18n
Replace LANG=”en_US.UTF_8”
with LANG=”en_US”
# init 6

Making Configuration File:

# cfgmaker - -output=/etc/mrtg/shahin.cfg - - global “workdir: /var/www/html/traffic” - - global ‘options[ _ ]: growright, bits’ ropublic@localhost (when I quering this the output is :no file created)



please help me i don't know what to do...???i am novice please reply me in detail.......
no point moving onto the configmaker if an snmp walk isnt yet working.

can you check that it is running??
 
  


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
Problem with MRTG and SNMP wooonix Linux - Networking 3 06-15-2009 09:59 PM
problem with mrtg and snmp ARCIS_house Linux - Newbie 1 04-29-2006 11:04 AM
snmp-mrtg ahmed4linux Linux - General 1 11-03-2004 07:27 AM
help with mrtg and snmp cristi1979 Linux - Networking 1 06-24-2003 08:49 PM
Snmp/mrtg hydro Linux - Software 1 06-15-2003 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:45 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