Behind the scenes: cPanel license monitoring
Occasionally its nice to see behind the scenes of a company so heres a little snippet of how we do things so part one cPanel license monitoring.
We supply a number of cPanel licenses as we are a cPanel partner NOC which means we get the lowest possible pricing but in these days of credit crunches it helps to watch every single penny. As such once a month we do a cPanel license audit to remove any licenses that are not needed due to cancellation, non payment or just for testing.
Using the very nice cPanel perl API its dead easy to pull out all the license IP’s which is then passed to a simple perl script that check IP port 2087 and if it doesn’t respond within 10 seconds the license is just removed. Simple. Effective and it works