Icinga / Icinga/icinga-powershell-plugins

New Dhcp Scopes check.

Open
#254 1 comment 0 reactions 1 assignee View on GitHub

@LordHepipud is already working on this.

Since Jan 22, 2022.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.