[collectd] [PATCH] UUID plugin for collectd

Richard W.M. Jones rjones at redhat.com
Mon Nov 5 18:03:40 CET 2007


This is an experimental plugin, just for discussion.

What it does is, if the plugin is loaded, it changes the global 
hostname_g to be the machine's UUID, where the UUID is a (supposedly) 
unique identifier for the machine.

If SMBIOS supports it, then we get it from the system BIOS (from the 
motherboard).  However this is most often useful for virtual guests, 
where we have a concept of a UUID that refers to the guest for all time, 
even if the guest is shutdown or migrated to another physical host.  The 
plugin uses a variety of different methods to try to find the UUID.

I don't really know whether updating hostname_g directly is a good idea. 
  No other plugins do it, but on the other hand it does seem to work.

Rich.

-- 
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: collectd-uuid-1.patch
Type: text/x-patch
Size: 11133 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20071105/a6d1a853/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20071105/a6d1a853/attachment-0001.bin 


More information about the collectd mailing list