Community discussions

MikroTik App
 
lebowski
Forum Guru
Forum Guru
Topic Author
Posts: 1619
Joined: Wed Aug 27, 2008 5:17 pm

Cisco CPU probe fix

Thu Dec 08, 2022 1:00 am

I found the Cisco CPU probe is out of date and found the new OIDs in Cisco process mib but the one OID either ends in 1000 or 19, this made it difficult to update the Cisco CPU probe but I got it to work, still if you want it to graph you need a separate probe that only graphs.

This functions makes sure you have a valid value before sending it to the probe.
Function;
Name: Cisco_CPU_5tot
Description: 1.3.6.1.4.1.9.9.109.1.1.1.1.8.19 or .8.1000 is the cisco process mib oid for 5 minute average across all CPUs. This function returns the first element of that oid_column the first element is 0.
Code: if(array_size(oid_column("1.3.6.1.4.1.9.9.109.1.1.1.1.8", 10, 5)), array_element(oid_column("1.3.6.1.4.1.9.9.109.1.1.1.1.8", 10, 5), 0)+1,"False")

--The above code says if there is an array in the oid, return array element 0 from that array, add 1 for sometimes the CPU is at 0% utilization and return false if there is not an array.

Probe;
When you make the probe, put these for the appropriate fields;
Available: Cisco_CPU_5tot() <> "False"
Error: if(Cisco_CPU_5tot()<>"False",if(Cisco_CPU_5tot() -1<86, "", concatenate("Warning: high CPU = ", Cisco_CPU_5tot(), "%")), "Cisco Device down")
Value: Cisco_CPU_5graph()

Lebowski

Who is online

Users browsing this forum: No registered users and 9 guests