Build precise queries to find exactly what you need
Press ESC to close
@fireto
Favorites0
Views
Projects0
the plugin works perfectly when used on local machine. In order to use it with check_by_ssh you need to do following modifications: On the monitored host: in /etc/sudoers add: Defaults:nagios !requirettl nagios ALL=(ALL) NOPASSWD: /check_xen * edit the script: in the line RUNNING=$(sudo /usr/sbin/xm list | awk '!/[DN]/ {print $1 }' | awk '$1=$1' OFS=", " RS= ) remove sudo: RUNNING=$( /usr/sbin/xm list | awk '!/[DN]/ {print $1 }' | awk '$1=$1' OFS=", " RS= ) On the Nagios host: add command: define command{ command_name ssh_xen command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C 'sudo /check_xen -w $ARG1$ -c $ARG2$' }
Reviewed 14 years ago