Re: [libvirt] [libvirt-snmp][PATCH v3 3/3] Add SNMP trap/notification support.

2011-03-23 Thread Eric Blake
On 03/23/2011 07:30 AM, Daniel P. Berrange wrote: > > What is the oldest version of libvirt that you need to be able to > run libvirt-snmp against ? > > This impl of the file handle / timer callbacks taken from the > C example program is really not a very good one to copy / use. > > If you are a

Re: [libvirt] [libvirt-snmp][PATCH v3 3/3] Add SNMP trap/notification support.

2011-03-23 Thread Daniel P. Berrange
On Wed, Mar 23, 2011 at 11:06:08AM +0100, Michal Privoznik wrote: > diff --git a/src/libvirtSnmp.c b/src/libvirtSnmp.c > index > dd1bd33dc3fbc08656d09075a3c1a1741ebc002f..1bc947d85384e2ced111cde301951b4e5c3666f6 > 100644 > --- a/src/libvirtSnmp.c > +++ b/src/libvirtSnmp.c > @@ -22,12 +22,168 @@ >

[libvirt] [libvirt-snmp][PATCH v3 3/3] Add SNMP trap/notification support.

2011-03-23 Thread Michal Privoznik
This patch adds support for domain lifecycle notification support over SNMP traps. SNMP subagent monitors any domain events and when something interesting happens, it sends a trap. Monitoring is done in a joinable thread using polling (used domain-events example from libvirt) so we won't block the