I have a MySQL database table that effectively holds key-value pairs which link each node to its parent (ESXi hypervisor). I want to use this information to set the Nagios parent, which is easy to do, client-side.

I'm not sure what the best approach is. I considered writing a custom fact that does a brief MySQL query to discover that node's parent. I wasn't able to find any code I was prepared to run in production - is there a neater way of using a ruby module to query MySQL? The example on this page is dirty.

http://ppadron.blog.br/2009/09/25/facter-puppet-writing-custom-facts-to-manage-plesk-servers/

Alternatively, is there any way to access this data server-side that can be accessed on a per-node basis?

Cheers,
Jonathan

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to