Greetings,
I am trying to write a function that takes a single input parameter(a process name) than uses the HOST MIB to find if the process exists on the current device the function is called from via SNMP.
Here is what I use for a probe to do this, but I would like to do a function
if(array_find(oid_column("1.3.6.1.2.1.25.4.2.1.2"),"wuauclt.exe")>-1, -1, 0)
So far as a probe this works pretty well except that occasionally incorrect results are returned making it seem that the probe is down almost like the Dude can't get the SNMP HOST mib from the destination.
How do I create a function that takes a parameter and how do I use the parameter within a function?
Thanks,
Tom