Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple entries for the same Host on automatic host discovery #4085

Open
BMI-IT-Operations opened this issue Apr 17, 2024 · 1 comment
Open

Comments

@BMI-IT-Operations
Copy link

Hi there,

when Discover new hosts is activated I'll get multiple entries for the same Host. The Host is on DHCP and changes it's IP address from time to time and everytime phpipam adds the same Host as a new one instead of updating the existing entry.
I've configured also the following scripts on cron: pingCheck.php, discoveryCheck.php, resolveIpaddresses.php
The script remove_offline_addresses.php is not an option, because it will also delete manual entries as kind of a reservation.
image

phpipam has this specs:

  • phpIPAM version: 1.6
  • OS: Debian 12.5
  • PHP version: php 7.2 64bit
  • Webserver Apache
  • DatabaseMariaDB 10.2

Hopefully you can give me an advice!
Thank you!

@BMI-IT-Operations
Copy link
Author

Finally I found the solution. It turned out you have to edit your config.php and edit the section "resolveIPaddress.php script parameters". Change the parameter in line "resolve_emptyonly = true" to "false".
image
Run the script with cron and it will update the database.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant