PaloAlto PANOS connection rate graph

I would like graph the connection rate for our PA3020 firewalls.

show session info
<snip>
New connection establish rate:                   32 cps
</snip>

I have MIBS available.

Suggestions how to go about this are very welcome.

Hi @SandMouse
It depends on the type of SNMP data of this OID.

  • If it is a gauge
  • If the mib is PAN-COMMON-MIB

Then you can add it directly to the YAML file describing the sensors of PaloAlto devices :
includes/definitions/discovery/panos.yaml

You could add, just at the line below sensors:

        count:
            data:
                -
                     oid: yourTextualOID
                     num_oid: '.yourNumericalOID.{{ $index }}'
                     descr: 'YourDecription'

If it is a Counter SNMP value, then there is no way other than PHP code to add the sensor.

Some docs to help :
https://docs.librenms.org/Developing/os/Health-Information/
https://docs.librenms.org/Developing/Sensor-State-Support/

Thank you.