Cheshire Cat Computing

Software support and information
It is currently Sat Oct 31, 2020 4:30 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: values multiplied by 8
PostPosted: Wed Dec 17, 2003 12:43 am 
Offline
User

Joined: Wed Dec 17, 2003 12:35 am
Posts: 2
Location: University of Tampere, Finland
I have the following entry in my mrtg config:

Target[atmrt3temp]:1.3.6.1.4.1.9.9.13.1.3.1.3.1&1.3.6.1.4.1.9.9.13.1.3.1.3.2:XXXXXXXX@XXX.XXX.XXX.XXX
WithPeak[atmrt3temp]: wmy
YLegend[atmrt3temp]: Degrees C
ShortLegend[atmrt3temp]: C
MaxBytes[atmrt3temp]: 50
Options[atmrt3temp]: nopercent, gauge, growright
Unscaled[atmrt3temp]: dwmy
AbsMax[atmrt3temp]: 50
Title[atmrt3temp]: tayrt1 temperature
Colours[atmrt3temp]: GREEN#00eb0c,BLUE#1000ff,BLUE#1000ff,VIOLET#ff00ff
Legend1[atmrt3temp]: Average 1 minute Inlet Temperature
Legend2[atmrt3temp]: Average 1 minute Outlet Temperature
Legend3[atmrt3temp]: Average 5 minute Inlet Temperature
Legend4[atmrt3temp]: Average 5 minute Outlet Temperature
LegendI[atmrt3temp]: Inlet:
LegendO[atmrt3temp]: Outlet:
PageTop[atmrt3temp]: Temperature - Degrees C

MRTG understands it just fine and the RRD is updated correctly and I can get a sensible
graph using mrtg-rrd.cgi. However, with routers2.cgi all values are multiplied by a factor of 8.
It seems routers2.cgi determines that the data is in bytes and tries to render a graph in bits.
How can I tell it not to do that? Adding Options:bits doesn't seem to make a difference.

_________________
Jussi H?m?l?inen, System Administrator
University of Tampere Computer Centre


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Wed Dec 17, 2003 5:28 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
This occasionally happens when the AI code makes a mistake and thinks you are graphing interface data.

I assume you have v2.11 or later (2.13 is just out).

You need to add the line:

routers.cgi*Options[targetname]: bytes

to force bytes, but probably better is to use

routers.cgi*Mode[targetname]: generic

to remove all defaults.


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Wed Dec 17, 2003 6:57 pm 
Offline
User

Joined: Wed Dec 17, 2003 12:35 am
Posts: 2
Location: University of Tampere, Finland
Actually I am running v2.13. Sorry, forgot to mention that. :) Anyway, seems your advice
helped. Thanks!

_________________
Jussi H?m?l?inen, System Administrator
University of Tampere Computer Centre


Top
 Profile Send private message  
 
 Post subject: values multiplied by 8
PostPosted: Wed Mar 24, 2004 10:57 pm 
Offline
Silver User

Joined: Wed Mar 24, 2004 10:44 pm
Posts: 23
I seem to have the same problem (i.e. routers2.cgi multiplies my values by 8 since i've switched to routers2.cgi). I have tried putting both:
routers.cgi*Mode[target_name]: generic and
routers.cgi*Options[target_name]: bytes
in my MRTG conf file with no luck...

Here's my MRTG conf file:

WorkDir: /some/dir/
IconDir: /mrtgicons/
LogFormat: rrdtool
PathAdd: /usr/local/rrdtool/bin/

routers.cgi*Mode[skata4]: generic
Target[skata4]: `cat /some/path/my.log`
PageTop[skata4]: <H1>I,P ports used in </H1>
Title[skata4]: I,P ports in
MaxBytes[skata4]: 240
MaxBytes1[skata4]: 240
MaxBytes2[skata4]: 1
AbsMax[skata4]: 10000
WithPeak[skata4]: y
Unscaled[skata4]: d
Ylegend[skata4]: ports in use
ShortLegend[skata4]: ports

LegendI[skata4]: P use
LegendO[skata4]: I use
Legend1[skata4]: P ports in use
Legend2[skata4]: I ports in use
Legend3[skata4]: Max P ports in use
Legend4[skata4]: Max I ports in use
Options[skata4]: growright, gauge
Colours[skata4]: ORANGE#ff8930,BLUE#1540db,DARK GREEN#006600,VIOLET#ff00ff

Any suggestions will be greatly appreciated!


Top
 Profile Send private message  
 
 Post subject: values multiplied by 8
PostPosted: Thu Mar 25, 2004 1:35 am 
Offline
Silver User

Joined: Wed Mar 24, 2004 10:44 pm
Posts: 23
ok, I solved it, I just put the line
routers.cgi*Mode[target_name]: generic
at the end of my MRTG conf file (I guess it should've been anywhere after the Target def)


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 35 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group