I ended up changing the alert type to a status check rather than a sensor check and that matches the items I want.

On Mar 18, 2024, at 11:01, Adam Armstrong via observium <observium@lists.observium.org> wrote:

There's not really anything complicated going on with the associations. It just converts * to % and then dumps it into a SQL LIKE statement.

The last two entries are just not matching anything in the SQL query, try a different strategy to match them.

Personally I'd match ( JUNIPER-MIB AND ( PEM* OR Power Supply*) ) or something like that. The shorter the match the less likely it'll break (and including the MIB means you don't have to be too specific)

adam.

David Milton via observium wrote on 2024-03-17 20:47:
Hello,

I'm attempting to create an alert checker for our router and switch power supplies. I seem to be part way there but am seeing some unexpected behaviour that I cannot explain.

I started with the test condition:
sensor_event notequals ok
and the associations are "or:"
Sensor Description match PEM*
Sensor Description match Power Supply 0 @*
Sensor Description match Power Supply 1 @*

Here's a specific device inventory showing PEM 0 status is currently down:



It seems the last two associations don't mach anything and for some reason the PEM* association only matches the power supplies that are ok, not the one I want the alert for which is currently down. I've tried to match against "Power Supply" and that matches power supplies in my servers but they don't seem to have a status, more like a current sensor instead. I'm attempting to deal strictly with the power supplies in our Juniper routers and switches and from what I can tell they all have a status/sensor_event state.



I think the two "Power Supply 0 @*" associations should also match additional power supplies as shown in the list below taken from the hardware inventory and filtering for a description of Power Supply:



Clearly I'm missing something en the alert checker associations but I'll be darned if I can figure out what that is. I've tried to match on MIB as well but nothing seems to match those power supplies.

What am I missing here?

Thanks,
 Dave.



_______________________________________________
observium mailing list -- observium@lists.observium.org
To unsubscribe send an email to observium-leave@lists.observium.org

_______________________________________________
observium mailing list -- observium@lists.observium.org
To unsubscribe send an email to observium-leave@lists.observium.org