I have been trying to build an alert that will trigger when a port on one of my HP devices detects a loop. I am using the MIB hpicfBridgeLoopProtectPortLoopDetected (1.3.6.1.4.1.11.2.14.11.5.1.12.1.5.2.1.1.2). The thing about this MIB is that it returns in a table. Each interface on the device listed generic number with a "1" or "2" next to it corresponding to True and False.
My real question, how do I take the values returned in this table and alert when only a specific value turns from say 2 (FALSE) to 1(TRUE)? I am not sure of the exact variables and order of logic that would be required.
I am also curious about what would be required to take the specific interface that has the condition and put it into an email along with the device name and other information as a proactive warning? Has anyone tried to alert on a MIB table before and have some advice? Any feedback would be great. Thank you in advance.