{php}IPAM: Configuring auto discovery and host status checks

So you have configured your IP related settings in {php}IPAM such as sections, subnets and VLANs and invoked the initial scan of your subnet to discover new hosts. Now, we go away and at some point later on login and check your subnet details to which all your hosts are reporting as unreachable.

What is happening here? Don’t worry, by default {php}IPAM will not periodically scan the subnet(s) for discovery and status updates. The installation of {php}IPAM provides a number of scripts to which two of them can perform this function. In order to discover new hosts there is discoveryCheck.php and to obtain the current host status pingCheck.php, which are located at the below locations.


So simply, all we are required to do is create a cron job to schedule the invocation of this script. In my example I will trigger the scripts every 15 minutes.

*/15 * * * * /usr/bin/php /var/www/phpipam/functions/scripts/discoveryCheck.php
*/15 * * * * /usr/bin/php /var/www/phpipam/functions/scripts/pingCheck.php​

There is a prerequiste required for the above, you will need to ensure that each subnet(s) you want to scan has the ‘check hosts status’ and ‘discover new hosts’ enabled in the subnet properties. For validation purposes I would recommend invoking the above scripts manually to ensure you receive expected behaviour.

sudo /usr/bin/php /var/www/phpipam/functions/scripts/discoveryCheck.php
sudo /usr/bin/php /var/www/phpipam/functions/scripts/pingCheck.php​

One thought on “{php}IPAM: Configuring auto discovery and host status checks

Leave a Reply

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

WordPress.com Logo

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

Facebook photo

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

Connecting to %s