I am trying to configure triggers for the state of OSPF sessions, but the problem I am having is that the OID does not exist when the port goes down, so the current state value cannot be obtained.

If I use the last trigger, it does not work because of what was mentioned above, the OID no longer exists.
I also tried nodata, but with this trigger alerts are generated even though the data is being brought.
Would you have any idea how I can generate alerts for the OSPf states?
If I use the last trigger, it does not work because of what was mentioned above, the OID no longer exists.
I also tried nodata, but with this trigger alerts are generated even though the data is being brought.
Would you have any idea how I can generate alerts for the OSPf states?