Ad Widget

Collapse

UserParameter generate custom graphs batman-adv OpenWrt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pebrille
    Junior Member
    • Dec 2015
    • 1

    #1

    UserParameter generate custom graphs batman-adv OpenWrt

    Hi,

    zabbix 2.4.6 server, Ubuntu 15.10, OpenWrt Chaos Calmer with agent 2.4.6

    I'm trying to monitor an OpenWrt based device on which I run batman-adv as dynamic routing algorithm.
    As a result I have x interfaces on which the batman-adv routing daemon run on. Next the OpenWrt has again x neighbours on each of those interfaces.
    In the End all those neighbours have some kind of link quality, i.e. float bigger than 1.000.

    So that's what I've tried so far:
    - setup some different scripts on the OpenWrt device which I integrated as UserParamater
    - The key that I defined in the UserParamter was integrated into a discovery rule.

    Now my question:
    In order to get a nice graphic of a device showing all batman interfaces and within all neighbors plotted with their link quality.
    Do I need to write one script that return all values at one, like this?

    Code:
    “data”:[
    {“{#OWNMAC}”:”c4:6e:1f:ea:c0:69”, “{#NEIGHBORMAC}”:”c4:6e:1f:ea:c0:d5”, “{#LINK}”:”1.000” },
    {“{#OWNMAC}”:”c4:6e:1f:ea:c0:69”, “{#NEIGHBORMAC}”:”c4:6e:1f:ea:c0:d5”, “{#LINK}”:”1.000” }]
    }
    Or do I have to write a script for UserParameter that only gives me the interfaces back as a first step and then write another script, that delivers me back all the values I'm interested in?
    How do I define that the listening interface is the basis for defining a single graph? How do I tell zabbix to list all neighbors in that very graph and show it as a graph with its given link quality?

    Thank you very much and please forgive if I post noobish questions, cause I am a zabbix noob :-)
    Last edited by pebrille; 29-12-2015, 01:10.
Working...