When implementing IPv6 it can be important to maintain a view of how it is being used. This presentation provides a quick look at using Zabbix with SNMP to monitor IP protocol usage.
2. Cisco Router Configuration
Setting up SNMPv3 authentication:
snmp-server group zabbix v3 auth
snmp-server user zabbix zabbix v3 auth md5 mypassphrase
3. Testing with Net-SNMP
Configure authentication in a host specific
configuration file (~/.snmp/hosts/hqr.conf):
defVersion 3
defSecurityLevel authNoPriv
defSecurityName zabbix
defAuthType MD5
defAuthPassphrase mypassphrase
4. Testing with Net-SNMP
Get the system name:
$ snmpget hqr sysName.0
SNMPv2-MIB::sysName.0 = STRING: HQR
5. Internet Protocol MIB (IP-MIB)
ipSystemStatsHCOutForwDatagrams OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of datagrams for which this entity
was not their final IP destination and for which
it was successful in finding a path to their
final destination."
http://tools.ietf.org/html/rfc4293#page-34
6. Internet Protocol MIB (IP-MIB)
Get the number of forwarded datagrams:
$ snmpget hqr ipSystemStatsHCOutForwDatagrams.ipv4
IP-MIB::ipSystemStatsHCOutForwDatagrams.ipv4 = Counter64:
19993419
$ snmpget hqr ipSystemStatsHCOutForwDatagrams.ipv6
IP-MIB::ipSystemStatsHCOutForwDatagrams.ipv6 = Counter64:
285
8. Internet Protocol MIB (IP-MIB)
ipIfStatsHCInForwDatagrams OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of input datagrams for which this
entity was not their final IP destination and
for which this entity attempted to find a
route to forward them to that final
destination.”
http://tools.ietf.org/html/rfc4293#page-47
9. Internet Protocol MIB (IP-MIB)
Query received IP datagrams on interface
GigabitEthernet0/0 (index 2):
$ snmpget hqr ipIfStatsHCInReceives.ipv4.2
IP-MIB::ipIfStatsHCInReceives.ipv4.2 =
Counter64: 106157
$ snmpget hqr ipIfStatsHCInReceives.ipv6.2
IP-MIB::ipIfStatsHCInReceives.ipv6.2 =
Counter64: 1040
10. Network Monitoring with Zabbix
✓ Open Source
✓ Graphical User Interface
✓ SNMP, IPMI, JMX Agents
✓ Notification Triggers
✓ Historical Database
✓ Graphing
11. Zabbix: Latest Data View
✓ Items gather data from
a host for a particular
metric
✓ Each item has it’s own
schedule for collection
(i.e. every 60s, 24h)
✓ Quick Graphing
12. Zabbix: Configure SNMP Item
✓ Net-SNMP Integration
✓ Graphical Configuration
✓ Flexible Intervals
✓ Store As-Is or Delta
✓ History Storage Period
✓ Trend Storage Period
✓ Templates & Cloning