check_ping doesn't work on freebsd+sparc

Hi2all,
I’m running FreeBSD 6 on Sparc:
[blockquote]new root@nagios plugins$ uname -a
FreeBSD nagios.* 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #0: Wed Feb 27 20:17:25 CET 2008 @:/usr/obj/usr/src/sys/MARS sparc64[/blockquote]

I have installed nagios and nagios-plugins from ports:
[blockquote]new root@nagios plugins$ pkg_info | grep -i nagios
nagios-2.11 Extremely powerful network monitoring system
nagios-plugins-1.4.11,1 Plugins for Nagios[/blockquote]

I always get an error with check_ping plugin:
[blockquote]new root@nagios plugins$ /usr/local/libexec/nagios/check_ping -H 192.168.0.1 -w 3000.0,80% -c 5000.0,100% -p 1
CRITICAL - You need more args!!!
Could not open pipe: [/blockquote]

I have also tried the trunk version of nagios-plugins, compiled it and get the same error:
[blockquote]new root@nagios plugins$ fetch nagiosplug.sourceforge.net/snaps … EAD.tar.gz
new root@nagios plugins$ tar xfz nagios-plugins-HEAD.tar.gz
new root@nagios plugins$ cd nagios-plugins-trunk-200804121200/
new root@nagios plugins$ ./configure --without-ipv6
new root@nagios plugins$ make
new root@nagios plugins$ cd plugins
new root@nagios plugins$ ./check_ping -H 192.168.0.1 -w 3000.0,80% -c 5000.0,100% -p 1
CRITICAL - You need more args!!!
Could not open pipe: [/blockquote]

I have tested the same with FreeBSD on x86, it works:
[blockquote]root@mars plugins$ ./check_ping -H 192.168.0.1 -w 3000.0,80% -c 5000.0,100% -p 1
PING OK - Packet loss = 0%, RTA = 1.02 ms[/blockquote]

check_icmp works without any problems:
[blockquote]new root@nagios plugins$ /usr/local/libexec/nagios/check_icmp -H 192.168.0.1
OK - 192.168.0.1: rta 0.425ms, lost 0%|rta=0.425ms;200.000;500.000;0; pl=0%;40;80;;
[/blockquote]

Any ideas? Bug report?

mernin.com/blog/?p=118

I’m running FreeBSD, not Solaris