Hello, everyone!
I'm trying to setup HP Procurve Cpu probe from the
following post.
Now I have configured:
Function
Name: Procurve_Cpu
Code: oid("1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0")
Probe
Name: Procurve_Cpu
Type: Function
Available: Procurve_Cpu() <> ""
Error: if(Procurve_Cpu() > 80, "", concatenate("Cpu load is = ", Procurve_Cpu(), "%"))
Value: Procurve_Cpu()
Unit: %
It seems that it working, but I need some advises:
1. I periodically get "Not available" - how this may be fixed?
2. Should I use Procurve_Cpu() > 80 or Procurve_Cpu() < 80 for Error? I need a notification when Cpu load is over 80%.
With current setup I get periodically errors: Cpu load is = 0%, Cpu load is = 4%
3. I also tried to configure something
like this but without success - I got the error: parse failed
Function
Name: Procurve_Cpu_Test
Code: if(oid("1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0",10,5), oid("1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0",10,5), "False")
Probe
Name: Procurve_Cpu_Test
Type: Function
Availavble: Procurve_Cpu_Test() <> "False"
Error: if(Procurve_Cpu_Test()<>"False", if(Procurve_Cpu_Test()<80), "", concatenate("Cpu load is = ", Procurve_Cpu_Test(), "%"))
Value: Procurve_Cpu_Test()
Unit: %
Thank you!