After installing phpIPAM on Ubuntu 16.04 from the instructions here I needed to set up automatic host availability checking.
After following the instructions at the phpIPAM site I still could not get it to work.
There appears to be a number of people having the same issue i.e. the syslog shows the pingCheck cron job running but the hosts are showing as unavailable.
We discovered (after some random stumbling around) that adding the path to the php.ini file seemed to get discoveryCheck and pingCheck working properly.
So, we added “-c /etc/php/7.0/cli/php.ini” to the instructions from the phpIPAM site.
Our cron file is below:
# host discovery at 11am every day
0 11 * * * /usr/bin/php -c /etc/php/7.0/cli/php.ini /var/www/html/phpipam/functions/scripts/discoveryCheck.php
# update host status every 30 minutes
*/30 * * * * /usr/bin/php -c /etc/php/7.0/cli/php.ini /var/www/html/phpipam/functions/scripts/pingCheck.php