Ad Widget

Collapse

UserParameter no value receive

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stanix
    Junior Member
    • Apr 2016
    • 1

    #1

    UserParameter no value receive

    Hello,

    Sorry in advance for my english but google translate is my friend

    I am currently on the configuration of my zabbix and I encounter a strange error.

    Personally I set up a file in my UserParameter zabbix_agentd.conf

    Here is the command :
    Code:
    UserParameter = Iptables.Drop.Input, iptables -vxnL INPUT | grep Chain | cut -d "" -f5
    The zabbix_agentd -p returns me good value (number of packets)
    Code:
    Iptables.Drop.Input [t | 42082440]

    The agent service has been restarted.

    In my configuration on the server no value to me was not returned.
    Test with the command:
    Code:
    -s zabbix_get XX.XX.XX.XX -k -p 10050 Iptables.Drop.Input
    Thank you in advance for your help
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Originally posted by Stanix
    The agent service has been restarted.

    In my configuration on the server no value to me was not returned.
    Test with the command:
    Code:
    -s zabbix_get XX.XX.XX.XX -k -p 10050 Iptables.Drop.Input
    Code:
    ZABBIX_GET(8)                                                    ZABBIX_GET(8)
    
    NAME
           zabbix_get - Zabbix get utility.
    
    SYNOPSIS
           zabbix_get [-hV] [-s <host name or IP>] [-p <port number>] [-I <IP address>] [-k <item key>]
    
    DESCRIPTION
           zabbix_get is a command line utility for getting data from a remote Zabbix agent.
    As you see in description is about connecting to the agent which means that agent must be setup as passive agent. Probably your agent is working in active mode and obviously zabbix_get in such case will be not working.
    If your item is or will be "zabbix (active) agent" type using zabbix_get to test it does not make any sense.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    Working...