BTW this is documented here :

 

https://docs.observium.org/entities/#printer-supplies

 

😊

 

Adam.

 

From: observium <observium-bounces@observium.org> On Behalf Of Walter Onda via observium
Sent: 19 October 2018 21:07
To: Adam Armstrong via observium <observium@observium.org>
Cc: Walter Onda <walter@onda.ch>
Subject: Re: [Observium] Alert Checker for Printer Toner

 

Hello Adam

It works!

Thank you
Walter

 

Am 19.10.2018 um 21:36 schrieb Adam Armstrong via observium:

Hi,

 

The metric you’re looking for is ‘supply_value’

 

check_entity('printersupply', $supply, array('supply_value' => $supplyperc));

 

adam.

 

From: observium <observium-bounces@observium.org> On Behalf Of Walter Onda via observium
Sent: 19 October 2018 20:07
To: observium@observium.org
Cc: Walter Onda <walter@onda.ch>
Subject: [Observium] Alert Checker for Printer Toner

 

Hello

I spent a long time to make a toner alert when it arrive lower than 2 %, it doesn't matter which color.

Is this condition correct?

Because some of this printer has just 1% but it shown as "ok".

Has maybe somebody an suggestion?

Regards and have a nice weekend
Walter




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