phpIPAM pingCheck cron job

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



One thought on “phpIPAM pingCheck cron job

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s