czerwonk / junos_exporter

Exporter for devices running JunOS to use with https://prometheus.io/
MIT License
198 stars 81 forks source link

No Current output in Junos: 22.4R3.25 junos_exporter v0.7.2 #241

Open lange89 opened 8 months ago

lange89 commented 8 months ago

Hi,

After updating one of our routers to Junos: 22.4R3.25 we don't get any output of the junos_environment_pem_current anymore. It stays at 0 in Prometheus.

If I check the xml and JSON output on the router,

 show chassis environment pem | display json
 show chassis environment pem | display xml

the only strange thing I can see is that the current has now a different name.

In the old Junos it is:

<str3-dc-voltage>11.00</str3-dc-voltage>
<dc-current>8</dc-current>

At the newer Junos it is:

<str3-dc-voltage>12.00</str3-dc-voltage>
<str3-dc-current>9.00</str3-dc-current>