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.
Last updated Tue Apr 16 19:09:25 PDT 2002 by <thomas.erskine@sourceworks.com>.
[