Hello NAV guys,
We are using NAV for some time. Right now we have some FS switches in the test and we noticed we can't read some of the stuff from switches like CPU, temperature or power.
They have sent us
_*Tem:1.3.6.1.4.1.52642.2.1.45.1.1.11.1.3
Power:1.3.6.1.4.1.52642.2.1.45.1.1.6.1.3*_
Is there a way we can add these values to NAV so the system can read these values for CPU, temerature etc. Could not find it on the documentation, maybe missed it. Tnx in advance,
Vuk _**_
On Mon, 16 Aug 2021 15:18:20 +0200 Vuk Kadija v.kadija@aginion.com wrote:
Hello NAV guys,
We are using NAV for some time. Right now we have some FS switches in the test and we noticed we can't read some of the stuff from switches like CPU, temperature or power.
They have sent us
_*Tem:1.3.6.1.4.1.52642.2.1.45.1.1.11.1.3
Power:1.3.6.1.4.1.52642.2.1.45.1.1.6.1.3*_
Is there a way we can add these values to NAV so the system can read these values for CPU, temerature etc. Could not find it on the documentation, maybe missed it. Tnx in advance,
There are two ways to go about this:
1. Extend ipdevpoll's system statistics collection plugin, which is poorly documented (if at all).
or
2. View these values as "environment sensors", and write a plugin to register them in NAV for devices that provide them. This is documented in [1].
The `statsystem` [2] ipdevpoll plugin collects data and dispatches it to Graphite for mainly these items:
* System bandwidth * System CPU utilization or load numbers (which mean different things) * System memory * System uptime * Power-over-Ethernet consumption data
While system uptime and PoE consumption are only ever collected from standard MIBs, the three other types of data can be collected from custom MIB implementations, known as MibRetrievers in ipdevpoll. These need to support certain interfaces to be able to provide statsystem with data.
Ideally, the lists of MIB implementations statsystem uses should be configurable, but for now they are hardcoded in [3].
It's also much easher to make proper implementation if you have the full MIB definitions from FS, and not just the OIDs of two specific objects.
[1] https://nav.readthedocs.io/en/latest/hacking/adding-environment-probe-suppor... [2] https://github.com/Uninett/nav/blob/master/python/nav/ipdevpoll/plugins/stat... [3] https://github.com/Uninett/nav/blob/ea07f045f7647583c999f46ff28492d6021a7594...