Icinga / Icinga/icinga-powershell-plugins
New Dhcp Scopes check.
@LordHepipud is already working on this.
Since Jan 22, 2022.
- Dominant language
- PowerShell
- Stars
- 55
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
Would it be possible to add an official dhcp check to verify the occupation of dhcp leases on specific windows dhcp servers. It would be great if we could have something simple like this:
$scope = Get-DhcpServerV4Scope
$statistics = $scope | % {Get-DhcpServerv4ScopeStatistics -ScopeId $.ScopeID}
[Array]$allert = @()
$allert = $statistics |? {$.PercentageInUse -ge 98}
if ($allert.count -ge 1) {
$message = $allert | out-String
Write-EventLog -LogName Application -EntryType Error -EventId 4444 -Source monitoringDhcp -Message $message
}
else {
Write-EventLog -LogName Application -EventId 5555 -Source monitoringDhcp -Message "No scopes are full..."
}
An event log is not necessary obviously but something that simply checks each scope is required.
Thanks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.