Re: upgrading to 64bit counter
Marc Powell <[email protected]> Sun, 27 Jan 2008 09:42:24 -0600
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <[email protected]> |
On Jan 26, 2008, at 6:01 PM, james bond wrote: > > --- Ed Ravin <[email protected]> wrote: > > > On Fri, Jan 25, 2008 at 09:21:08AM -0800, james bond > > wrote: > > > > > > Have Cricket use an exec: source to call an external > > script that uses > > NetSNMP commands to fetch the values you want. This > > assumes you have > > a NetSNMP build that supports SNMPv2, but that > > should be easy to get > > from sunfreeware.com. > > > > Hi, > Thanks a lot Ed for your reply. > I installed SNMPv2, and I have been trying to figure > out where to add my code into cricket. I have been > checking collector script but with no success to where > to add my stuff. > Could you provide me with more info on where to > proceed. > As indicated above, you want to use the EXEC datasource type. http://cricket.sourceforge.net/support/doc/reference.html#datasource An example from my configuration is that I have a script that obtains the number of current NAT translations from a router. This script simply outputs a single number -- $ /usr/local/cricket/bin/check_nat_trans -H my.router.foo 147 Defaults confguration to use it looks like -- datasource nat-trans-ds ds-source = "EXEC:0:/usr/local/cricket/bin/ check_nat_trans -H %router%" rrd-ds-type = GAUGE targetType nat-trans ds = "nat-trans-ds" view = "Nat Translations: nat-trans-ds" Target definition to use it looks like -- target --default-- router = my.router.foo target Nat_Trans display-name = Nat-Trans long-desc = "Total Nat Translations" target-type = nat-trans HTH Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/