[mrtg] Config file help

John john at thetethered.com
Tue Jan 20 01:22:13 CET 2009


I'm running MRTG version 2.10.15 on windows and I'm having a problem
with the data not being stored to the log file correctly. The script I
made (apcaccess.pl) talks to apcaccess.exe (which is part of apcupsd).
The problem output is a counter that only counts up when the UPS is on
the battery.  I think my problem is in my config file.  I included all
the relevant parts, I think.

Thanks for any help.

Output from my external script
553
0
0
Back-UPS XS 1300

Part of my config
##################################################################
# APC Back-UPS XS 1300 Time on battery
Target[XS-1300_Onbatt]: `perl apcaccess.pl onbatt`
PageTop[XS-1300_Onbatt]: <center><H1>APC Back-UPS XS
1300</center></H1></center>
ShortLegend[XS-1300_Onbatt]: Seconds
Legend1[XS-1300_Onbatt]: Seconds
Legend2[XS-1300_Onbatt]:
Legend3[XS-1300_Onbatt]: Maximal 5 Minute Time on Battery
Legend4[XS-1300_Onbatt]:
LegendI[XS-1300_Onbatt]: Seconds:&nbsp;
LegendO[XS-1300_Onbatt]:
Options[XS-1300_Onbatt]: growright, nobanner, pngdate, transparent,
nopercent, noo
#Unscaled[XS-1300_Onbatt]: dwmy
MaxBytes1[XS-1300_Onbatt]: 300
MaxBytes2[XS-1300_Onbatt]: 300
#AbsMax[XS-1300_Onbatt]: 1000
Title[XS-1300_Onbatt]: XS-1300 Time on Battery
Ylegend[XS-1300_Onbatt]: Seconds

snippet from log file
1230945301 533 0
1230945301 0 0 0 0
1230945002 0 0 0 0
1230945000 0 0 0 0
1230944700 0 0 0 0
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: apcaccess.pl
Url: http://lists.oetiker.ch/pipermail/mrtg/attachments/20090119/341656fc/attachment.pl 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20090119/341656fc/attachment.bin 


More information about the mrtg mailing list