SNMP Monitoring

Home » CentOS-Virt » SNMP Monitoring
CentOS-Virt 2 Comments

It seems it’s not possible to monitor kvm virtual image network interfaces via SNMP. MRTG’s cfgmaker says

### The following interface is commented out because:
### * has no ifSpeed property

and other monitors are consistently reporting that VM‘s interfaces are exceeding traffic thresholds (even on lo …). Which is no surprise if the threshold is zero.

I found a hint on some Debian forum that this behaviour is caused by the virtio driver. So I was wondering, is it recommended or are there advantages to configuring one of the emulated drivers instead (ne2k_pci,i82551,i82557b, i82559er,rtl8139,e1000,pcnet)? Or can I “fake it” somehow in the vm’s snmpd config?

2 thoughts on - SNMP Monitoring

  • Lars Hecking writes:

    I had the same issue, but only with some of my virtual machines. I found that the Network adapter needed to be changed
    (or rather removed and a new one added)
    from type “flexible” to “E1000”.
    Doing that with the machine powered off, it kept the same MAC address. Then the SNMP works / sees the ifspeed correctly.

    hope this helps, Joe