19 June 2012

munin: xen-multi Could not obtain handle on privileged command interface (13 = Permission denied)

I'm using munin to monitor my XEN instances. On one of the new installed nodes, I got the following munin error:

[367] Error output from xen-multi:
[367] ERROR Internal error: Could not obtain handle on privileged command interface (13 = Permission denied)
[367] xc_interface_open: Permission denied
[367] Failed to initialize xenstat library

Follow the following steps to fix:
1. check if you have xen-utils installed
# dpkg -l | grep xen-utils

2. install and configure sudoers
# apt-get install sudo
# vi /etc/sudoers
# vi> add this line: munin ALL=(ALL) NOPASSWD: /usr/sbin/xentop
# vi /usr/share/munin/plugins/xen-multi
# vi> change this line

open (XENTOP,"xentop -b -f -i1 |") or die "Could not execute xentop, $!";

with

open (XENTOP,"sudo xentop -b -f -i1 |") or die "Could not execute xentop, $!";

UPDATE: It seems that the only things missing were these lines:
[xen_multi]
user root
from /etc/munin/plugin-conf.d/munin-node.

No comments:

Post a Comment