Setup custom script to poll data

Hi,

I have a python script that polls status of IPSec tunnels on Palo alto firewalls. I need some assistance with how can I have that setup in LibreNMS. Essentially this is what I am looking for -

  1. Where do I need to run the custom script.
  2. How do I setup graphs for the metrics polled from the script.
  3. How do I setup alerting on these metrics.

Any help will be appreciated.

Thanks!

One option would be to use extend within net-snmp to point to your script, then use the custom OID feature for the device to add that new metric. Graphs will then be automatically generated. However you have to add the custom OID to each device you’d want this on.

So unfortunately those metrics are not exposed using SNMP, I am polling metrics using the PA firewall REST API.

net-snmp can run scripts that return data, net-snmp then responds with that data.

Basically it would invoke your custom script but expose the data via snmp.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.