[libvirt-snmp][PATCH v4 0/4] Add SNMP trap/notification support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The fourth version.

In case we build against libvirt older than 0.9.0 (which have old event API),
we need to include some sources from libvirt git. So we are able to run even
on older RHELs, like 5.6. Those files were copied to our git and modified
very slighty.

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 (4):
  Add notification-type object to libvirt MIB
  Add libvirt error handling function
  Create functions to fill in and send notification packets.
  Add SNMP trap/notification support.

 INSTALL.1st                |    9 +-
 configure.ac               |   17 +-
 libvirt-snmp.spec.in       |    7 +-
 src/LIBVIRT-MIB.txt        |    9 +
 src/Makefile.am            |   27 ++-
 src/README.txt             |    9 +-
 src/event.c                |  193 ++++++++++++
 src/event.h                |  101 ++++++
 src/event_poll.c           |  724 ++++++++++++++++++++++++++++++++++++++++++++
 src/event_poll.h           |  132 ++++++++
 src/ignore-value.h         |   64 ++++
 src/internal.h             |  265 ++++++++++++++++
 src/libvirtNotifications.c |  122 ++++++++
 src/libvirtNotifications.h |   33 ++
 src/libvirtSnmp.c          |  136 ++++++++-
 src/libvirtSnmpError.c     |   34 ++
 src/libvirtSnmpError.h     |   31 ++
 src/memory.c               |  313 +++++++++++++++++++
 src/memory.h               |  212 +++++++++++++
 src/threads.c              |  251 +++++++++++++++
 src/threads.h              |  101 ++++++
 src/util.c                 |  105 +++++++
 src/util.h                 |   38 +++
 23 files changed, 2919 insertions(+), 14 deletions(-)
 create mode 100644 src/event.c
 create mode 100644 src/event.h
 create mode 100644 src/event_poll.c
 create mode 100644 src/event_poll.h
 create mode 100644 src/ignore-value.h
 create mode 100644 src/internal.h
 create mode 100644 src/libvirtNotifications.c
 create mode 100644 src/libvirtNotifications.h
 create mode 100644 src/libvirtSnmpError.c
 create mode 100644 src/libvirtSnmpError.h
 create mode 100644 src/memory.c
 create mode 100644 src/memory.h
 create mode 100644 src/threads.c
 create mode 100644 src/threads.h
 create mode 100644 src/util.c
 create mode 100644 src/util.h

-- 
1.7.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]