Well another lessoned learned, it makes a difference to use the correct evaluator.

THESE DO NOT WORK: 
equal
notequal
supposedtobe

THESE DO WORK and are documented here ( https://www.observium.org/docs/alert_checker/#syntax-of-test-evaluators )
equals
notequals
is
isnot

again here is the corrected and working FEX power supply alert checker:
Inline image 1



Sam Jones || CCNA

VoIP Network Engineer || Idaho State University

jonesamu@isu.edu  ||  (208) 282-4525


On Mon, Jan 23, 2017 at 10:31 AM, Sam Jones <jonesamu@isu.edu> wrote:
Thanks adam, I see that I selected the wrong entity type of sensor rather than status.  I meant to match the status entity that laszlo's attached graph stated.
I have attached a new and corrected screenshot.

Inline image 1

Sam Jones || CCNA

VoIP Network Engineer || Idaho State University

jonesamu@isu.edu  ||  (208) 282-4525


On Fri, Jan 20, 2017 at 6:59 PM, Adam Armstrong <adama@memetic.org> wrote:
That's status, not sensor.

adam.

On 19/01/2017 06:34:10, Laszlo Nemeth <lnemeth@emarsys.com> wrote:

Hello

Last night one of our Cisco Nexus FEX's PS went down and i realized that
we don't have alarm to check the status of the FEX's PS.

I would like to write one. I found a graph about this fault PS. Normally
the value 2 but after that is went to fault state the value is 4. I
attached the picture.

So the question is in this case what is Entity Match that i have to use?
I tried this but it doesn't work:

sensor_value equal 4
hostname match *sw*
sensor_class equals PowerOperType

The "PowerOverType" came from the attached picture RRD name (it was just
a try :) Or what is the normal way to find the sensor name for the alert?

Thanks

BR
Laszlo

_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium