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 monitor two conditions: if the interface status is =3 (failed) or =0 (not connected), it should alert.
Is it possible to create this kind of logic?

Regards guys

  • 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 💪

  • Not directly that I know of. You can create a complex datapoint that will check for that situation though, something like this (untested):

    or(eq(status,0),eq(status,3))

    But first I would make sure you have the latest Meraki DataSources and you may want to leave LM feedback about your needs. My understanding is that LM is actively working on new Meraki checks and may be a good time to point out needs.

  • 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 💪

  • Hiii Mike, tks for answer.

    I will test this option and I come back here for tell this work or not.