Cheshire Cat Computing

Software support and information
It is currently Sun May 19, 2013 6:28 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Threshold question
PostPosted: Sat Mar 26, 2005 10:45 am 
Offline
User

Joined: Sat Mar 26, 2005 5:40 am
Posts: 5
We current have threshold set for CPU utilization and also for bandwidth utilization. The alerting works fine for both, but the graphs display "funny". For the cpu utilization I have:
ThreshMaxI[target]: 75
This displays correctly on the graph as 75%
For wan links I have:
ThreshMaxI[target]: 60%
Again the alerting works correctly, but my graphs are wrong. On a t3 link with maxbytes set to 5526250, the graphs show a threshold of around 3 meg. The exact number escapes me at the moment.
This was with 2.16 beta5. I put 2.16 beta6 on today, and now for anything with a % I don't see the threshold line at all.
Is there any way to fix this?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 26, 2005 11:26 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Hmm, beta 6 may have broken it. Can you post the relevant portions of the cfg file? I will test this when the office opens again on Tuesday. Thanks for the notification...

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 26, 2005 12:10 pm 
Offline
User

Joined: Sat Mar 26, 2005 5:40 am
Posts: 5
YLegend[target-cpu]: Percentage CPU load
ShortLegend[target-cpu]: %
Directory[target-cpu]: target
Legend1[target-cpu]: Avg 1 min CPU Utilization in %
Legend2[target-cpu]: Avg 5 min CPU Utilization in %
LegendI[target-cpu]:  Avg 1 min CPU Load:
LegendO[target-cpu]:  Avg 5 min CPU Load:
WithPeak[target-cpu]: ywm
MaxBytes[target-cpu]: 100
Options[target-cpu]: integer, gauge, nopercent
Unscaled[target-cpu]: dwmy
ThreshMaxI[target-cpu]: 75
ThreshProgI[target-cpu]: /opt/mrtg-2.10.15/bin/cpu.pl

The cpu utilization still works correctly, and always has when graphed.

Target[target_1]: 1:community@target:
SetEnv[target_1]: MRTG_INT_IP="xx.xx.xx.xx" MRTG_INT_DESCR="Serial3/0"
Directory[target_1]: target
MaxBytes[target_1]: 5526250
ThreshDesc[target_1]: Interface Serial3/0
ThreshMaxI[target_1]: 60%
ThreshProgI[target_1]: /opt/mrtg-2.10.15/bin/bandwidthin.pl
ThreshMaxO[target_1]: 60%
ThreshProgO[target_1]: /opt/mrtg-2.10.15/bin/bandwidthout.pl
Title[target_1]: Serial3/0

This one now doesn't display a threshold line at all, or the legend for it in the graph. The previous version I had (2.16beta5 showed the line, but appeared to have the wrong value. It would show the line at I think about 3.2 mb/s, where I would expect ~26.5mb/s.

The only configuration change I made between the two version is I added:
optimise = yes
I have changed it back to no and it still doesn't display.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 30, 2005 4:35 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
I can't manage to duplicate this.

I have tested this here with the latest beta, and it appears to work. I've tried with both an interface (implicit bits conversion, like your seconds example) and a generic (no bits conversion, like your first example), also with an explicit value and with a percentage of the MaxBytes. All display as I would have expected.

One thing I notice is that the latest version of RRDTool will, by default, NOT display a legend for a line not displayed on the graph. I will add the option to force this (although it will need to check for RRD version it works in. Maybe your data is too small for the horizontal line to appear in the graph and your rrdtool version suppresses it?

I am testing with RRDTool v1.0.46. If yours is much later it may have the default suppression enabled.

optimise=yes would not affect this, it affects the devices menu mainly if you enable it when you have oddly ordered cfg files.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 01, 2005 5:19 am 
Offline
User

Joined: Sat Mar 26, 2005 5:40 am
Posts: 5
Steve,
Sorry I think I sent you on a wild goose chase. It looks like it was an issue with the "unscaled" being set or not. The graph just wasn't showing it.


Top
 Profile  
 
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 1 guest


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

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group