Ad Widget

Collapse

Error on discovery (Not supported item)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Merrick
    Junior Member
    • Nov 2019
    • 6

    #1

    Error on discovery (Not supported item)

    Hello everybody,

    first of all, english is not my native language, so please forgive me if I make mistakes.
    I'm using zabbix server v4.4.2 (docker) :
    Code:
    [FONT="Open Sans"]root@4710b6763d8d:/var/lib/zabbix# zabbix_server -V[/FONT]  zabbix_server (Zabbix) 4.4.2
    Revision 6d7579c 25 November 2019, compilation time: Nov 26 2019 13:26:57
    Copyright (C) 2019 Zabbix SIA
    ...                                                                                            
    Compiled with OpenSSL 1.1.1 11 Sep 2018
    Running with OpenSSL 1.1.1 11 Sep 2018
    I use zabbix agent v 4.4.2

    Code:
    [FONT="Open Sans"]root@ht1 /etc/zabbix/zabbix_agentd.d # zabbix_agentd -V[/FONT]  zabbix_agentd (daemon) (Zabbix) 4.4.2
    Revision 6d7579cc01 25 November 2019, compilation time: Nov 25 2019 16:07:39
    ...                                                                                                               
    Compiled with OpenSSL 1.1.0g 2 Nov 2017
    Running with OpenSSL 1.1.1c 28 May 2019
    I try to use fail2ban (https://share.zabbix.com/cat-app/firewall/fail2ban) and systemd (https://share.zabbix.com/operating-s...ice-monitoring), and I must say it works for several agents. But on one, it doesn't work, with the message Unsupported item key.
    When I go on the serveur and launch zabbix_get, I have information :
    Code:
    [FONT="Open Sans"]root@4710b6763d8d:/var/lib/zabbix# zabbix_get -s ht1.xxxxx.net -k systemd.service.discovery[/FONT]  {"data":[{"{#SERVICE}": "service1"},{"{#SERVICE}": "service2"},{"{#SERVICE}": "service3"},{"{#SERVICE}": "service4"},{"{#SERVICE}": "service5"},{"{#SERVICE}": "service6"},{"{#SERVICE}": "sshd"},{"{#SERVICE}": "unionfs"}]}
    root@4710b6763d8d:/var/lib/zabbix# zabbix_get -s ht1.xxxxx.net -k systemd.service.status['service1']
    0
    root@4710b6763d8d:/var/lib/zabbix# zabbix_get -s ht1.xxxxx.net -k fail2ban.discovery
    {"data":[{"{#JAIL}":"sshd"}]}
    root@4710b6763d8d:/var/lib/zabbix# zabbix_get -s ht1.xxxxx.net -k fail2ban.status['sshd']
    6
    On the server, all logs I see is
    Code:
    169:20191127:110111.068 discovery rule "ht1.xxxxx.net:fail2ban.discovery" became not supported: Unsupported item key.
    Can someone help me on that ?
  • Merrick
    Junior Member
    • Nov 2019
    • 6

    #2
    Sorry, I found the issue : the agent was auto registrated via discovery, with the wrong IP (172.18.x.x). I put the right IP and now it works fine, can someone close this topic ?

    Comment

    Working...