I'm trying to figure out how to do a function / device label that would have if / elseif type logic.
Basically, If a given OID (x == 2), display "Sync OK", elsif (x ==3), display "Detailed Error1", elseif (x==4), display "Detailed Error2"
I've figured out how to display the "OK" part, but how would I expand on this by adding the other "elseif" conditions?
Code: Select all
if(oid("1.3.6.1.4.1.17713.21.1.3.1.0","2","Sync OK")
Is there a section of a doc or post anyone could point me to? I've tried looking through the "Function/Probe" thread and also on the wiki, but can't seem to find anything that would provide basic if / elsif, I might have skimmed right by it though....
Thanks