Here you'll find some simple WHMCS integration and manipulation tools to be able to work with your WHMCS deployment.
whmcs_contact_puller for Nagios This PERL script is designed to export all contacts from the WHMCS database and create a working contacts file for use with Nagios.