Skip to content

A simple script to collect WAS-110 stats from the OPNsense firewall and consume them via Prometheus.

Notifications You must be signed in to change notification settings

pyrodex/was-110-opn-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

alt text

  • Now you can validate the cron is running by monitoring the /var/log/was-110-stats.log file.

Enjoy!

About

A simple script to collect WAS-110 stats from the OPNsense firewall and consume them via Prometheus.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages