Re: Max Speed: configuration in smnpd.conf for display in mrtg
On 8/28/19 5:44 AM, Stuart Henderson wrote: > On 2019-08-26, Daniel Ouellet wrote: >> Thanks Stuart, >> >> I guess I had the right oid before, but the fact that is doesn't allow >> the replacement always give me a fail at restart, I assume I wasn't >> using the right oid. >> >> Oh well. >> >> Doing the max speed in mrtg is possible, sure ,but as I have to many >> routers that do change a lot as new customers are added or removed, it >> was a lot simpler to do it in the actual router then trying to always go >> back and over write the final configuration or mrtg each time. > > Can the mrtg config not just be generated by whatever is generating router > configs? Nope. Way more Cisco routers and time to time changes are done on increase access based on new contracts. If it was simple and possible it would have been done long ago. I am just not sure why the bandwidth command on Cisco allow to use the effective bandwidth oppose to be fix on the interface bandwidth and snmpd doesn't allow to overwrite the same things. The fact that it is possible may not be an RFC fix things in the OID definitions, but it is what it is. When I get some time I will look if I can change the snmpd to may be allow it or not. For now every time this apply I manually changes it. Not the end of the world, just very annoying, but I can deal with it.
Re: Max Speed: configuration in smnpd.conf for display in mrtg
On 2019-08-26, Daniel Ouellet wrote: > Thanks Stuart, > > I guess I had the right oid before, but the fact that is doesn't allow > the replacement always give me a fail at restart, I assume I wasn't > using the right oid. > > Oh well. > > Doing the max speed in mrtg is possible, sure ,but as I have to many > routers that do change a lot as new customers are added or removed, it > was a lot simpler to do it in the actual router then trying to always go > back and over write the final configuration or mrtg each time. Can the mrtg config not just be generated by whatever is generating router configs?
Re: Max Speed: configuration in smnpd.conf for display in mrtg
Thanks Stuart, I guess I had the right oid before, but the fact that is doesn't allow the replacement always give me a fail at restart, I assume I wasn't using the right oid. Oh well. Doing the max speed in mrtg is possible, sure ,but as I have to many routers that do change a lot as new customers are added or removed, it was a lot simpler to do it in the actual router then trying to always go back and over write the final configuration or mrtg each time. Daniel On 8/23/19 12:12 PM, Stuart Henderson wrote: > On 2019-08-22, Daniel Ouellet wrote: >> Hi, >> >> Wonder if anyone would know the answer for this. >> >> I try to figure out what is the entry needed in the snmpd.conf for the >> specific display that would show in mrtg when the scan is done. >> >> In short the display as >> >> Max Speed: 1000.0 Mbits/s >> >> to be display as for example >> >> Max Speed: 150.0 Mbits/s >> >> I have all other variable set properly for what's needed, but can't >> figure this one out. >> >> IN Cisco router you can just do >> >> bandwidth 15 >> >> for example to do this >> >> In smtpd.conf I can do >> >> system location "Your city location" >> >> But I haven't been able to figure what's the entry for the display of >> the bandwidth itself oppose to the Interface speed. >> >> I thought this would do: >> >> system ifSpeed "150" >> >> but it doesn't and I really can't figure this one out. >> >> The man page does provide plenty but come short for this one. >> >> I process all the stats from an OpenBSD server and the router I query >> are mostly Cisco but many are also OpenBSD too. >> >> Any clue stick? >> >> Many thanks >> >> Daniel >> >> > > I think you need to just configure MaxBytes in mrtg config for the port. > > Looking at snmpd.conf(5) and looking up the oid you might think of trying > this,... > > oid 1.3.6.1.2.1.2.2.1.5.$ifindex name ifSpeed read-only integer 123456 > > (replace $ifindex with the correct index for the port), but it doesn't > actually work, snmpd doesn't allow overriding an existing oid in this way. > >
Re: Max Speed: configuration in smnpd.conf for display in mrtg
On 2019-08-22, Daniel Ouellet wrote: > Hi, > > Wonder if anyone would know the answer for this. > > I try to figure out what is the entry needed in the snmpd.conf for the > specific display that would show in mrtg when the scan is done. > > In short the display as > > Max Speed:1000.0 Mbits/s > > to be display as for example > > Max Speed:150.0 Mbits/s > > I have all other variable set properly for what's needed, but can't > figure this one out. > > IN Cisco router you can just do > > bandwidth 15 > > for example to do this > > In smtpd.conf I can do > > system location "Your city location" > > But I haven't been able to figure what's the entry for the display of > the bandwidth itself oppose to the Interface speed. > > I thought this would do: > > system ifSpeed "150" > > but it doesn't and I really can't figure this one out. > > The man page does provide plenty but come short for this one. > > I process all the stats from an OpenBSD server and the router I query > are mostly Cisco but many are also OpenBSD too. > > Any clue stick? > > Many thanks > > Daniel > > I think you need to just configure MaxBytes in mrtg config for the port. Looking at snmpd.conf(5) and looking up the oid you might think of trying this,... oid 1.3.6.1.2.1.2.2.1.5.$ifindex name ifSpeed read-only integer 123456 (replace $ifindex with the correct index for the port), but it doesn't actually work, snmpd doesn't allow overriding an existing oid in this way.
Max Speed: configuration in smnpd.conf for display in mrtg
Hi, Wonder if anyone would know the answer for this. I try to figure out what is the entry needed in the snmpd.conf for the specific display that would show in mrtg when the scan is done. In short the display as Max Speed: 1000.0 Mbits/s to be display as for example Max Speed: 150.0 Mbits/s I have all other variable set properly for what's needed, but can't figure this one out. IN Cisco router you can just do bandwidth 15 for example to do this In smtpd.conf I can do system location "Your city location" But I haven't been able to figure what's the entry for the display of the bandwidth itself oppose to the Interface speed. I thought this would do: system ifSpeed "150" but it doesn't and I really can't figure this one out. The man page does provide plenty but come short for this one. I process all the stats from an OpenBSD server and the router I query are mostly Cisco but many are also OpenBSD too. Any clue stick? Many thanks Daniel