LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-29-2007, 04:20 AM   #1
spice_prash
LQ Newbie
 
Registered: Nov 2006
Posts: 14

Rep: Reputation: 0
SNMP error in MRTG Configuration


Hi Friends,

I've a setup of mrtg server on Fedora Core 6 in my network. I also have a ubuntu server 7 as my proxy server with dansguardian in my network.

Basically we are an ISP. We have lots of routers and Aps in our network. I've configured MRTG to monitor bandwidth utilisation of our network.

Now the problem is, besides every access point and router I am getting snmp error for ubuntu server in my mrtg.

Below is my snmpd.conf configuration.



SNMPd.CONF configuration


Access Control
###############################################################################


# sec.name source community
com2sec local localhost public
com2sec elecon-ext 59.160.XX.XX/27 public
com2sec elecon-int 172.16.32.0/23 public
#com2sec readonly default public
#com2sec readwrite default private

####
# Second, map the security names into group names:

# sec.model sec.name

group MyRWGroup v1 local
group MyROGroup_1 v2c elecon-ext
group MyROGroup_2 v1 elecon-int



# incl/excl subtree mask
view all included .1 80


# context sec.model sec.level match read write notif
access MyROGroup_1 "" v2c noauth exact all none none
access MyROGroup_2 "" v1 noauth exact all none none
access MyRWGroup "" v1 noauth exact all all none


###################################################################


Below is my MRTG configuration for Ubuntu Server :

###################################################################


HtmlDir: /var/www/html/mrtg
ImageDir: /var/www/html/mrtg
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg


Directory[elecon]: elecon_gateway
Target[elecon]: 1: public@59.160.XX.XX
MaxBytes[elecon]: 1250000
Title[elecon]: Elecon Gateway Traffic Analysis
PageTop[elecon]: <H1>Elecon Gateway Statistics </H1>
Options[elecon]: growright,bits
ShortLegend[elecon]: b/s
XSize[elecon]: 600
YSize[elecon]: 150


###################################################################


After shooting command ,

mrtg /etc/mrtg/mrtg.cfg

I am getting this error ,

SNMP Error:
no response received
SNMPv1_Session (remote host: "59.160.XX.XX" [59.160.XX.XX].161)
community: "public"
request ID: 1437386372
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490
SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime sysName on public@59.160.XX.XX::::::v4only
at /usr/bin/mrtg line 2035
Tuesday, 29 May 2007 at 14:28: WARNING: skipping because at least the query for ifInOctets.1 on 59.160.XX.XX did not succeed
Tuesday, 29 May 2007 at 14:28: WARNING: no data for ifInOctets&ifOutOctets: public@59.160.XX.XX. Skipping further queries for Host 59.160.XX.XX in this round.
Tuesday, 29 May 2007 at 14:28: ERROR: Target[elecon][_IN_] ' $target->[21]{$mode} ' did not eval into defined data
Tuesday, 29 May 2007 at 14:28: ERROR: Target[elecon][_OUT_] ' $target->[21]{$mode} ' did not eval into defined data



Sorry for the long post guys.


Please Help me out. It is very crucial time for me because most of my users are behind this ubuntu server and I am not getting the amount of bandwidth they are using right now.

Regards,
Prashant Soni.

Last edited by spice_prash; 05-29-2007 at 04:30 AM.
 
Old 05-29-2007, 04:33 AM   #2
spice_prash
LQ Newbie
 
Registered: Nov 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Hey I forgot to tell u guys tht, after configuring snmp I've applied below command to check the output of snmp.

snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex

the resuls were ,

IP-MIB::ipAdEntIfIndex.59.160.XX.XX = INTEGER: 2
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.172.16.32.100 = INTEGER: 3


But still I am not able to get snmp reply of this server from mrtg server.

Please help !!!

Last edited by spice_prash; 06-15-2007 at 05:30 AM.
 
  


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
SNMP error when running MRTG: no response zhgalaxy Linux - General 2 04-02-2004 04:33 AM
mrtg and snmp configuration problemae shinacalypse Linux - Software 1 03-19-2004 10:20 PM
error message when run MRTG: SNMP error zhgalaxy Linux - Newbie 0 02-18-2004 12:08 PM
snmp error in mrtg AZIMBD03 Linux - Newbie 1 01-26-2004 08:18 PM
snmp error in mrtg AZIMBD03 Linux - Networking 0 01-20-2004 04:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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