Page 1 of 1

Send printers pagecount in email every 1st date of month

Posted: Fri May 08, 2020 9:09 am
by andrew1
Hello

I need a little help please
In my organization we have a nagios core 4.4.5 and we monitor everything.

We monitor also printers and pagecounts

I would like to have emails on page counts of every printer in the 1 day of month remember only pagecounts.
Like: printerAAA ---- pagecount 123456
printerBBB ---- pagecount 123456
printerCCC ---- pagecount 123456

Can someone help me how to achive this task?

Thanks in advance

Re: Send printers pagecount in email every 1st date of month

Posted: Tue May 12, 2020 12:05 pm
by jbrunkow
The check_hpjd should be available by default in your /usr/local/nagios/libexec and works with a wide array of printer models.
https://assets.nagios.com/downloads/nag ... nters.html

I would first try to configure any check on that device, then you can filter the text output by piping it through a basic bash command like cut.

If you would like to examine what the plugin is doing, you could copy the check_hpjd script to your own system and open it with a text editor.