Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    MRTG SNMP Oids

    Scheduled Pinned Locked Moved SNMP
    1 Posts 1 Posters 987 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tr53
      last edited by

      For anyone who is looking for MRTG setup, here are the Oids for my Netgate SG-5100. I know they differ but it might help someone.

      1. Generate config (you may need to adjust directories, community, and host):

      cfgmaker --global 'WorkDir: /usr/local/nagios/share/stats' --output /etc/mrtg/mrtg.cfg public@host

      1. Edit generated /etc/mrtg/mrtg.cfg, and replace 1:public@host for each interface with:

      1.3.6.1.2.1.2.2.1.16.X&1.3.6.1.2.1.2.2.1.10.X:public@host where X is the id of the interface (see below).

      1. Test using LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

      Numerical

      Interfaces status
      .1.3.6.1.2.1.2.2.1.8.1 IGB0
      .1.3.6.1.2.1.2.2.1.8.2 IGB1
      .1.3.6.1.2.1.2.2.1.8.3 IX0
      .1.3.6.1.2.1.2.2.1.8.4 IX1
      .1.3.6.1.2.1.2.2.1.8.5 IX2
      .1.3.6.1.2.1.2.2.1.8.6 IX3
      .1.3.6.1.2.1.2.2.1.8.7 Doesn't exist
      .1.3.6.1.2.1.2.2.1.8.8 Doesn't exist
      .1.3.6.1.2.1.2.2.1.8.9 Doesn't exist
      .1.3.6.1.2.1.2.2.1.8.10 Doesn't exist

      Out bandwith per interface
      .1.3.6.1.2.1.2.2.1.16.1 IGB0
      .1.3.6.1.2.1.2.2.1.16.2 IGB0
      .1.3.6.1.2.1.2.2.1.16.3 IX0
      .1.3.6.1.2.1.2.2.1.16.4 IX0
      .1.3.6.1.2.1.2.2.1.16.5 IX0
      .1.3.6.1.2.1.2.2.1.16.6 IX0
      .1.3.6.1.2.1.2.2.1.16.7 Doesn't exist
      .1.3.6.1.2.1.2.2.1.16.8 Doesn't exist
      .1.3.6.1.2.1.2.2.1.16.9 Doesn't exist
      .1.3.6.1.2.1.2.2.1.16.10 Doesn't exist

      In bandwith per interface
      .1.3.6.1.2.1.2.2.1.10.1 IGB0
      .1.3.6.1.2.1.2.2.1.10.2 IGB1
      .1.3.6.1.2.1.2.2.1.10.3 IX0
      .1.3.6.1.2.1.2.2.1.10.4 IX1
      .1.3.6.1.2.1.2.2.1.10.5 IX2
      .1.3.6.1.2.1.2.2.1.10.6 IX3
      .1.3.6.1.2.1.2.2.1.10.7 Doesn't exist
      .1.3.6.1.2.1.2.2.1.10.8 Doesn't exist
      .1.3.6.1.2.1.2.2.1.10.9 Doesn't exist
      .1.3.6.1.2.1.2.2.1.10.10 Doesn't exist

      “Human” readable…

      Interfaces Status
      IF-MIB::ifOperStatus.1 IGB0
      IF-MIB::ifOperStatus.2 IGB1
      IF-MIB::ifOperStatus.3 IX0
      IF-MIB::ifOperStatus.4 IX1
      IF-MIB::ifOperStatus.5 IX2
      IF-MIB::ifOperStatus.6 IX3
      IF-MIB::ifOperStatus.7 Doesn't exist
      IF-MIB::ifOperStatus.8 Doesn't exist
      IF-MIB::ifOperStatus.9 Doesn't exist
      IF-MIB::ifOperStatus.10 Doesn't exist

      Out bandwith per interface
      IF-MIB::ifOutOctets.1 IGB0
      IF-MIB::ifOutOctets.2 IGB1
      IF-MIB::ifOutOctets.3 IX0
      IF-MIB::ifOutOctets.4 IX1
      IF-MIB::ifOutOctets.5 IX2
      IF-MIB::ifOutOctets.6 IX3
      IF-MIB::ifOutOctets.7 Doesn't exist
      IF-MIB::ifOutOctets.8 Doesn't exist
      IF-MIB::ifOutOctets.9 Doesn't exist
      IF-MIB::ifOutOctets.10 Doesn't exist

      In bandwith per interface
      IF-MIB::ifInOctets.1 IGB0
      IF-MIB::ifInOctets.2 IGB1
      IF-MIB::ifInOctets.3 IX0
      IF-MIB::ifInOctets.4 IX1
      IF-MIB::ifInOctets.5 IX2
      IF-MIB::ifInOctets.6 IX3
      IF-MIB::ifInOctets.7 Doesn't exist
      IF-MIB::ifInOctets.8 Doesn't exist
      IF-MIB::ifInOctets.9 Doesn't exist
      IF-MIB::ifInOctets.10 Doesn't exist

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.