Nagios-plugins-check_xs-license is a project mainly written in Python, it's free.
Nagios plugin to check the status of Citrix Xenserver license
Nagios plugin that will check if a Citrix XenServer license is near expiring.
This script can run either on the xenserver itself or on another host. Be sure to install the XenAPI module if your running the check from another host.