| Cheshire Cat Computing http://mail.steveshipway.org/forum/ |
|
| Using SNMP for MaxBytes[] http://mail.steveshipway.org/forum/viewtopic.php?f=11&t=2731 |
Page 1 of 1 |
| Author: | phoenix [ Wed May 20, 2009 11:15 am ] |
| Post subject: | Using SNMP for MaxBytes[] |
Is it possible to use SNMP queries to set things other than Tartget[]? For example, can one use an SNMP query for MaxBytes[]? There are several IODs that provide the size of the variable (hrStorageSize, memTotalAvail, ifSpeed, and the like). |
|
| Author: | stevesh [ Wed May 20, 2009 7:28 pm ] |
| Post subject: | Re: Using SNMP for MaxBytes[] |
Although the cfgmaker script uses SNMP to find out the value of MaxBytes on creation of the cfg file, MRTG cannot use SNMP for this as it is liable to change. The MaxBytes value needs to be configured in the RRD file (it is a validity threshold) and so needs to be fixed. Also, Routers2 uses this value for many things and if it were an SNMP lookup it would require many SNMP lookups to be done at display time which may block. If the device were down, there would be no way to query it via SNMP, so we wouldnt know MaxBytes, so we couldnt display the stored data... Having said this, MRTG does re-tune the RRD if it finds that MaxBytes value does not match the maxbytes as configured in the RRD. So, it might be possible to make MRTG do an SNMP query instead, and Routers2 could be set to read the RRD maxbytes instead of making an SNMP lookup. These would be major changes though, and would need to start with MRTG... they would also potentially break many other 3rd-party MRTG utilities. Steve |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|