Icinga / Icinga/icinga-powershell-framework

Feature Request: Self service API wrong IP for Hostadresse

Open
#721 3 comments 0 reactions 1 assignee View on GitHub

@LordHepipud is already working on this.

Since Apr 12, 2024.

Bug Investigation
Dominant language
PowerShell
Stars
87
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Hi,

we are using Icinga director self service API and the Clients may have several (virtual) IP adresses.

Currently the Physical Adress is used for the Hostadresse field.
So after Creation of a new host we need to change to the correct IP in Icinga Director

Better would be to find out the Local IP Adress from which the connection is done to Icinga Director for example like this:

PS C:\windows\system32> Get-NetTCPConnection -RemoteAddress  10.216.5.6

LocalAddress                        LocalPort RemoteAddress                       RemotePort State       AppliedSetting
------------                        --------- -------------                       ---------- -----       --------------
10.218.4.2                          51453     10.216.5.6                          443        CloseWait   Internet
10.218.4.2                          51452     10.216.5.6                          443        TimeWait


PS C:\windows\system32>

Maybe add a like if you have the same problem too.

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.