Ask for help to get it working

hello,

I setup the plugin and it’s needed software as following and it give me some error messages

I install freeipmi v 1.0.5 on the remote server then download the plugin v 2.2, move it to /usr/local/nagios/libexec/
#chown nagios:nagios /usr/local/nagios/libexec/check_ipmi_sensor

then test the tool
#ipmi-sensors -h localhost -u monitoring -p relation -l user
and it work then test the plugin from the server it self and it work # /usr/local/nagios/libexec/check_ipmi_sensor -H localhost -U monitoring -P relation -L user

then I install the freeipmi in a local machine to test the remote machine
ipmi-sensors -h remote-host-ip -u monitoring -p relation -l user
it give me ipmi-sensors: connection timeout

then when I try to test it from nagios using # /usr/local/nagios/libexec/check_nrpe -H remote-ip -c check_ipmi_sensor -a ‘-H localhost -U monitoring -P relation -L user’
it give me this error
/usr/local/sbin/ipmi-sensors: permission denied
-> Execution of ipmimonitoring failed with return code 1.
-> ipmimonitoring was executed with the following parameters:
/usr/local/sbin/ipmimonitoring -h 127.0.0.1 -u monitoring -p relation -l user –quiet-cache –sdr-cache-recreate
or this
sudo: sorry, you must have a tty to run sudo
-> Execution of ipmimonitoring failed with return code 1.
-> ipmimonitoring was executed with the following parameters:
sudo /usr/local/sbin/ipmimonitoring –quiet-cache –sdr-cache-recreate

thanks and best regards