Hi all
I'm using NAV in an Italian Hospital, where all networking switches are from Enterasys (now Extreme Networks).
Regarding the following interface counters:
ifInMulticastPkts ifInBroadcastPkts ifOutMulticastPkts ifOutBroadcastPkts
is it possible to add the graphs of the above counters on switch port details ? At the moment I have traffic, unicast, errors and discarded.
Thanks
Alex
On Thu, 19 Mar 2015 19:58:23 +0100 AlexDF a.delferro@bitmagic.it wrote:
I'm using NAV in an Italian Hospital, where all networking switches are from Enterasys (now Extreme Networks).
Regarding the following interface counters:
ifInMulticastPkts ifInBroadcastPkts ifOutMulticastPkts ifOutBroadcastPkts
is it possible to add the graphs of the above counters on switch port details ? At the moment I have traffic, unicast, errors and discarded.
Hi Alex,
These counters aren't collected at the moment, which would be a prerequisite for displaying them as graphs.
The currently collected counters are listed in the OTHER_COUNTERS list in python/nav/ipdevpoll/plugins/statports.py .
More interface counters can be added to that list, but to display them, the template templates/ipdevinfo/port-details.html needs to be modified to show them under 'Activity graphs'.
You can do this yourself, if you're up to it, or you can request a new feature at https://bugs.launchpad.net/nav/+filebug .
Many thanks Morten for the answer. Now my NAV installation includes graphs for broadcast & multicast packets per second.
I modified the following files:
/usr/share/nav/templates/ipdevinfo/port-details.html /usr/share/pyshared/nav/ipdevpoll/plugins/statports.py /usr/share/pyshared/nav/web/ipdevinfo/views.py /usr/share/pyshared/nav/web/ipdevinfo/utils.py
to include the references to the new counters.
Furthermore I added the rows regarding the new oid objects on snmpoid db table.
As a reference regarding Enterasys hardware (in this case matrix N7 firmware version 06.12.08.0003), I noticed that if you make an snmp query for the ifOutMulticastPkts counter, the switch incorrectly answers with the ifOutBroadcastPkts value, instead ifHCOutMulticastPkts is fine, so I implemented in statports.py the same logic as HC_OCTET_COUNTERS (= choose HC if available).
Alex
On Sun, 22 Mar 2015 13:10:26 +0100 AlexDF a.delferro@bitmagic.it wrote:
Many thanks Morten for the answer. Now my NAV installation includes graphs for broadcast & multicast packets per second.
I modified the following files:
/usr/share/nav/templates/ipdevinfo/port-details.html /usr/share/pyshared/nav/ipdevpoll/plugins/statports.py /usr/share/pyshared/nav/web/ipdevinfo/views.py /usr/share/pyshared/nav/web/ipdevinfo/utils.py
to include the references to the new counters.
Excellent :-)
Alex, would you be willing to contribute your changes back to NAV, in the form of a GPL-licensed patch?
No problem, send me an email about what I have to do.
AlexDF
On 23/03/2015 09:30, Morten Brekkevold wrote:
On Sun, 22 Mar 2015 13:10:26 +0100 AlexDF a.delferro@bitmagic.it wrote:
Many thanks Morten for the answer. Now my NAV installation includes graphs for broadcast & multicast packets per second.
I modified the following files:
/usr/share/nav/templates/ipdevinfo/port-details.html /usr/share/pyshared/nav/ipdevpoll/plugins/statports.py /usr/share/pyshared/nav/web/ipdevinfo/views.py /usr/share/pyshared/nav/web/ipdevinfo/utils.py
to include the references to the new counters.
Excellent :-)
Alex, would you be willing to contribute your changes back to NAV, in the form of a GPL-licensed patch?
On Mon, 23 Mar 2015 11:58:13 +0100 Alessandro Del Ferro a.delferro@bitmagic.it wrote:
On 23/03/2015 09:30, Morten Brekkevold wrote:
Alex, would you be willing to contribute your changes back to NAV, in the form of a GPL-licensed patch?
No problem, send me an email about what I have to do.
What would be the quickest route for you depends on which tools you are accustomed to using.
Our hacker guide [1] suggests forking our Bitbucket mirror and making a pull request there.
Another viable option is to just produce a patch using the diff tool, then file a new bug report and attach the patch file to it.
[1] https://nav.uninett.no/doc/latest/hacking/hacking.html#submitting-patches