=== color text Ranges: shared net name first ip last ip max cur percent touch t+c t+c perc example1 10.0.0.1 - 10.0.0.20 20 11 55.000 0 11 55.000 example1 10.1.0.1 - 10.1.0.20 20 10 50.000 0 10 50.000 example2 10.2.0.1 - 10.2.0.20 20 8 40.000 0 8 40.000 example2 10.3.0.1 - 10.3.0.20 20 9 45.000 0 9 45.000 All networks 10.4.0.1 - 10.4.0.20 20 5 25.000 0 5 25.000 Shared networks: name max cur percent touch t+c t+c perc example1 40 21 52.500 0 21 52.500 example2 40 17 42.500 0 17 42.500 Sum of all ranges: name max cur percent touch t+c t+c perc All networks 100 43 43.000 0 43 43.000 === html ISC dhcpd dhcpd-pools output

ISC DHCPD status

Sum of all

name max cur free percent touch t+c t+c perc
All networks 100 43 57 43.000 0 43 43.000

Shared networks

name max cur free percent touch t+c t+c perc
example1 40 21 19 52.5 0 21 52.500
example2 40 17 23 42.5 0 17 42.500

Ranges

shared net name first ip last ip max cur free percent touch t+c t+c perc
example1 10.0.0.1 10.0.0.20 20 11 9 55 0 11 55.000
example1 10.1.0.1 10.1.0.20 20 10 10 50 0 10 50.000
example2 10.2.0.1 10.2.0.20 20 8 12 40 0 8 40.000
example2 10.3.0.1 10.3.0.20 20 9 11 45 0 9 45.000
All networks 10.4.0.1 10.4.0.20 20 5 15 25 0 5 25.000

More info at http://dhcpd-pools.sourceforge.net/
=== xml example1 10.0.0.1 - 10.0.0.20 20 11 0 9 example1 10.1.0.1 - 10.1.0.20 20 10 0 10 example2 10.2.0.1 - 10.2.0.20 20 8 0 12 example2 10.3.0.1 - 10.3.0.20 20 9 0 11 All networks 10.4.0.1 - 10.4.0.20 20 5 0 15 example1 40 21 0 19 example2 40 17 0 23 All networks 100 43 0 57 === csv "Ranges:" "shared net name","first ip","last ip","max","cur","percent","touch","t+c","t+c perc" "example1","10.0.0.1","10.0.0.20","20","11","55.000","0","11","55.000" "example1","10.1.0.1","10.1.0.20","20","10","50.000","0","10","50.000" "example2","10.2.0.1","10.2.0.20","20","8","40.000","0","8","40.000" "example2","10.3.0.1","10.3.0.20","20","9","45.000","0","9","45.000" "All networks","10.4.0.1","10.4.0.20","20","5","25.000","0","5","25.000" "Shared networks:" "name","max","cur","percent","touch","t+c","t+c perc" "example1","40","21","52.500","0","21","52.500" "example2","40","17","42.500","0","17","42.500" "Sum of all ranges:" "name","max","cur","percent","touch","t+c","t+c perc" "All networks","100","43","43.000","0","43","43.000" === json { "subnets": [ { "location":"example1", "range":"10.0.0.1 - 10.0.0.20", "first_ip":"10.0.0.1", "last_ip":"10.0.0.20", "defined":20, "used":11, "touched":0, "free":9, "percent":55, "touch_count":11, "touch_percent":55, "status":0 }, { "location":"example1", "range":"10.1.0.1 - 10.1.0.20", "first_ip":"10.1.0.1", "last_ip":"10.1.0.20", "defined":20, "used":10, "touched":0, "free":10, "percent":50, "touch_count":10, "touch_percent":50, "status":0 }, { "location":"example2", "range":"10.2.0.1 - 10.2.0.20", "first_ip":"10.2.0.1", "last_ip":"10.2.0.20", "defined":20, "used":8, "touched":0, "free":12, "percent":40, "touch_count":8, "touch_percent":40, "status":0 }, { "location":"example2", "range":"10.3.0.1 - 10.3.0.20", "first_ip":"10.3.0.1", "last_ip":"10.3.0.20", "defined":20, "used":9, "touched":0, "free":11, "percent":45, "touch_count":9, "touch_percent":45, "status":0 }, { "location":"All networks", "range":"10.4.0.1 - 10.4.0.20", "first_ip":"10.4.0.1", "last_ip":"10.4.0.20", "defined":20, "used":5, "touched":0, "free":15, "percent":25, "touch_count":5, "touch_percent":25, "status":0 } ], "shared-networks": [ { "location":"example1", "defined":40, "used":21, "touched":0, "free":19, "percent":52.5, "touch_count":21, "touch_percent":52.5, "status":0 }, { "location":"example2", "defined":40, "used":17, "touched":0, "free":23, "percent":42.5, "touch_count":17, "touch_percent":42.5, "status":0 } ] } === perfdata CRITICAL: dhcpd-pools: Ranges - crit: 3 warn: 2 ok: 0; | range_crit=3 range_warn=2 range_ok=0 10.4.0.1_r=5;4;8;0;20 10.4.0.1_rt=0 10.3.0.1_r=9;4;8;0;20 10.3.0.1_rt=0 10.2.0.1_r=8;4;8;0;20 10.2.0.1_rt=0 10.1.0.1_r=10;4;8;0;20 10.1.0.1_rt=0 10.0.0.1_r=11;4;8;0;20 10.0.0.1_rt=0 Shared nets - crit: 2 warn: 0 ok: 0; | snet_crit=2 snet_warn=0 snet_ok=0 'example1_s'=21;8;16;0;40 'example1_st'=0 'example2_s'=17;8;16;0;40 'example2_st'=0