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.