| 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/ |
|