Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported data ifPhysAddress from agents #8

Open
chrisho95 opened this issue Dec 23, 2021 · 1 comment
Open

Exported data ifPhysAddress from agents #8

chrisho95 opened this issue Dec 23, 2021 · 1 comment

Comments

@chrisho95
Copy link

Hi,

I'm trying to pool the information of the mac addresses of the different devices from Horus.

The polling goes well but the agents do not expose the results.

Looks like Horus doesn't recognize the "PhysAddress" data type.

"ID": 39,
 "Name": "ifPhysAddress",
 "Oid": ".1.3.6.1.2.1.2.2.1.6",
 "Description": "The interface address at the protocol layer immediately below the network layer in the protocol stack.",
 "PollingFrequency": 0,
 "LastPolledAt": null,
 "Active": true,
 "ExportAsLabel": false,
 "ExportedName": "if_phys_address",
 "PostProcessors": []
}

Reponse:

[I] 2021-12-14 09:43:42.409962 - CdK5EptWH@3 - con#2: res map for group indexed oid .1.3.6.1.2.1.2.2.1.6: 97 metrics
[I] 2021-12-14 09:43:42.410015 - CdK5EptWH@3 - con#2: done walking indexed oid .1.3.6.1.2.1.2.2.1.6 [ifPhysAddress]: took 14ms

{"oid":".1.3.6.1.2.1.2.2.1.6","name":"ifPhysAddress","exported_name":"if_phys_address","description":"The interface address at the protocol layer immediately below the network layer in the protocol stack.","value":"\u0000\ufffd\ufffdﻫ","index":"36044800"}

The type of value "ifPhysAddress" is PHYSADDRESS.

BR,

Christophe.

@vma
Copy link
Collaborator

vma commented Dec 29, 2021

Hi,
The PhysAddress type is not implemented by the underlying gosnmp library.

You can create a feature request there to add this type (their readme has instructions on how to do that).

Another possibility would be to add a specific post-processor for this metric to convert the output to a mac address. I'll see what I can do as unfortunately I don't have access to a test environment anymore. It would help me a lot if you can send me by PM the output of horus-query for this specific query at debug level -d3 with the corresponding tcpdump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants