{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.

12/var/www/phpipam/functions/scripts/discoveryCheck.php/var/www/phpipam/functions/scripts/pingCheck.php​

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.

12*/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.

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

Source: https://deangrant.me/2015/12/12/phpipam-configuring-auto-discovery-and-host-status-checks/