Howdy, I recently started to use an external program that MRTG calls to draw graphs.
Everytime it runs, i get these errors: bash-3.00# /usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/etc/modems.cfg Use of uninitialized value in sprintf at /usr/local/mrtg-2/bin/mrtg line 1260. Use of uninitialized value in sprintf at /usr/local/mrtg-2/bin/mrtg line 1260. Use of uninitialized value in sprintf at /usr/local/mrtg-2/bin/mrtg line 1260. Use of uninitialized value in sprintf at /usr/local/mrtg-2/bin/mrtg line 1260. Use of uninitialized value in sprintf at /usr/local/mrtg-2/bin/mrtg line 1260. Use of uninitialized value in sprintf at /usr/local/mrtg-2/bin/mrtg line 1260. Use of uninitialized value in sprintf at /usr/local/mrtg-2/bin/mrtg line 1260. Use of uninitialized value in sprintf at /usr/local/mrtg-2/bin/mrtg line 1260. Use of uninitialized value in sprintf at /usr/local/mrtg-2/bin/mrtg line 1260. Use of uninitialized value in pattern match (m//) at /usr/local/mrtg-2/bin/mrtg line 1247. Use of uninitialized value in sprintf at /usr/local/mrtg-2/bin/mrtg line 1260. Use of uninitialized value in pattern match (m//) at /usr/local/mrtg-2/bin/mrtg line 1247. Use of uninitialized value in sprintf at /usr/local/mrtg-2/bin/mrtg line 1260. Use of uninitialized value in pattern match (m//) at /usr/local/mrtg-2/bin/mrtg line 1247. Use of uninitialized value in sprintf at /usr/local/mrtg-2/bin/mrtg line 1260. This is my config line for that scripts: Target[modems]: `/usr/local/scripts/modem_count.pl` YLegend[modems]: # of Modems ShortLegend[modems]: modems MaxBytes[modems]: 50000 Options[modems]: gauge,nopercent,growright,noinfo,pngdate,unknaszero,integer Title[modems]: # of Modems Colours[modems]: GREEN#00eb0c,BLUE#1000ff,BLUE#1000ff,VIOLET#ff00ff LegendI[modems]: # of Registered Modems: LegendO[modems]: PageTop[modems]: <H1># of Modems </H1> kMG[modems]: ,, And this is what I get for output when I run the script manually: bash-3.00# /usr/local/scripts/modem_count.pl 10829 10829 1186083574 modemsbash-3.00# I also tried adding another \n at the end to see if that helped, but I am still getting the error. mrtg-2.15.2 - Multi Router Traffic Grapher The graphs are coming out right, but I am just getting the sprintf errors. If anyone knows whats going on that would be helpful. Thanks, John -- John "JB" Barbieri Systems Engineer MetroCast Cablevision [EMAIL PROTECTED] _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
