| Cheshire Cat Computing http://steveshipway.org/forum/ |
|
| values multiplied by 8 http://steveshipway.org/forum/viewtopic.php?f=2&t=96 |
Page 1 of 1 |
| Author: | ccjuha [ Wed Dec 17, 2003 12:43 am ] |
| Post subject: | values multiplied by 8 |
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. |
|
| Author: | stevesh [ Wed Dec 17, 2003 5:28 pm ] |
| Post subject: | |
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. |
|
| Author: | ccjuha [ Wed Dec 17, 2003 6:57 pm ] |
| Post subject: | |
Actually I am running v2.13. Sorry, forgot to mention that. helped. Thanks! |
|
| Author: | dez [ Wed Mar 24, 2004 10:57 pm ] |
| Post subject: | values multiplied by 8 |
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! |
|
| Author: | dez [ Thu Mar 25, 2004 1:35 am ] |
| Post subject: | values multiplied by 8 |
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) |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|