Can someone confirm how the "Received value not like" should work when there are numerous checks in the discover rule, some of which may return the field and some may not.
Specifically I query both sysDescr and sysName, and do it with both SNMPV1 and V2C (I have a few old devices that only do V1). On a particular device where my problem occurs, two of them include the word "Cisco" and two do not.
My discovery action is:
Received value not like Cisco
And
Discovery status = Up
And
Service type = SNMPV2 Agent
My expectation is that this would FAIL and not execute the operation, as two of the four string values returned do contain Cisco. But it does execute the operation (and links a template I did not want). I've removed them and rerun.
I'm going to try debug but that's always like drinking from a fire hose. I was hoping if anyone might be able to confirm is my interpretation right? That "Not like" has to be true on ALL returned values to yield true?
Specifically I query both sysDescr and sysName, and do it with both SNMPV1 and V2C (I have a few old devices that only do V1). On a particular device where my problem occurs, two of them include the word "Cisco" and two do not.
My discovery action is:
Received value not like Cisco
And
Discovery status = Up
And
Service type = SNMPV2 Agent
My expectation is that this would FAIL and not execute the operation, as two of the four string values returned do contain Cisco. But it does execute the operation (and links a template I did not want). I've removed them and rerun.
I'm going to try debug but that's always like drinking from a fire hose. I was hoping if anyone might be able to confirm is my interpretation right? That "Not like" has to be true on ALL returned values to yield true?
Comment