I am trying to use the check_xenvm.pl to monitor the virtual machine on a XEN server.
I had a right problem that i have fixed by adding the user nagios to the sudoers. So now the execution of the plugin as nagios on the Xen server works properly:
Code: Select all
[root@xen]# sudo -u nagios /usr/lib/nagios/plugins/check_xenvm.sh -w 1 -c 1
OK: Xen Hypervisor "xen.srrhd.re" is running Xen VMs: vm1, vm2
Code: Select all
[root@nagiosxi libexec]# ./check_nrpe -H X.X.X.X -n -t 30 -c check_xen -a '-w 1 -c 1'
Critical Xen VMs Usage - Total NB: 0 - detected VMs:
Code: Select all
nagios ALL=(ALL) NOPASSWD:/usr/sbin/xm list
nagios ALL=(ALL) NOPASSWD:/usr/lib/nagios/plugins/
Does anyone got an idea ? When executing the check_nrpe, isn't the user nagios that executes the plugin on the remote server ?
Aurelien.