1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00
Munin-Contrib/plugins/libvirt
Benoît S c4a08bfa53 libvirt/kvm_*: Simple regex to match VM name
On Debian Stretch the cmdline is something like:
qemu-system-x86_64-enable-kvm-nameguest=vmname,debug-threads=on-S-[…]
Without null characters:
qemu-system-x86_64 -enable-kvm -name guest=vmname,debug-threads=on[…]

We need to match only guest=vmname, so the regex
"^.*guest=([a-zA-Z0-9.-_-]*).*$" is simpler and match the VM name.
The precedent regex "^.*-name\x00([a-zA-Z0-9.-_-]*)\x00\-.*$" was not matching it.

BTW, It seems that \x00 does not match correctly null characters so I removed it.
2019-07-11 22:54:45 +02:00
..
kvm_cpu libvirt/kvm_*: Simple regex to match VM name 2019-07-11 22:54:45 +02:00
kvm_io libvirt/kvm_*: Simple regex to match VM name 2019-07-11 22:54:45 +02:00
kvm_mem libvirt/kvm_*: Simple regex to match VM name 2019-07-11 22:54:45 +02:00
kvm_net kvm_net: add technical details to 'graph_info' 2018-06-10 22:04:39 +02:00
libvirt Whitespace cleanup 2018-08-02 02:33:25 +02:00
munin-libvirtpy Whitespace cleanup 2018-08-02 02:33:25 +02:00