Graphing DHCP Availability
Posted: Sun Aug 23, 2015 4:54 am
Hi All,
I wish to graph the number of available DHCP leases over time.
I have managed to find this script
https://exchange.nagios.org/directory/P ... pe/details
and have followed the instructions to get it working.
When I run the command ./check_nrpe -H x.x.x.x -c check_dhcp_scope
I get the standard response which is "1 Scopes OK"
So I looked at the script and activated one of the debug lines and now I can get the following out of the script
"x.x.x.x 80 584"
So, my question is this. How do I format the output from that script so that nagios can track and graph the data over time? Is there any trick or will it just take those numbers, store and graph it?
Thanks in advance,
Chris.
PS. My DHCP server is a standard windows 2012 R2 server. If there are some other scripts / features that will achieve my goal of graphing the DHCP availability I'm willing to give them a try. And I will probably hack that script to that it gives percentage free and used rather than number.
I wish to graph the number of available DHCP leases over time.
I have managed to find this script
https://exchange.nagios.org/directory/P ... pe/details
and have followed the instructions to get it working.
When I run the command ./check_nrpe -H x.x.x.x -c check_dhcp_scope
I get the standard response which is "1 Scopes OK"
So I looked at the script and activated one of the debug lines and now I can get the following out of the script
"x.x.x.x 80 584"
So, my question is this. How do I format the output from that script so that nagios can track and graph the data over time? Is there any trick or will it just take those numbers, store and graph it?
Thanks in advance,
Chris.
PS. My DHCP server is a standard windows 2012 R2 server. If there are some other scripts / features that will achieve my goal of graphing the DHCP availability I'm willing to give them a try. And I will probably hack that script to that it gives percentage free and used rather than number.