Ad Widget

Collapse

How to monitor BGPstatus and BGPprefix with SNMP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MarcoUK
    Junior Member
    • Oct 2021
    • 26

    #1

    How to monitor BGPstatus and BGPprefix with SNMP

    Hi,
    I need to monitoring BGPstate and BGPprefix on a server using Zabbix (now are monitored by another system, but I need to migrate on Zabbix).

    I have these rows in my SNMP.conf:
    extend bgpstatus /bin/check_bgp
    Code:
    proc custom_service
    extend bgpstatus /bin/check_bgp
    extend bgpprefix /bin/check_bgp_prefix

    How can configure Zabbix to check these three rows?

    Last edited by MarcoUK; 13-10-2021, 15:51.
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    The answers are here:
    https://www.zabbix.com/documentation...itemtypes/snmp
    https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sect-system_monitoring_tools-net-snmp-extending
    Last edited by Hamardaban; 13-10-2021, 16:39.

    Comment

    • MarcoUK
      Junior Member
      • Oct 2021
      • 26

      #3
      Thanks for the reply.

      My output is:
      Code:
      snmpwalk -v 2c -c public 192.168.10.10 . | grep bgpprefix
      NET-SNMP-EXTEND-MIB::nsExtendCommand."bgpprefix" = STRING: /bin/check_bgp_prefix
      NET-SNMP-EXTEND-MIB::nsExtendArgs."bgpprefix" = STRING:
      NET-SNMP-EXTEND-MIB::nsExtendInput."bgpprefix" = STRING:
      NET-SNMP-EXTEND-MIB::nsExtendCacheTime."bgpprefix" = INTEGER: 5
      NET-SNMP-EXTEND-MIB::nsExtendExecType."bgpprefix" = INTEGER: exec(1)
      NET-SNMP-EXTEND-MIB::nsExtendRunType."bgpprefix" = INTEGER: run-on-read(1)
      NET-SNMP-EXTEND-MIB::nsExtendStorage."bgpprefix" = INTEGER: permanent(4)
      NET-SNMP-EXTEND-MIB::nsExtendStatus."bgpprefix" = INTEGER: active(1)
      NET-SNMP-EXTEND-MIB::nsExtendOutput1Line."bgpprefix" = STRING: 0 OK: 9528 BGP prefixes defined
      NET-SNMP-EXTEND-MIB::nsExtendOutputFull."bgpprefix" = STRING: 0 OK: 9528 BGP prefixes defined
      NET-SNMP-EXTEND-MIB::nsExtendOutNumLines."bgpprefix" = INTEGER: 1
      NET-SNMP-EXTEND-MIB::nsExtendResult."bgpprefix" = INTEGER: 0
      NET-SNMP-EXTEND-MIB::nsExtendOutLine."bgpprefix".1 = STRING: 0 OK: 9528 BGP prefixes defined
      Can I configure as:

      Code:
      SNMP OID = NET-SNMP-EXTEND-MIB::nsExtendResult.bgpprefix
      and
      Code:
      Expression = ({server:snmp_check_bgpprefix.last()}) = 0

      Comment

      Working...