Ad Widget

Collapse

Discover with external script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pierreC
    Junior Member
    • Jun 2017
    • 13

    #1

    Discover with external script

    Hi,
    I'm actually writing a Perl script to discover all interfaces on a Cisco router where a policy is applied.
    Then I'll create the item and graph prototypes to monitor the PrePolicyBytes, PostPolicyBytes and DropBytes.

    The Issue here is that I don't known what I should return to Zabbix at the end.

    I know from the manual that the data is like that :

    {
    "data": [
    {
    "{#SNMPINDEX}": "1",
    "{#IFDESCR}": "WAN",
    "{#IFPHYSADDRESS}": "8:0:27:90:7a:75"
    },
    {
    "{#SNMPINDEX}": "2",
    "{#IFDESCR}": "LAN1",
    "{#IFPHYSADDRESS}": "8:0:27:90:7a:76"
    },
    {
    "{#SNMPINDEX}": "3",
    "{#IFDESCR}": "LAN2",
    "{#IFPHYSADDRESS}": "8:0:27:2b:af:9e"
    }
    ]
    }

    To resume I got all data I need to make a .txt file looking like that, but I don't know how to transfer it to Zabbix.
  • tutunak
    Member
    • Mar 2016
    • 32

    #2
    I recommended use python and protobix. It's very simple library for sending data to Zabbix.

    Comment

    • pierreC
      Junior Member
      • Jun 2017
      • 13

      #3
      Got a problem with libraries installation.
      I'll re write my question on a new thread to make it clear

      Comment

      Working...