Hi all,
I have a problem with the builtin 'time' in bash.
When I do a "time ls" in the shell, I get this:
real 0m0.008s
user 0m0.000s
sys 0m0.000s
But if I use a UserParameter=blop,time ls and then do a zabbix_get -s host -k blop, I get this:
0.00user 0.00system 0:00.00elapsed 57%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+710minor)pagefaults 0swaps
The problem is that /usr/bin/time is used by the zabbix agent instead of the built-in 'time'.
Does anyone know how to force Zabbix to use the built-in 'time' ?
I have a problem with the builtin 'time' in bash.
When I do a "time ls" in the shell, I get this:
real 0m0.008s
user 0m0.000s
sys 0m0.000s
But if I use a UserParameter=blop,time ls and then do a zabbix_get -s host -k blop, I get this:
0.00user 0.00system 0:00.00elapsed 57%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+710minor)pagefaults 0swaps
The problem is that /usr/bin/time is used by the zabbix agent instead of the built-in 'time'.
Does anyone know how to force Zabbix to use the built-in 'time' ?
Comment