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

No update "Discover new hosts last scan" #48

Open
ElGranLoky opened this issue Oct 24, 2018 · 3 comments
Open

No update "Discover new hosts last scan" #48

ElGranLoky opened this issue Oct 24, 2018 · 3 comments

Comments

@ElGranLoky
Copy link

Versión IPAM: 1.3.2
Versión Agent: last version

I use the agent with:

/usr/local/bin/php /opt/phpipam-agent/index.php update
/usr/local/bin/php /opt/phpipam-agent/index.php discover

The two commands work correctly, but the discovery does not update the last scan field. Anyway in the description field of the ip if it shows when the equipment has been discovered as you can see in the image.

I do not know exactly where the problem is, any suggestions?

image

@Haringstad
Copy link

@ElGranLoky I am facing exactly the same issue.
When I run the agent, it perfectly scans the subnet, but no updates are performed.
Tried with PHP 5.6, 7.0, 7.1, 7.2, 7.3., but no dice......

@Haringstad
Copy link

YUP! Figured it out!!! My ISSUE was TZ! Because the system running the agent was in UTC, and the IP-DB master was in Europe/Amsterdam, nothing got ever updated. Created a script, calling the PHP indexes, with:

#!/bin/bash
export TZ=Europe/Amsterdam

for i in phpipam-agent-172 phpipam-agent-82
do
  php7.0 /opt/$i/index.php discover
  php7.0 /opt/$i/index.php update
done

@ElGranLoky
Copy link
Author

I found one problem - #54

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

No branches or pull requests

2 participants