I'm using my
fact and stored configurations in puppet to get the running Xen domU in my system.
I also maintain my nagios configuration with puppet, with the Xendomains fact, I automatically set in the nagios configuration the parents for an domU system.
The running domU on node1.fra.example.com is web1.fra.example.com.
The nagios configuration will look like:
define host{
use generic-host
host_name web1.fra.example.com
alias web1 - amd64
address 3.3.3.3
parents node1.fra.example.com
hostgroups XXX,XXX
}
Using this
puppet parser function to fetch the dom0 for an domU system from the database.
After calling that function I can build the nagios configuration and using virtual resources in puppet to transfer that information to my nagios server.