i need a little help, i’ve been trying and trying but cnat seem to get it to work;
i need to trigger an alert if a certain oid changes !=2.
i created a macro:
$config[‘alert’][‘macros’][‘rule’][‘Juniper Yellow Alert’] = ‘%sensors.sensor_oid=".1.3.6.1.4.1.2636.3.4.2.2.1"’;
then i do a rule:
%macros.Juniper Yellow Alert != “2”
but nothing triggers, though i have many devices with the state value 3, and in the main page of the device it even says the alarm is triggered (another solution could be to make health alarms trigger?)
Run an alert capture on a device you think it should be alerting on. It will give you the mysql query. Take a look at the data in the sensors table for that device and see if it should match.