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

Michal Privoznik mprivozn at redhat.com
Wed Mar 23 10:06:05 UTC 2011


The third version with micro-version number change.

Finally, we have a proof-of-concept implementation of SNMP trap.
Two new files were first generated using mib2c then edited, so be
careful when re-generating them.

Destination of traps is defined in snmpd.conf (trap2sink), and to
receive them snmptrapd must be configured and up.

The idea behind is - create a thread in which we poll for domain
events. Once we receive event notification, we just fire up
trap sending.


Michal Privoznik (3):
  Add notification-type object to libvirt MIB
  Create functions to fill in and send notification packets.
  Add SNMP trap/notification support.

 INSTALL.1st                |    9 +-
 configure.ac               |    9 ++-
 libvirt-snmp.spec.in       |    5 +-
 src/LIBVIRT-MIB.txt        |    9 ++
 src/Makefile.am            |    3 +
 src/README.txt             |    9 +-
 src/libvirtNotifications.c |  121 +++++++++++++++++++
 src/libvirtNotifications.h |   33 +++++
 src/libvirtSnmp.c          |  277 +++++++++++++++++++++++++++++++++++++++++++-
 9 files changed, 464 insertions(+), 11 deletions(-)
 create mode 100644 src/libvirtNotifications.c
 create mode 100644 src/libvirtNotifications.h

-- 
1.7.4




More information about the libvir-list mailing list