CPU and Memory utilisation not graphed on Enterasys switches #5974

Closed
breeman1 opened this Issue Feb 22, 2017 · 11 comments

Comments

Projects
None yet
3 participants
@breeman1

DO NOT DELETE THIS INFORMATION.

Please read this information carefully.

GitHub issues is for bugs, please do not post issues asking for help or how to do X, Y or Z.
You can use our irc channel ##librenms on freenode to ask questions or our community site.
If you have a feature request please post this on our community site.

Please confirm each of the sections below by putting an x in the box like [x].

  • [x ] Is your install up to date? Updating your install
    Please do not submit an issue if your install is not up to date within the last 24 hours or on a stable monthly release.
  • [x ] Please include all of the information between the ==================================== section of ./validate.php which you can run from the cli.
  • [x ] Please provide ALL info asked for here.
  • [x ] Please provide as much detail as possible.
  • [x ] Please do NOT post more than 10 lines of debug information here, use a pastebin service or GitHub Gists.

snap10
snap9

We have quite a number of Enterasys switches on our network and all of these device do not display or graph processor and memory information although it looks like they support that functionality according to this website; https://gtacknowledge.extremenetworks.com/articles/Q_A/HOW-TO-MONITOR-CPU-ON-SECURESTACKS-VIA-MIBS, https://community.extremenetworks.com/extreme/topics/viewing_system_utilization_on_the_securestacks and here; http://forums.cacti.net/viewtopic.php?f=12&t=42279

I have uploaded discovery, poller and snmpbulkwalk outputs for your reference
entera_discover.txt
entera_discover_mempool.txt
entera_discover_processors.txt
entera_poller.txt
entera_poller_mempool.txt
entera_poller_processors.txt
entera_snmpbulk.txt
I also noticed that the last two digits of the OID mentioned in the includes/definitions/enterasys.yaml file are swapped around when comparing this OID to one listed in websites stated above; see below,
snap11
I am not an expert on the internals of LibreNMS but I noticed from doing a quick glance of the discovery and poller outputs that it looks like the LibreNMS references the NETSWITCH-MIB and HOST-RESOURCES-MIB files when it looks like it ought to use the enterasys-resource-utilization-mib. I downloaded the Enterasys mibs here; http://www.extremenetworks.com/support/policies/mibs/ should you require them. Thanks.

@geordish

This comment has been minimized.

Show comment
Hide comment
@geordish

geordish Feb 22, 2017

Contributor

Your obfuscation of your SNMPwalk makes things a bit tricky :(

Created a patch at #5976. Mind testing?

Contributor

geordish commented Feb 22, 2017

Your obfuscation of your SNMPwalk makes things a bit tricky :(

Created a patch at #5976. Mind testing?

@breeman1

This comment has been minimized.

Show comment
Hide comment
@breeman1

breeman1 Feb 22, 2017

HI @geordish

I applied your patch however I am getting PHP errors when running a discovery command; see attachments below,
snap9

entera_snmpbulk_test.txt
entera_poller_test.txt
entera_discovery_test.txt

I tried not to obfuscate the snmpwalk too much this time :).

HI @geordish

I applied your patch however I am getting PHP errors when running a discovery command; see attachments below,
snap9

entera_snmpbulk_test.txt
entera_poller_test.txt
entera_discovery_test.txt

I tried not to obfuscate the snmpwalk too much this time :).

@geordish

This comment has been minimized.

Show comment
Hide comment
@geordish

geordish Feb 22, 2017

Contributor

Oops, used a deprecated function.

Try again.

Contributor

geordish commented Feb 22, 2017

Oops, used a deprecated function.

Try again.

@breeman1

This comment has been minimized.

Show comment
Hide comment
@breeman1

breeman1 Feb 23, 2017

It works @geordish, see below.
image
I see you chosen to use etsysResourceCpuLoad5sec for graphing Processors usage; I am not sure if it really adds any tangible value when troubleshooting as it changes quite rapidly. I think we can go for etsysResourceProcessLoad5min=1.3.6.1.4.1.5624.1.2.49.1.2.1.1.5 which looks more useful to me, provided it is not too much work to somehow graph all three time periods
image
The show system utilization storage command output two memory pool data, one for RAM/Memory and the other for Flash.
image
I would really appreciate it if you can also add the graphing of the Flash usage under Memory Pools.
Just for consistency, it would be great if you could add the CPU and Memory mini graphs in the top bar in the Device Overview screen so it looks similar to the Cisco router output as shown by arrows below;
image
Thank you for help in getting the CPU & Memory graphing sorted out on the Enterasys switches.

