Mrtg issue with snmp

Hi ,

i have snmp configured on vyos as below

vyos@router-env-prod-partner-rx28oml-org-72dzgmg# show service snmp
community neysa123 {
authorization ro
}
listen-address 100.64.16.42 {
}

snmpwalk shows the 64bit counters

#snmpwalk -v2c -c neysa123 100.64.16.42 IF-MIB::ifHCInOctets
IF-MIB::ifHCInOctets.1 = Counter64: 14244
IF-MIB::ifHCInOctets.2 = Counter64: 357194104944
IF-MIB::ifHCInOctets.3 = Counter64: 290697186
IF-MIB::ifHCInOctets.4 = Counter64: 15824379554
IF-MIB::ifHCInOctets.5 = Counter64: 0
IF-MIB::ifHCInOctets.6 = Counter64: 194491899
IF-MIB::ifHCInOctets.7 = Counter64: 1573565021

but on mrtg server when i try to plot the utilization graph using the cfgmaker command as below

cfgmaker --global ‘options[_]: bits,growright’ --snmp-options=::::2 neysa123@100.64.16.42 > vyos.cfg

i get the below error

–base: snmpget neysa123@100.64.16.42::::2::v4only for ifHighSpeed.1 → 10 Mb/s
–base: snmpget neysa123@100.64.16.42::::2::v4only for ifHCInOctets.1 → unknown
–base: check for HighspeedCounters failed … Dropping back to V1
–base: snmpget neysa123@100.64.16.42::::2::v4only for ifHighSpeed.2 → unknown Mb/s
–base: snmpget neysa123@100.64.16.42::::2::v4only for ifHCInOctets.2 → unknown
–base: check for HighspeedCounters failed … Dropping back to V1
–base: snmpget neysa123@100.64.16.42::::2::v4only for ifHighSpeed.3 → unknown Mb/s
–base: snmpget neysa123@100.64.16.42::::2::v4only for ifHCInOctets.3 → unknown
–base: check for HighspeedCounters failed … Dropping back to V1
–base: snmpget neysa123@100.64.16.42::::2::v4only for ifHighSpeed.4 → unknown Mb/s
–base: snmpget neysa123@100.64.16.42::::2::v4only for ifHCInOctets.4 → unknown
–base: check for HighspeedCounters failed … Dropping back to V1
–base: snmpget neysa123@100.64.16.42::::2::v4only for ifHighSpeed.5 → unknown Mb/s
–base: snmpget neysa123@100.64.16.42::::2::v4only for ifHCInOctets.5 → unknown
–base: check for HighspeedCounters failed … Dropping back to V1
–base: snmpget neysa123@100.64.16.42::::2::v4only for ifHighSpeed.6 → unknown Mb/s
–base: snmpget neysa123@100.64.16.42::::2::v4only for ifHCInOctets.6 → unknown
–base: check for HighspeedCounters failed … Dropping back to V1
–base: snmpget neysa123@100.64.16.42::::2::v4only for ifHighSpeed.7 → unknown Mb/s
–base: snmpget neysa123@100.64.16.42::::2::v4only for ifHCInOctets.7 → unknown
–base: check for HighspeedCounters failed … Dropping back to V1

and in the cfg file the interfaces appear commented as below

t# Created by 
# /usr/bin/cfgmaker --global "options[_]: bits,growright" --snmp-options=::::2 neysa123@100.64.16.42


### Global Config Options

#  for UNIX
# WorkDir: /home/http/mrtg

#  for NT
# WorkDir: c:\mrtgdata

#  for several Linux, like Debian, RHEL and it's derivatives
WorkDir: /var/www/html/mrtg

#  for others Linux
# WorkDir: /srv/http/mrtg

### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no
options[_]: bits,growright

### Interface 3 >> Descr: 'eth1' | Name: 'eth1' | Ip: '100.64.16.42' | Eth: '52-54-00-dd-93-f6' ###
### The following interface is commented out because:
### * has no ifSpeed property
# 
# Target[100.64.16.42_eth1]: #eth1:neysa123@100.64.16.42::::2
# noHC[100.64.16.42_eth1]: yes
# SetEnv[100.64.16.42_eth1]: MRTG_INT_IP="100.64.16.42" MRTG_INT_DESCR="eth1"
# MaxBytes[100.64.16.42_eth1]: 0
# Title[100.64.16.42_eth1]: Traffic Analysis for eth1 -- router-env-prod-partner-rx28oml-org-72dzgmg
# PageTop[100.64.16.42_eth1]: <h1>Traffic Analysis for eth1 -- router-env-prod-partner-rx28oml-org-72dzgmg</h1>
#               <div id="sysdetails">
#                       <table>
#                               <tr>
#                                       <td>System:</td>
#                                       <td>router-env-prod-partner-rx28oml-org-72dzgmg in VyOS Datacenter</td>
#                               </tr>
#                               <tr>
#                                       <td>Maintainer:</td>
#                                       <td>root</td>
#                               </tr>
#                               <tr>
#                                       <td>Description:</td>
#                                       <td>eth1  </td>
#                               </tr>
#                               <tr>
#                                       <td>ifType:</td>
#                                       <td>ethernetCsmacd (6)</td>
#                               </tr>
#                               <tr>
#                                       <td>ifName:</td>
#                                       <td>eth1</td>
#                               </tr>
#                               <tr>
#                                       <td>Max Speed:</td>
#                                       <td>0.0 bits/s</td>
#                               </tr>
#                               <tr>
#                                       <td>Ip:</td>
#                                       <td>100.64.16.42 (No DNS name)</td>
#                               </tr>
#                       </table>
#               </div>

if try to maually set the oid to target and rum mrtg i dont see any errors but the log for target is not being generated.

has anyone faced this issue.

Regards
senthilkumar

If you run the official vyos image on AWS you can contact support, and they will be able to help you troubleshoot

Try running tcpdump to verify whats actually being sent (and received) to/from your VyOS device?

Hi

I was able to get this sorted, it looks like incase of vm’s in KVM the nic speed is not reported which causes this issue, i was trying the vyos as a virtual instance in KVM. to fix this i had to change the command as below.

cfgmaker --global ‘options[_]: bits,growright’ --snmp-options=::::2 --zero-speed=1000000000 public@100.64.16.42 > vyos.cfg
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.