[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]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing Software support and information 2003-11-06T13:10:24+13:00 http://www.steveshipway.org/forum/feed.php?f=2&t=78 2003-11-06T13:10:24+13:00 2003-11-06T13:10:24+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=78&p=239#p239 <![CDATA[Plotting days against Uptime]]>
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

Statistics: Posted by stevesh — Thu Nov 06, 2003 1:10 pm


]]>
2003-11-05T12:38:56+13:00 2003-11-05T12:38:56+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=78&p=234#p234 <![CDATA[Plotting days against Uptime]]> Statistics: Posted by stevesh — Wed Nov 05, 2003 12:38 pm


]]>