| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| create a option called 'inverse' , simular to mirror http://www.steveshipway.org/forum/viewtopic.php?f=26&t=1556 |
Page 1 of 1 |
| Author: | babydr [ Sat Mar 29, 2008 11:19 am ] |
| Post subject: | create a option called 'inverse' , simular to mirror |
[quote="stevesh"]The way I was thinking of doing it was to have something like: cdef:v1=ds0 cdef:v2=ds1,-1,* area:v1 area:v2 which would fit in nicely with the current structure of the rtr_params and usr_params subroutines.[/quote] Steve , this pertains to my post of "Plotting positive valued error counts as negative values" on 26-Mar-2008 . I'll add this request to "routers.cgi : Feature Requests" as well . How about creating a option called 'inverse' or something like that that will do the "...,-1,*" on both ds0 & ds1 ? Then I can (somewhat) easily create a combine graph having the interface traffic showing on the '+' side of '0' & the interface error hit rate showing on the '-' side . Sound reasonable ? Tia , JimL(aka babydr) |
|
| Author: | stevesh [ Mon Mar 31, 2008 9:33 am ] |
| Post subject: | Re: create a option called 'inverse' , simular to mirror |
You could always just use 'Factor[xxxx]: -1' in your MRTG .cfg file instead - this will work with routers2 as it supports negative factors, I think (I might need to check this) |
|
| Author: | babydr [ Tue Apr 01, 2008 1:56 pm ] |
| Post subject: | Re: create a option called 'inverse' , simular to mirror |
Fyi , router.cgi works just fine with factor[xxx]: -1 . But if one uses "Working day average:" the coloration is only above the '0'(zero) line , tho . thank you . Now I get to create a combined graph , change colors , .... this aught to be interesting ... babydr(JimL) |
|
| Author: | stevesh [ Tue Apr 01, 2008 2:01 pm ] |
| Post subject: | Re: create a option called 'inverse' , simular to mirror |
I think you've found a bug.... you win a cookie It seems that the working day colouring (and the greyout colouring probably) go from 0 to +Inf and so if the graph is negitive then they dont colour the bottom half. If I remember right (from a long time back) this was because a bug in RRDTool under Windows meant that if you specified to colour from -Inf to +Inf you in fact got nothing -- -Inf was treated as +Inf. Also, refering to -ve number when the line was only +ve messed up the axis (you had part of the graph -ve even though the line was always +ve). This may be fixed now, so I might re-try it. Not sure about RRD 1.x compatibility though. |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|