Look into the probe thread?
Make a function to read the oid of the cpu or use the cpu usage function in your probe...
In the error line of the probe create logic that produces an error when the criteria is met.
Here is a really good CPU probe for cisco devices. This will not read linux or windows computers cpu.
It is a function that is called by a probe...
Here is the function
Cisco_CPU_a
if(string_size(oid("1.3.6.1.4.1.9.2.1.57.0", 10 ,5)), oid("1.3.6.1.4.1.9.2.1.57.0", 10, 5)+1 ,"False")
Here is the probe
Cisco CPU
if(Cisco_CPU_a()<>"False",if(Cisco_CPU_a() -1< 75, "", concatenate("Warning: high CPU = ", Cisco_CPU_a(), "%")), "Cisco Device down")
Screenshots
Cisco_CPU_a - Function_2014-02-19_16-21-53.png
Cisco CPU - Probe_2014-02-19_16-23-24.png
It is silly to re-document this... really.
Lebowski
PS this is the function for a linux cpu in CentOS.
if(string_size(oid("1.3.6.1.4.1.2620.1.6.7.2.4.0",10,5)), oid("1.3.6.1.4.1.2620.1.6.7.2.4.0",10,5)+1,"False")
You do not have the required permissions to view the files attached to this post.