Could not open pipe

Hello, I’m attempting to use the check_snmp plugin to monitor the alarm status of my Liebert UPS.

Here is my command:
define command{
command_name check_liebert_alarm
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C public -P 1 -m “/tmp/$ARG1$”
-o $ARG2$ -w $ARG3$ -c $ARG4$ -l $ARG5$
}

But in the GUI, it’s giving me this error:
Could not open pipe: /usr/bin/snmpget -t 1 -r 5 -m “/tmp/liebert300.mib” -v 1 -c public 10.255.0.253:161 lcUpsAlarms.0

I can take the above command and run it as root and nagios users with no problems.

Thanks for any help you can provide. I’m new to Nagios so be gentle. Thanks.
-Eric

p.s. OS is CentOS and I built/compiled/make from source.

Anyone have any hints for me? Thanks.

I’m also getting it from the command line:
[root@monitor libexec]# ./check_snmp -H 10.255.0.253 -C public -m “/usr/local/nagios/libexec/liebert300.mib” -o lcUpsAlarms.0 -w 0 -c 0 -l Liebert

Could not open pipe: /usr/bin/snmpget -t 1 -r 5 -m “/usr/local/nagios/libexec/liebert300.mib” -v 1 -c public 10.255.0.253:161 lcUpsAlarms.0

But I can run snmpget manually with no problems:

[root@monitor libexec]# /usr/bin/snmpget -t 1 -r 5 -m “/usr/local/nagios/libexec/liebert300.mib” -v 1 -c public 10.255.0.253:161 lcUpsAlarms.0
LIEBERT-SERIES-300-UPS-MIB::lcUpsAlarms.0 = Gauge32: 0