Hi,
I have some issue with CPU usage probes
First Ive made this function
Name: get_rb_cpu_load
Description: get router cpu load
Code: ros_command(":put [/system resource get cpu-load]")
And this is my first Probe
Name: high cpu usage
Type: Function
Agent: default
Available: get_rb_cpu_load()
Error: if(get_rb_cpu_load() < 60, "", "high cpu usage")
Value: get_rb_cpu_load()
Unit:%
This Probe is working correctly, Ive made some btests (to get higher >60% CPU load) after short time I get error "high cpu usage" as expected.
Also place on the device as appearance Label: [get_rb_cpu_load()], CPU load is showing as expected.
Now Ive made second probe if CPU load is >90% run ros command /system reboot
Name:reboot on high cpu ussage
Type: Function
Agent: default
Available: get_rb_cpu_load()
Error: if(get_rb_cpu_load()<90, "", ros_command("/system reboot"))
Value: get_rb_cpu_load()
Unit:%
Problem is no meter what variable I m gating from get_rb_cpu_load() function (no meter if Cpu load is 1, 4,20% etc.), Dude is always executing command line ", ros_command("/system reboot"
I m not sure why ? can it be a some sort of bug?
Thanks.