Last one about apan (really ?!? ;))

stefmit stefmit at comcast.net
Fri Jun 13 05:49:30 CEST 2003


One more question about apan (got everything working, finally!!!): the two 
lines in an SNMP inbytes and outbytes graph show the same color, even though:

1. apan.cfg looks like this: 

my-device;Net-usage;/usr/share/nagios/rrd/my-device_Net-usage.rrd;public:.1.3.6.1.2.1.2.2.1.10.10|public:.1.3.6.1.2.1.2.2.1.16.10;IN:LINE1 
OUT:LINE2;Network throughput;Bytes/sec;

2. the line in the apan.defs files for the COLS array has different colors for 
each entry:

COLS=("#ff0000" "#00ff00" "#0000ff" "#ffff00" "#ff00ff" "#00ffff" "#ff8080" 
"#808080" "#8080ff" )

3. the generate.cgi file looks to me like properly defined to parse the number 
of "members" in $data (IN:LINE1 and OUT:LINE2), i.e. 
for entry in $data; do
        COL=${COLS[$N]}
thus presumably associating a different color for each "N" ...

... but the result is still "mono" colored (red, to be more precise, for both 
variables being plotted).

What am I missing here?

TIA,
Stef

P.S. [OT] Having used before just the simple MRTG, with no RRD support, this 
is my first attempt at learning the latter. Does anybody know how to 
eliminate the "white" space at the "right" of each of the graphs created by 
rrdtool (more obvious for the shorter times ones)


-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list