[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 - Plotting days against Uptime
Cheshire Cat Computing
http://www.steveshipway.org/forum/

Plotting days against Uptime
http://www.steveshipway.org/forum/viewtopic.php?f=2&t=78
Page 1 of 1

Author:  stevesh [ Wed Nov 05, 2003 12:38 pm ]
Post subject: 


Author:  stevesh [ Thu Nov 06, 2003 1:10 pm ]
Post subject: 

This is a bit of a non-standard hack for MRTG.

You are querying an OID that returns 1 (up) or 2 (down), and multiplying by 100. So, now 100 is up and 200 is down.
You have maxbytes set to 100, so now up = 100 and down = Undef (since 200>100).
When you get the CSV, undef is shown as 0.
When you query the average, Undef is ignored, so you are averaging over a set containing only 100 or undef, hence average is 100.

This is really a MRTG query... however, I would do this by making a script wrapper that gets the SNMP value, and maps 2->0, 1->100. Then you get 0 for down and 100 for up. You could then graph this the way you are trying.

Steve

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