[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing :: View topic - Graphing small numbers
Cheshire Cat Computing
http://www.steveshipway.org/forum/

Graphing small numbers
http://www.steveshipway.org/forum/viewtopic.php?f=15&t=925
Page 1 of 1

Author:  cntrytwist [ Tue Jul 04, 2006 12:49 am ]
Post subject:  Graphing small numbers


Author:  stevesh [ Tue Jul 04, 2006 10:29 am ]
Post subject: 

There shouldnt be any problem in graphing this sort of thing, I do it here all the time.

Make sure you have Option[]:gauge set (else you might not get anything). Also you might want to have routers.cgi*Option[]:fixunit to stop the K or M prefix. However if the number is only 6.5 then I dont see why you'd have a K! rrdtool can cope with any number of decimal places, so output the number as accurately as you can. Also, makes ure not to have perminute or perhour set anywhere, and that MaxBytes is set high enough. You might need 'routers.cgi*Options[]:nomax nopercent' as well to suppress the max line and percentages.

Check to make sure that your data gathering script is definitely outputting the numbers you expect and not something much larger (if you're still getting M or K)

If you still have problems, post the cfg files snippet here, along with an image of the graph you're getting and a description of how you want it to be different.

Author:  cntrytwist [ Fri Jul 07, 2006 6:16 pm ]
Post subject:  Still don't have it yet.

Ok, finally got the latest RRDtool and MRTG installed and working fine. Here's the code from the CFG file:

WorkDir: /Library/WebServer/Documents/mrtg
Options[_]: growright, gauge, nopercent, noo, nopercent, fixunit
Logformat: rrdtool
LibAdd: /usr/local/rrdtool-1.2.13/lib/perl/5.8.6/darwin-thread-multi-2level
PathAdd: /usr/local/rrdtool-1.2.13/bin

######################################################################
# System: STL-Client
# Description: Tranzeo TR6Rt, OS 6.3.34(1019), FW TR6-2.0.9Rt, 5.xGHz, 19dBi int. antenna
# Contact: KPAR Radio
# Location: Radar Base Twoer
######################################################################


### Interface 1 >> Descr: 'WiFi802.11a' | Name: '' | Ip: '1' | Eth: '' ###

Target[Satellite]: `perl /Library/WebServer/Documents/mrtg/cfg/satellite.pl`
ShortLegend[Satellite]: EB
YLegend[Satellite]: Signal Strength
Legend1[Satellite]: Current Signal Strength
LegendI[Satellite]: EB
LegendO[Satellite]:
SetEnv[Satellite]: MRTG_INT_IP="192.168.0.210" MRTG_INT_DESCR="Satellite"
MaxBytes[Satellite]: 13
Title[Satellite]: Signal Strength
PageTop[Satellite]: <H1>Signal Strength</H1>
Unscaled[Satellite]: ymwd
routers.cgi*Options[Satellite]:nomax nopercent fixunit

<TABLE>
<TR><TD>System:</TD> <TD>Comstreat</TD></TR>
<TR><TD>Maintainer:</TD> <TD>KPAR Radio</TD></TR>
<TR><TD>Description:</TD><TD>etherTerm Telnet Session </TD></TR>
<TR><TD>ifType:</TD> <TD>EtherTerm</TD></TR>
<TR><TD>ifName:</TD> <TD></TD></TR>
<TR><TD>Max EB:</TD> <TD>13 EB</TD></TR>
<TR><TD>Ip:</TD> <TD>192.168.0.210</TD></TR>
</TABLE>


Here's the code from the Perl script that is referenced above:

#!/usr/bin/perl
use Net::Telnet();
$etherTerm = new Net::Telnet( Timeout=>10, Errmode=>'die', Prompt=>'/>/');
$etherTerm->open("192.168.0.210");
#$etherTerm->login("","stat10n");
$etherTerm->cmd("stat10n");
$etherTerm->cmd("EB");
@lines = $etherTerm->cmd("EB");
foreach( @lines ) {
@aFields = split/\s+/;
# print $aFields[1];
}
#$bigNumber = $aFields[1] * 10;
print $aFields[1] . "\n0\nquite some time\nComstream ABR202";
#$etherTerm->cmd("BY");
#$etherTerm->cmd(String=>"exit", Errmode=>"return");


The above script returns the following every time it is run:

6.0
0
quite some time
Comstream ABR202


However, if you will look at the following image, the numbers just don't graph the same as what is being returned.



Thanks in advance for your help.
cntrytwist

Author:  cntrytwist [ Sat Jul 08, 2006 3:49 pm ]
Post subject:  Further gawking.

Ok, I've been looking over this graph and over this graph, and over it again, and have found that the value being returned is a percent of the max bytes. I don't mind a percent, but I do want a graph to show me the actual numbers. Is this a possibility?
Thanks again.

Author:  stevesh [ Sat Jul 08, 2006 6:26 pm ]
Post subject: 

One thing to try is to have routers.cgi*Options[]:bytes to make sure you arent getting multipled by 8 (in some cases, it thinks its graphing data throughput, and converts to bits).

The graph you give doesnt seem to match the .cfg file you specify, though - the max is 13 in the cfg but 1.04k on the graph...

If the returned value is a percentage of something, then you can display the actual value by using Factor[] to multiply by max/100. Eg,

Factor[]: 10.24

will convert a percentage to a range 0-1024.

Author:  cntrytwist [ Sun Jul 09, 2006 4:14 pm ]
Post subject:  Solved...

So, here's my config file which finally did it. I don't understand it yet, but this actually works.

# Created by
# ./cfgmaker --global 'WorkDir: /Library/WebServer/Documents/mrtg' --global 'Options[_]: bits, growright' --output /Library/WebServer/Documents/mrtg/cfg/STL-Client.cfg radi0@192.168.0.206

WorkDir: /Library/WebServer/Documents/mrtg
Options[_]: growright, gauge, nopercent, noo
Logformat: rrdtool
LibAdd: /usr/local/rrdtool-1.2.13/lib/perl/5.8.6/darwin-thread-multi-2level
PathAdd: /usr/local/rrdtool-1.2.13/bin
routers.cgi*Icon[]: satellite-sm.gif
routers.cgi*Options[]:bytes

######################################################################
# System: Satellite Receiver
# Description: Tranzeo TR6Rt, OS 6.3.34(1019), FW TR6-2.0.9Rt, 5.xGHz, 19dBi int. antenna
# Contact: KPAR Radio
# Location: Station Studio
######################################################################


### Interface 1 >> Descr: 'WiFi802.11a' | Name: '' | Ip: '1' | Eth: '' ###

Target[Satellite]: `perl /Library/WebServer/Documents/mrtg/cfg/satellite.pl`
ShortLegend[Satellite]: EB
YLegend[Satellite]: EB Signal Strength
Legend1[Satellite]: Current EB Signal Strength
LegendI[Satellite]: EB
LegendO[Satellite]:
SetEnv[Satellite]: MRTG_INT_IP="192.168.0.210" MRTG_INT_DESCR="Satellite"
MaxBytes[Satellite]: 13
Title[Satellite]: EB Signal Strength
PageTop[Satellite]: <H1>EB Signal Strength</H1>
Unscaled[Satellite]: ymwd
Factor[Satellite]: .125

routers.cgi*Options[Satellite]:fixunit
routers.cgi*Icon[Satellite]: satellite-sm.gif

<TABLE>
<TR><TD>System:</TD> <TD>Comstreat</TD></TR>
<TR><TD>Maintainer:</TD> <TD>KPAR Radio</TD></TR>
<TR><TD>Description:</TD><TD>etherTerm Telnet Session </TD></TR>
<TR><TD>ifType:</TD> <TD>EtherTerm</TD></TR>
<TR><TD>ifName:</TD> <TD></TD></TR>
<TR><TD>Max EB:</TD> <TD>13 EB</TD></TR>
<TR><TD>Ip:</TD> <TD>192.168.0.210</TD></TR>
</TABLE>


Thanks a million for your help.

Author:  stevesh [ Mon Aug 14, 2006 3:51 pm ]
Post subject:  Re: Solved...


Page 1 of 1 All times are UTC + 12 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/