Alert based upon LAN-to-LAN ipsec tunnels

LibreNMS correctly reports/graphs on my LAN-to-LAN tunnels. I would like to alert on either tunnel being down or tunnel count < X.

Checking in the database select * from ipsec_tunnels does not return any data.