Remstats Home


  About remstats
  Release Notes
  FAQ
  Conventions
  Prerequisites
  Installation
  Configuration
  Configuration Tools
  Servers
  Collectors
      cisco-access-server-collector
      dbi-collector
      dns-collector
      error-collector
      log-collector
      nt-status-collector
      ntop-collector
      ping-collector
      port-collector
      program-collector
      remoteping-collector
      snmp-collector
      snmp-route-collector
      unix-status-collector
  Updater
  Monitors
  pagemakers
  run-remstats2
  CGIs
  troubleshooting
  do-traceroutes
  Miscellany
  Thank-you
  Index


Live Data

Remstats was written by Thomas Erskine at the CRC in Canada and now looking for work.

[Top] [Prev] [Next]

snmp-collector - get data via SNMP

Usage:

Can't locate SNMP_util.pm in @INC (@INC contains: . /home/groups/r/re/remstats/lib /home/users/t/te/terskine/lib/perl /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl) at ../snmp-collector line 30.
BEGIN failed--compilation aborted at ../snmp-collector line 30.

Description:

The snmp-collector collects data available via SNMP. There are some things that are hardcoded in, but it's mostly configurable. It will attempt to query for the following, if available:

  • sysDescr - tells what kind of a device this is
  • sysUptime - how long it has been up

and use them in the host index page.

The snmpif-* rrd is wired into the snmp-collector (for now) and causes it to fetch the following for each interface:

  • ifType - interface type
  • ifOperStatus - operational status
  • ifSpeed - interface speed
  • ifInErrors - input errors
  • ifOutErrors - output errors
  • ifInOctets - input octets (aka bytes)
  • ifOutOctets - output octets (aka bytes)
  • ifInUcastPkts - input unicast packets
  • ifOutUcastPkts - output unicast packets
  • ifInNUcastPkts - input non-unicast (broadcast and multicast) packets
  • ifOutNUcastPkts - output non-unicast (broadcast and multicast) packets

The sysDescr and sysUptime are saved for the host display and the ifType and ifSpeed are combined to give a hardware description for the interface. Crude, but portable.

For other SNMP data, you'll need to look at the [oids] file in the configuration directory. The rrd will need to contain oid lines specifying names assigned in the oids section. If the host doesn't have one, the rrd will also need to specify a community. Here's an example:

	[rrd snmpmem]
	source          snmp
	step            300
	data            freemem=ciscofreemem GAUGE:600:0:U
	data            totalmem=ciscototalmem GAUGE:600:0:U
	archives        day-avg week-avg month-avg year-avg
	times           day yesterday week month year
	oid             CiscoFreeMem
	oid             CiscoTotalMem

This rrd definition will fetch the amount of free memory and total memory available on a Cisco router. Since it's querying a Cisco-specific MIB, it's not usefull on other gear.


[Top] [Remstats] [SourceWorks] [RRDtool] [SourceForge]
Last updated Fri May 30 13:51:10 PDT 2003 by <terskine@users.sourceforge.net>.