munin-monitoring/contrib — Issue #57: time_bin=$(which time) not working
Author: davewood
Created: 2012-02-29 17:42:36+00:00
State: open

on my debian system "which time" returns nothing and the following command is execute if i run wget_page

-p /usr/bin/wget --save-headers --no-directories --output-document /tmp/tmp.7IaUamC3Lh --timeout 10 --no-cache --tries=1 http://www.example.com

root@kvm6:~# which time
root@kvm6:~#

root@kvm6:~# time
real 0m0.000s
user 0m0.000s
sys 0m0.000s
root@kvm6:~#

root@kvm6:~# which time && echo "true"
root@kvm6:~#

subsequently wget_page returns 60 for each invocation

root@kvm6:~# munin-run wget_page
loadtime1.value 60
loadtime2.value 60
loadtime3.value 60
loadtime4.value 60
loadtime5.value 60
root@kvm6:~#