I am checking several resources with snmp correctly, the Icinga check is always the same, you set the critical to 1 for example and the value is equal or higher the alarm goes off.
But when checking the ipsec fortigate tunnels, I am encountering a problem that I have not managed to solve, the command returns 2 if the tunnel is OK and 1 if the tunnel is down, if it were the other way around there would be no problem, because I set 1 OK and 2 Critical, but being the other way around I do not know how to configure it. Has anyone encountered this same problem? Where can I configure to set the critical < 2?
Thank you very much for the answer, and how could I do this in Icinga Director? Because I have tried to enter =! directly on the web and it doesn’t recognize the symbol, only the number.