Forum Discussion

SilasRibas's avatar
SilasRibas
Icon for Neophyte rankNeophyte
2 months ago
Solved

Is it possible to create threshold monitoring using if or or?

I have a customer who is currently monitoring the datapoint status (=3 - failed) of the interface using Meraki. The LogicModule is Cisco_Meraki_UplinkApplianceStatus. However, this client needs to ...
  • SilasRibas's avatar
    2 months ago

    Hi everyone 😃!

    It's works guys 🎉, I created a complex datapoint (StatusReady) and use the expression:

    (if(eq(Status,0),1,if(eq(Status,3),1,0)))

    In the expression, if the interface status is =0 (not connected) or =3 (failed), then it will generate the value =1 which indicates failure, otherwise the value returned will be =0 which indicates that it is ok.

    In the case of my client, I only used status code 0 (not connected) and 3 (failed), but it can be used for any of these: (Status of the WAN link) Status codes: 0=not connected, 1=ready, 2=active, 3=failed, 4=connecting.

    See below for a working print.

     

     

     

     

     

     

     

     

    Tks 💪