OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Monitoring enhancement
« previous next »
  • Print
Pages: [1]

Author Topic: Monitoring enhancement  (Read 3150 times)

va176thunderbolt

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 4
  • Nothing is more permanent than a temp solution
    • View Profile
Monitoring enhancement
« on: February 04, 2018, 03:55:13 am »
Could the monitoring be enhanced to include/graph the unbound statistics and dhcp pool(s) utilization?

The dhcp pool utilization would help where I've deployed "guest" networks (churches and "free" stores) so I could if it's trending up so I can change the subnet before there's a problem.

The unbound stats would be useful for tuning.

Thanks!
Logged
AMD Ryzen 3 1200
GA-A320M-S2H
8GB DDR4
Intel X550-T2 10GB
32GB Industrial SSD

Shuttle SZ270R8
Intel i5-6500
8gb ram
120gb ssd
Intel x540-t2 10gb nic

faunsen

  • Full Member
  • ***
  • Posts: 102
  • Karma: 17
    • View Profile
Re: Monitoring enhancement
« Reply #1 on: February 08, 2018, 09:53:59 am »
I'm not a DHCP expert but I think you could create a script and add it to the Monit as described in the Monit HowTo (look for the CheckIPMI.sh script).

CheckDHCP.sh
Code: [Select]
#!/bin/csh

set MaxLeaseCount = 500

set LeaseCount = `grep -c "binding state active" /var/dhcpd/var/db/dhcpd.leases`
echo "LeaseCount: $LeaseCount"
if ( $LeaseCount >= $MaxLeaseCount ) then
   exit 1
endif
exit 0
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Monitoring enhancement
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2