Forum Discussion
No active Leases in Windows DHCP gui , but when check over Command Shell there are active Leases
Hello ,
We want to Monitor active Leases in DHCP with CheckMK.
It works so far .
We create an own Scope . In this Scope there are two IP Adresses .
When an Server becomes one of this both IP Adresses the we become an active Lease .
This Lease brings the Monitoring Software to an Alarm .
We setup an Leasetime for this Lease under the Scope Settings to 5 minutes.
The Target should be that the Monitoring Software brings an Alarm when one of this two Leases or both are aktive.
But we want to become back an green ( good ) Monitoring Message , when the Server who becomes the IP Address is shut down and the Lease Time from 5 Minutes are gone .
Means then there are no active Leases at all .
But now our Problem .
We shut down the Server and after 5 Minutes aktive leases under DHCP Server was empty .
BUT
When i put in this command : “netsh dhcp server show mibinfo” then i become back this info :
C:>netsh dhcp server show mibinfo
MIBCounts:
Discovers = 5167.
Offers = 5167.
Delayed Offers = 0.
Requests = 246250.
Acks = 246422.
Naks = 7.
Declines = 0.
Releases = 63.
ServerStartTime = Freitag, 5. Juli 2024 23:00:21
Scopes = 24.
Scopes with Delay configured= 0.
Subnet = x.x.x.x.
No. of Addresses in use = 1.
No. of free Addresses = 1.
No. of pending offers = 0.
Means the System think that there is already an active IP but the GUI dont show it .
How is it possible to bring back the No. of Addresses in use back to zero ?
Thanks
Michael