NetApp / harvest

Open-metrics endpoint for ONTAP and StorageGRID
https://netapp.github.io/harvest/latest
Apache License 2.0
150 stars 37 forks source link

NetApp IP MC - Switch monitoring or Cisco switch in general #3286

Open BrendonA667 opened 1 week ago

BrendonA667 commented 1 week ago

Is your feature request related to a problem? Please describe. Feature request if this is possible

Describe the solution you'd like If possible any metric from the Cisco Cluster switches specially from the Metro Cluster. We had and issue with one of the replication port where down and ONTAP did not reported this. Case is open for investigation but independent from this it would be a huge improvement when harvest could collect some data from the supported/recommended Cisco switches.

Additional context From my point of view harvest collects at the moment all possible metrics that are currently available in ONTAP. If this could be extended to Cisco switches this would be awesome.

cgrinds commented 1 week ago

While we evaluate the feasibility of adding a Cisco switch collector to Harvest, I gathered a list of existing open-source Cisco exporters. Have you tried any from the list below @BrendonA667?

You should be able to use one of these to:

Looks like most of the Cisco switches do not provide a REST API and instead, the collectors listed below, gather the metrics via ssh. Some of the Nexus switches provide a REST API. Most of the projects below have not been updated in a few years which may mean they are abandoned or feature complete.

We have not tried them and can not vouch for their quality.

BrendonA667 commented 4 days ago

Hi @cgrinds Thank you for your feedback. We will discuss this if we use one of these exporters dedicated for Cisco or like a generic one with SNMP. My idea behind this request is, that since ONTAP already monitor the switches, there should (in my small world) any informations that Harvest could collect

cgrinds commented 3 days ago

hi @BrendonA667 understood. I like your idea. Can you see if this returns anything for you? Replacing $ip, $user, $pass with correct values.

curl -sk -u$user:$pass 'https://$ip/api/storage/switches?fields=*'
BrendonA667 commented 1 day ago

Hi @cgrinds with the API api/network/ethernet/switches?fields=* there is like the CLI output but unfortunately nothing which adds a big value regarding performance or the port status. I'm not sure how ONTAP collects information which is showed in the system health alert section when for example a port goes down.