checking for poll... yes
checking return type of socket size... int
checking for /proc/loadavg... found /proc/loadavg
checking for ps... /bin/ps
checking for ps syntax... /bin/ps axwo 'stat uid pid ppid vsz rss pcpu comm args
checking for ping... /bin/ping
checking for ping6... /bin/ping6
checking for ICMP ping syntax...

I am trying to install Nagios Plugins

解决办法

 1 ./configure  [--prefix=/usr/local/nagios/ ] --with-ping-command=ping

Worked like a charm. Thanks

2. 

he problem was that there was no ip on the interface.. i added the 127.0.0.1 and it worked like a charm

thanks for your help