Do not report an event by email unless it is "No toner"

Started by Constantine, August 22, 2024, 03:29:17 PM

Previous topic - Next topic

Constantine

Hello! How to make sure that mail does not send notifications about printer errors:
No paper, Door open, Jammed, Low toner, Input tray empty, but notifies by error No toner.
Thanks!





Constantine

Tried it in different ways, but it didn't work.


Tatjana Dubrovica

One option is to generate separate event for low tonner and separate event for all other errors - in this case you will just create multiple rules: one for toner (send e-mail) and something else for others (for example to create alarm).

Filtering in in EPP is harder option and for it you should use left side of EPP - filtering side. I would suggest to write filtering script, that will check current DCI value that is available in $event script parameter. 

 

Constantine

#3
Thank you for your answer, please tell me how to write alarm key like -

DC_THRESHOLD_%i_%<dciId>

for the No toner error.



Constantine


Tatjana Dubrovica

Alarm key can be the same as most probably you have either toner or others and it is not required to make distinction here as they can't coexist
simultaneously for the same device.  

Constantine

Tell me, how to specify a parameter from dciValue in a script?