Hello All,
Has anybody came across monitoring DHCP scopes on Windows Servers under zabbix? If yes, can you share the templates/items used.
I am able to get the list by using below powershell commands.
- Get the list of IP Scopes Defined
- Number of IP address Used
- Number fo IP Free
- Number of IP pending to be assigned
The problem here is I can't hardcode the list as some places scope has 5, and some has 10. I need to alert if the lease is going more than 80% ( of each scope).
Any pointers are greatly helpful.
Thanks.
Has anybody came across monitoring DHCP scopes on Windows Servers under zabbix? If yes, can you share the templates/items used.
I am able to get the list by using below powershell commands.
- Get the list of IP Scopes Defined
Code:
netsh dhcp server show mibinfo|findstr Subnet |%{$data = $_.split("="); Write-Output "$($data[1])"}|%{$str = $_.trim("."); Write-Output "$str"}
Code:
netsh dhcp server show mibinfo|findstr use |%{$data = $_.split("="); Write-Output "$($data[1])"}|%{$str = $_.trim("."); Write-Output "$str"}
Code:
netsh dhcp server show mibinfo|findstr free |%{$data = $_.split("="); Write-Output "$($data[1])"}|%{$str = $_.trim("."); Write-Output "$str”}
Code:
netsh dhcp server show mibinfo|findstr pending |%{$data = $_.split("="); Write-Output "$($data[1])"}|%{$str = $_.trim("."); Write-Output "$str"}
The problem here is I can't hardcode the list as some places scope has 5, and some has 10. I need to alert if the lease is going more than 80% ( of each scope).
Any pointers are greatly helpful.
Thanks.
Comment