Ad Widget

Collapse

Different value in GUI, check with zabbix_get

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jorixine
    Junior Member
    • Oct 2014
    • 1

    #1

    Different value in GUI, check with zabbix_get

    Hi all! Im new to the forum but I've been reading for a while now

    I am trying to put toghether DNS Bind Statistics along with Zabbix. Some of the topics here where pretty helpful, but I am strugling with something I cannot solve yet.

    zabbix_agent.d/userparameters_dns.conf:
    Code:
    UserParameter=bind.queries.in[*],curl [url]http://localhost:8053/[/url] 2>/dev/null | xml2 | grep -A1 "/isc/bind/statistics/server/queries-in/rdtype/name=$1$" | tail -1 | cut -d= -f2
    UserParameter=bind.queries.out[*],curl [url]http://localhost:8053/[/url] 2>/dev/null | xml2 | grep -A1 "/isc/bind/statistics/views/view/rdtype/name=$1$" | tail -1 | cut -d= -f2
    Test UserParameter Code:
    Code:
    [root@mars ~]# curl http://localhost:8053/ 2>/dev/null | xml2 | grep -A1 "/isc/bind/statistics/views/view/rdtype/name=AAAA$" | tail -1 | cut -d= -f2
    8
    zabbix_get:
    Code:
    [root@mars ~]# zabbix_get -s x.x.x.x -p 10050 -I x.x.x.x -k bind.queries.out[AAAA]
    8
    But pretty oddly (at least to me) this is what I see in the GUI:



    As you can see, it is grabbing anything but the output of the command.

    I honestly am lost with this.. Dont know what else to check. I put server in debug=4 , but it seens to be receiving the data correctly.

    Any ideas?

    Thanks a lot in advance!
Working...