Tutorials · Monitoring

How to Monitor Your Network With SNMP and Syslog

Know about failures before users call: collect interface statistics with SNMPv3 and central logs with syslog.

Intermediate12 min5 steps

Before you start

  • A monitoring server (for example Zabbix, LibreNMS or PRTG)
  • Network access from the server to the management VLAN

Step by step

  1. Enable SNMPv3

    Use SNMPv3 with authentication and encryption rather than community strings.

    snmp-server group MONITOR v3 priv
    snmp-server user nms MONITOR v3 auth sha <auth-pass> priv aes 128 <priv-pass>
    
  2. Restrict SNMP access

    Allow SNMP only from the monitoring server.

  3. Send syslog

    Forward logs with timestamps to the syslog server.

    logging host 10.99.0.30
    logging trap informational
    
  4. Add devices to monitoring

    Discover devices and graph uptime, CPU, interface traffic, errors and PoE usage.

  5. Create alerts

    Alert on device down, link down, high error rates, high temperature and PoE budget exhaustion.

Commands are generic, industry-standard examples. Exact syntax and menu names vary by model and firmware; check your device's manual on the Documentation page.

Pro tips

  • Keep time in sync (NTP) so logs from different devices line up.
  • Use dashboards for uplinks and critical sites.
How to Monitor Your Network With SNMP and Syslog | Navijin Tutorials