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

Michal Privoznik mprivozn at redhat.com
Fri Feb 25 13:13:07 UTC 2011


The second version, without formatting stuff.

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                    |    9 +-
 configure.ac               |    7 +
 src/LIBVIRT-MIB.txt        |    9 ++
 src/Makefile.am            |    3 +
 src/README.txt             |    9 +-
 src/libvirtNotifications.c |  109 +++++++++++++++++
 src/libvirtNotifications.h |   21 ++++
 src/libvirtSnmp.c          |  277 +++++++++++++++++++++++++++++++++++++++++++-
 8 files changed, 435 insertions(+), 9 deletions(-)
 create mode 100644 src/libvirtNotifications.c
 create mode 100644 src/libvirtNotifications.h

-- 
1.7.4




More information about the libvir-list mailing list