This script was written to help pull data from the WAS-110 and insert it into node_exporter textfile exports for Prometheus to consume.
Steps:
- Requires SSH key to be added to the WAS-110 so you will need to generate one and place it on the authorized_keys file on the WAS-110.
- Copy the contents of this repo to the /root/was-110 directory, make it if needed.
- Copy the actions_was110.conf to /usr/local/opnsense/service/conf/actions.d directory on your firewall
- You'll need to restart the configd service (service configd restart)
- Now you can navigate to the OPNsense UI and go to System->Settings->Cron and add the WAS-110 job via the drop down for the time you prefer.
- Now you can validate the cron is running by monitoring the /var/log/was-110-stats.log file.
Enjoy!