Hi, If anyone can help with this, I very much appreciate it. I have used MRTG a lot for traffic monitoring, server monitoring and weather station monitoring, but always (till now) using the default 5 minute interval. What I am trying to now is monitor our many (ie 125) printers on an hourly basis, but am getting some unexpected results, and can't see what is wrong. Apologies in advance for the long email, but I think it is best to give as much info. as I can up front. ############################################################# Here is what I am doing:- === We print via Novell's NDPS, and I can extract each printer's job count from the NDPS/Netware host servers. (BTW, I tried getting page counts from our collection of Intel Netports and HP Jetdirects, but the results were to variable - most don't update their SNMP counters). === I have a shell script running from CRON on the hour. 0 * * * * ~/getndps >> getndps.log 2>&1 It gathers the data and splits it into many text files, 2 per printer. As an example, for printer "ku13" it creates data/ku13.data (which is where MRTG gets its data) and data/ku13.hist (handy for debugging, and maybe some custom tabular web pages later on). It then calls MRTG to digest the data. ====== here is ku13.data (1 line with the cumulative job count. The count is low because we had to restart the NDPS server yesterday) ku13 95 ====== and here is ku13.hist Tue May 27 11:00:03 EST 2003 ku13 41 Tue May 27 12:00:02 EST 2003 ku13 46 Tue May 27 13:00:04 EST 2003 ku13 54 Tue May 27 14:00:02 EST 2003 ku13 66 Tue May 27 15:00:05 EST 2003 ku13 76 Tue May 27 16:00:08 EST 2003 ku13 95 Here is a snip from my jobs.cfg file for MRTG (the header, plus the ku13 portion) HtmlDir: /home/ndps/html/ ImageDir: /home/ndps/images/ Logdir: /home/ndps/logs/ Options[_]: growright, perhour, nopercent, integer, noinfo, withzeroes, noo Refresh: 3600 Interval: 60 WriteExpires: Yes # Target[ku13]: `awk ' /ku13/ { print $2; print 0; print 0; print 0 }' data/ku13.d ata ` Title[ku13]: Print Jobs on printer ku13 PageTop[ku13]:

Print Jobs on printer ku13 - HOURLY REFRESH

(Note: this is jobs, not pages. A job can be 1 or many pages, simple text or de nse graphics.) MaxBytes[ku13]: 1000 Options[ku13]: growright, perhour, nopercent, integer, noinfo, withzeroes LegendI[ku13]:  Jobs per Hour: LegendO[ku13]: Ylegend[ku13]: jobs/hr ShortLegend[ku13]: jobs/hr Legend1[ku13]: Print Jobs per Hour Legend2[ku13]: Legend3[ku13]: Here are the first 60 lines of logs/ku13.log (as you can see, I cleared the logs and let them rebuild just before 11:00 today, :- 1054015211 95 0 <-- 16:00:11 (jobs=95) 1054015211 19 0 19 0 1054011611 12 0 12 0 1054011600 12 0 12 0 <-- 15:00:00 (jobs=76) 1054011300 12 0 12 0 1054011000 12 0 12 0 1054010700 12 0 12 0 1054010400 12 0 12 0 1054010100 12 0 12 0 1054009800 12 0 12 0 1054009500 12 0 12 0 1054009200 12 0 12 0 1054008900 12 0 12 0 1054008600 12 0 12 0 1054008300 12 0 12 0 1054008000 12 0 12 0 <-- 14:00:00 (jobs=66) 1054007700 12 0 12 0 1054007400 12 0 12 0 1054007100 12 0 12 0 1054006800 12 0 12 0 1054006500 12 0 12 0 1054006200 12 0 12 0 1054005900 12 0 12 0 1054005600 12 0 12 0 1054005300 12 0 12 0 1054005000 12 0 12 0 1054004700 11 0 12 0 1054004400 5 0 5 0 <-- 13:00:00 (jobs=54) 1054004100 5 0 5 0 1054003800 5 0 5 0 1054003500 5 0 5 0 1054003200 5 0 5 0 1054002900 5 0 5 0 1054002600 5 0 5 0 1054002300 5 0 5 0 1054002000 5 0 5 0 1054001700 5 0 5 0 1054001400 5 0 5 0 1054001100 5 0 5 0 1054000800 5 0 5 0 <-- 12:00:00 (jobs=46) 1054000500 5 0 5 0 1054000200 5 0 5 0 1053999900 5 0 5 0 1053999600 5 0 5 0 1053999300 5 0 5 0 1053999000 5 0 5 0 1053998700 5 0 5 0 1053998400 5 0 5 0 1053998100 5 0 5 0 1053997800 5 0 5 0 1053997500 4 0 5 0 1053997200 0 0 0 0 <-- 11:00:00 (jobs=41) 1053996900 0 0 0 0 ^which is when the log file initialised 1053996600 0 0 0 0 1053996300 0 0 0 0 1053996000 0 0 0 0 1053995700 0 0 0 0 1053995400 0 0 0 0 1053995100 0 0 0 0 1053994800 0 0 0 0 ######### Now for the problems:- ######### 1) the day image ku13-day.png shows the wrong values image histfile 1100-1200 5 5 1200-1300 5 8 1300-1400 12 12 1400-1500 12 10 1500-1600 19 19 2) the day image file is odd in appearance too. ie, the first hour's vertical space is shaded gray and the hour numerals below it are often smeared into a black blob. Copy of image is attached (See attached file: ku13-day.png) As I said, if anyone can help with some advice I'd really appreciate it. Steve Bates Network Administrator Caltex Refineries (NSW) Australia ********************************************************************** *** IMPORTANT INFORMATION *** This correspondence is for the named person's use only. It may contain confidential or legally privileged information or both. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any opinions expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the opinions of Caltex Australia Limited or one of its subsidiaries (collectively the "Caltex Group"). Neither the sender nor the Caltex Group warrants that any communication via the Internet is free of errors, viruses, interception or interference. Information is distributed without warranties of any kind. ********************************************************************** -- Attached file removed by Ecartis and put at URL below -- -- Type: image/png -- Size: 1k (1732 bytes) -- URL : http://www.ee.ethz.ch/~slist/p/04-ku13-day.png -- Unsubscribe mailto:mrtg-request@list.ee.ethz.ch?subject=unsubscribe Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi