phpipam-agent icon indicating copy to clipboard operation
phpipam-agent copied to clipboard

No update "Discover new hosts last scan"

Open ElGranLoky opened this issue 7 years ago • 3 comments

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

ElGranLoky avatar Oct 24 '18 07:10 ElGranLoky

@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 avatar Apr 06 '19 10:04 Haringstad

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

Haringstad avatar Apr 06 '19 11:04 Haringstad

I found one problem - #54

ElGranLoky avatar May 17 '19 05:05 ElGranLoky