Network Switch Wizard Counters

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
kcarlson
Posts: 56
Joined: Thu Oct 20, 2016 9:17 am

Network Switch Wizard Counters

Post by kcarlson »

Hello,

I am attempting to graph our Calix E7 GPON equipment. When using the Network Switch/Router Wizard I am able to walk the equipment just fine. It pulls in the GPON ports and shows the correct port speed. I have attached a screenshot(RouterWizard) showing that. My issue appears to be the data that is being graphed on the bandwidth graphs. I have attached another screenshot showing this bandwidth graph. I don't believe that this is an accurate representation of the traffic going across the GPON. There are 16 active internet customers on here with the maximum amount of traffic being 30M. I have multiple GPON's that all show similar things, 10-30M of traffic.

I submitted a question on the Calix community page asking for advice. One piece of advice was to seek out if the wizard is using 32 or 64 bit counters to graph the traffic. I have never had to set this when using the wizard so was lost on where I would look to find this info. Any help would be appreciated.

Thanks!
You do not have the required permissions to view the files attached to this post.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Network Switch Wizard Counters

Post by gsmith »

Hi

Open the cfg file for your device in /etc/mrtg/conf.d.

Look for the "Target" keyword, then depending on what you see it will indicate
32 bit or 64 bit counter based on this documentation for MRTG:

SNMPv2c
If you have a fast router you might want to try to poll the ifHC* counters. This feature gets
activated by switching to SNMPv2c. Unfortunately not all devices support SNMPv2c yet. If it works,
this will prevent your counters from wraping within the 5 minute polling interval, since we now use
64 bit instead of the normal 32 bit.

Example:
Target[myrouter]: 2:public@router1:::::2

SNMPv3
As an alternative to SNMPv2c, SNMPv3 provides access to the ifHC* counters, along with encryption.
Not all devices support SNMPv3, and you will also need the perl Net::SNMP library in order to use it.
It is recommended that cfgmaker be used to generate configurations involving SNMPv3, as it will check
if the Net::SNMP library is loadable, and will switch to SNMPv2c if v3 is unavailable.

SNMP v3 requires additional authentication parameters, passed using the SnmpOptions[] per-target keyword.

Example: Target[myrouter]: 2:router1:::::3 SnmpOptions[myrouter]: username=>'user1'

noHC
Not all routers that support SNMPv2 or SNMPv3 provide the ifHC* counters on every interface. The noHC[]
per-target keyword signals that the low-speed counters ifInOctets and ifOutOctets should be queried instead.
cfgmaker will automatically insert this tag if SNMPv2 or SNMPv3 is specified but the ifHC* counters are unavailable.

Example: Target[myrouter]: #Bri0:router1:::::3 SnmpOptions[myrouter]: username=>'user1' noHC[myrouter]: yes

Let me know if this covers it for you.
Thanks
kcarlson
Posts: 56
Joined: Thu Oct 20, 2016 9:17 am

Re: Network Switch Wizard Counters

Post by kcarlson »

Hello,

I found my device in /etc/mrtg/conf.d. I do see the 'noHC" option set to 'yes' on some of the other interfaces on this equipment but not on the interfaces I am focusing on. I have attached output of one of the interface configs in this file. Am I missing it somewhere?

When I ran the wizard I was sure to use the 'snmpv2c' option.

Thanks!
You do not have the required permissions to view the files attached to this post.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Network Switch Wizard Counters

Post by gsmith »

Hi,

Your file looks fine. The documentation shows:

Code: Select all

SNMPv2c
If you have a fast router you might want to try to poll the ifHC* counters. This feature gets 
activated by switching to SNMPv2c. Unfortunately not all devices support SNMPv2c yet. If it works, 
this will prevent your counters from wraping within the 5 minute polling interval, since we now use 
64 bit instead of the normal 32 bit.

Example:

 Target[myrouter]: 2:public@router1:::::2
And your target is showing:

Target[172.16.7.72_30202]: 30202:public@172.16.7.72:161::::2

Unfortunately I don't see a way to confirm that MRTG is using the 64 bit counters.

I believe it is possible to include OIDs in the value for the "Target" keyword, so if you know
the OID for the 64 bit counter we could try to change the config file to use it.

Or, even better, you could leave your current config alone, and create a new service using the SNMP wizard to
monitor the 64 bit counter of the same port you think might be erroneous. To do this you would need to get the
OID of the 64 bit counter from the mib file for the device.

Let me know what you end up doing and what the result is.

Thanks