Send printers pagecount in email every 1st date of month

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
andrew1
Posts: 1
Joined: Fri May 08, 2020 9:00 am

Send printers pagecount in email every 1st date of month

Post 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
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked