| Cheshire Cat Computing https://steveshipway.org/forum/ |
|
| Can I disable the threshold display on a graph? https://steveshipway.org/forum/viewtopic.php?f=2&t=4109 |
Page 1 of 1 |
| Author: | Rednarb [ Thu Dec 24, 2009 9:47 am ] |
| Post subject: | Can I disable the threshold display on a graph? |
I'm monitoring an APC PDU that gives the results of its amperage load as an integer, though I have to divide by 10 to get it to show the true load including decimal. To do this I use the mrtg Factor parameter with 0.1. This works just fine however when I assign a threshold to peak usage, I have to use the full number. For instance, I want the threshold to be 20 amps so I use this line: ThreshMaxI[pdu-r1c3-a-b1-load]: 200 Routers2 reads this as 200 amps and doesn't take into account the factor of 0.1. If I set it to 20, then Routers2 reports the threshold as 20 amps but of course MRTG then triggers the threshold script because it's counting on the number before factoring. Since there may not be a Routers2 fix in the very near future, is there just a way I can disable displaying the threshold on on the graph itself so that it doesn't show 200 Amps as the threshold? TIA, Eric Brander |
|
| Author: | stevesh [ Thu Dec 24, 2009 5:53 pm ] |
| Post subject: | Re: Can I disable the threshold display on a graph? |
This is a bug... the Factor[] should be applied to the Threshold values before display, as it is with the MaxBytes and AbsMax. There is also currently no way to prevent threshold line display either, although I agree there should be. I will try and get that into the next beta; I should have a bit of time to work on this over next week. |
|
| Author: | Rednarb [ Fri Dec 25, 2009 3:29 am ] |
| Post subject: | Re: Can I disable the threshold display on a graph? |
Thanks again, Steve. You're amazing. Happy Holidays! |
|
| Author: | Rednarb [ Fri Dec 25, 2009 10:20 am ] |
| Post subject: | Re: Can I disable the threshold display on a graph? |
More thought: Couldn't I have just divided by 10 on the target line and skip factor and this issue altogether? |
|
| Author: | stevesh [ Fri Dec 25, 2009 10:50 am ] |
| Post subject: | Re: Can I disable the threshold display on a graph? |
That is the best way to do it - always do appropriate division on the Target line in order to make the stored value in SI units (in this case, if the SNMP returns the value in tenths, divide by ten of course). Of course your data that has already been collected is in tenths so you have to lose your history to make the change now... |
|
| Author: | stevesh [ Fri Jan 08, 2010 1:17 pm ] |
| Post subject: | Re: Can I disable the threshold display on a graph? |
I've fixed the Factor[]/threshold problem in the current version, now testing. |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|