It works @geordish, see below.
image
I see you chosen to use etsysResourceCpuLoad5sec for graphing Processors usage; I am not sure if it really adds any tangible value when troubleshooting as it changes quite rapidly. I think we can go for etsysResourceProcessLoad5min=1.3.6.1.4.1.5624.1.2.49.1.2.1.1.5 which looks more useful to me, provided it is not too much work to somehow graph all three time periods
image
The show system utilization storage command output two memory pool data, one for RAM/Memory and the other for Flash.
image
I would really appreciate it if you can also add the graphing of the Flash usage under Memory Pools.
Just for consistency, it would be great if you could add the CPU and Memory mini graphs in the top bar in the Device Overview screen so it looks similar to the Cisco router output as shown by arrows below;
image
Thank you for help in getting the CPU & Memory graphing sorted out on the Enterasys switches.

@geordish

This comment has been minimized.

Show comment
Hide comment
@geordish

geordish Feb 23, 2017

Contributor

I've updated it with changes asked for.

Contributor

geordish commented Feb 23, 2017

I've updated it with changes asked for.

@breeman1

This comment has been minimized.

Show comment
Hide comment
@breeman1

breeman1 Feb 23, 2017

Thank you so much @geordish :), I will test it just now.
Shouldn't this line; $oid = '.1.3.6.1.4.1.5624.1.2.49.1.1.1.1.2'; change to $oid = '.1.3.6.1.4.1.5624.1.2.49.1.1.1.1.4 in the includes/discovery/processors/enterasys.inc.php file to reflect the fact that we are now using etsysResourceCpuLoad5min instead of etsysResourceCpuLoad5sec?

Thank you so much @geordish :), I will test it just now.
Shouldn't this line; $oid = '.1.3.6.1.4.1.5624.1.2.49.1.1.1.1.2'; change to $oid = '.1.3.6.1.4.1.5624.1.2.49.1.1.1.1.4 in the includes/discovery/processors/enterasys.inc.php file to reflect the fact that we are now using etsysResourceCpuLoad5min instead of etsysResourceCpuLoad5sec?

@geordish

This comment has been minimized.

Show comment
Hide comment
@geordish

geordish Feb 23, 2017

Contributor

That line just needs removing. It is old. Its gone now.

Contributor

geordish commented Feb 23, 2017

That line just needs removing. It is old. Its gone now.

@breeman1

This comment has been minimized.

Show comment
Hide comment
@breeman1

breeman1 Feb 23, 2017

All is good now except that the Internal Flash Storage graph is not being populated. It looks like the values are being read by the discovery function but the poller module reads them as zero. I have included the debug files for your reference.
entera_poller_test_storage.txt
entera_discovery_test_storage.txt

image
image

All is good now except that the Internal Flash Storage graph is not being populated. It looks like the values are being read by the discovery function but the poller module reads them as zero. I have included the debug files for your reference.
entera_poller_test_storage.txt
entera_discovery_test_storage.txt

image
image

@geordish

This comment has been minimized.

Show comment
Hide comment
@geordish

geordish Feb 23, 2017

Contributor
Contributor

geordish commented Feb 23, 2017

@breeman1

This comment has been minimized.

Show comment
Hide comment
@breeman1

breeman1 Feb 23, 2017

Ah, it works now :). Thanks again @geordish
image

Ah, it works now :). Thanks again @geordish
image

@laf laf closed this in #5976 Feb 23, 2017

laf added a commit that referenced this issue Feb 23, 2017

newdevice: Add CPU and memory for Entera devices #5974
* Add CPU and memory for Entera devices

* Renaming file for consistency

* split -> explode

* Added graphs to overview page, changed oid used for CPU, and added storage

* Remove uneeded code

* Fixed storage
@lock

This comment has been minimized.

Show comment
Hide comment
@lock

lock bot May 17, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed.

lock bot commented May 17, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed.

@librenms librenms locked as resolved and limited conversation to collaborators May 17, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.