Printer monitoring

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
mario.rimann
Posts: 6
Joined: Wed Oct 28, 2009 4:35 pm

Printer monitoring

Post by mario.rimann »

Hi

We're starting to monitor our printer's toner levels and page counters. So far everything works fine.

But of course, the printers are switched off during night, which couses gaps in the graphs as shown in the screenshot.

Is there a solution, to draw the lines during the gap time, expecting the levels to stay the same during "off-time"? Or to draw the missing part of the graph as soon as the next valid value is recieved?

Cheers,
Mario
Attachments
Screenshot of our color laser showing the gap during night time.
Screenshot of our color laser showing the gap during night time.
printer.png (37.92 KiB) Viewed 2352 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

There is no "valid" way to do this. You may of course introduce a script of your own, that prints the last values even if the target does not respond.
R
cactusmani3c
Posts: 1
Joined: Wed Jan 06, 2010 3:34 pm
Contact:

this can be done by a lot of printers in the settings

Post by cactusmani3c »

many printers can actually email you when they're low on ink, etc anyway!
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Actually, the solution is to modify the heartbeat in your Data Templates to say upto 1 day ~86400. That way you won't get any gaps if the printer is down less than 1 day. You can increase this value as well.

Now, for existing RRDfiles, you will need to "tune" them to adjust the heartbeat.

QED.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Mika2008
Posts: 26
Joined: Tue Dec 01, 2009 4:24 pm

Post by Mika2008 »

hillo i m interresting
mario.rimann
Posts: 6
Joined: Wed Oct 28, 2009 4:35 pm

SOLVED by adjusting the heartbeat

Post by mario.rimann »

:D
I stumbled upon that heartbeat-change mentioned above while searching for something else and yes, it works!

But as said, existing *.rrd files must be changed (tuned). I did it with the following command:

Code: Select all

rrdtool tune /var/www/cacti/rra/RRDFILENAME.rrd --heartbeat DATASOURCENAME:86400
Replace the two uppercase placeholders with the filename and the data source name and it run the command from shell.

I found it on the debugging-checklist at http://docs.cacti.net/manual:087:4_help.2_debugging where it states:
For standard 300 seconds polling intervals (step=300), it is wise to set minimal_heartbeat to 600 seconds. If a single update is missing and the next one occurs in less than 600 seconds from the last one, rrdtool will interpolate the missing update. Thus, gaps are “filled” automatically by interpolation. Be aware of the fact, that this is no “real” data! Again, this must be done in the Data Template itself and by using rrdtool tune for all existing rrd files of this type.
Thanks for all replies!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The bad thing is, that you won't see errors in data gathering or if sth happens to your device unless the heartbeat has passed.
You will not be able to distinguish between "working" and "not working".
That's why I said that there is no "valid" way.
R
mario.rimann
Posts: 6
Joined: Wed Oct 28, 2009 4:35 pm

Post by mario.rimann »

gandalf wrote:You will not be able to distinguish between "working" and "not working".
I fully agree. For all other stuff, I wouldn't agree this as a solution - but for monitoring toner levels in our printers it's totally ok.

- mario
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests