Ad Widget

Collapse

Problem with zabbix-agent 3.2.11 and debian 9.4 in ServerActive

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AurelB
    Member
    • Oct 2016
    • 54

    #1

    Problem with zabbix-agent 3.2.11 and debian 9.4 in ServerActive

    Hello,

    As the name of the headline indicates, i've a problem with ServerActive only with server in debian 9.4.
    With debian 9.3 no problem, there is well the auto registration with Zabbix server.

    For the firewall is correct, here is command :
    Code:
    > iptables -L
    Chain INPUT (policy DROP)
    ACCEPT tcp -- [B]ip_zabbix-server [/B]anywhere tcp dpt:zabbix-agent
    
    Chain OUTPUT (policy DROP)
    ACCEPT tcp -- anywhere [B]ip_zabbix-server [/B] tcp dpt:zabbix-trapper
    For you information, the Zabbix-agent version on debian 9.4 and 9.3 is the same (3.2.11).

    The logs below :
    Code:
    - Zabbix-agent : no active checks on server [[B]ip_zabbix-server [/B]:10051]: host [[B]debian_9.4[/B]] not found
    - Zabbix-server : cannot send list of active checks to "[B]ip_debian_9.4[/B]": host [[B]debian_9.4[/B]] not found
    Config Zabbix-agent :
    Code:
    - Server=[B]ip_zabbix-server [/B]
    - ServerActive=[B]ip_zabbix-server [/B]
    - HostnameItem=system.hostname
    - HostMetadata=linux
    Second information, when i create manually the new host in the Zabbix-server, no problem, it sends me all the informations.

    Can you help me please ?
    Thanks in advance.
    Last edited by AurelB; 29-06-2018, 15:56.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please try registering a host named "debian_9.4".

    Comment

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #3
      Originally posted by Atsushi
      Please try registering a host named "debian_9.4".
      No this is not this.
      He has registered this host but all metrics on this host have type "zabbix agent" (passive checks) instead "zabbix agent (active)" (active checks).
      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


      • Atsushi
        Atsushi commented
        Editing a comment
        Please read the messages in the log files carefully.
    • AurelB
      Member
      • Oct 2016
      • 54

      #4
      Hello,

      Thank you for your participation

      i've tried to add a new host from the Zabbix-server interface and this one was working

      However, i would like it to work in ActiveServer.

      Comment


      • Atsushi
        Atsushi commented
        Editing a comment
        If you want to do active checks, you need to select 'Zabbix agent(active)' as type in item setting.

      • AurelB
        AurelB commented
        Editing a comment
        My problem does not deal the data recovery but the autoregistration of my VM in the hosts only with debian version 9.4 whereas with debian version 9.3, it works.
        Last edited by AurelB; 03-07-2018, 10:23.

      • Atsushi
        Atsushi commented
        Editing a comment
        If auto registration does not work, please check the setting of auto registration.
    • AurelB
      Member
      • Oct 2016
      • 54

      #5
      Atsushi, the settings of auto-registration are good, it works with the hosts in debian 9.3, 8, 7, ...
      For you, below the capture of the auto-registration configuration :

      Click image for larger version  Name:	Capture.PNG Views:	1 Size:	30.6 KB ID:	361898
      Last edited by AurelB; 05-07-2018, 12:12.

      Comment


      • Atsushi
        Atsushi commented
        Editing a comment
        Please compare the contents set in zabbix_agentd.conf with the contents of auto registration setting.

        You used HostnameItem to get the host name and the result should be "debian_9.4".
        It does not match the condition of Hostname like linux set in Conditions of auto registration setting.

        Do not you want to check Host metadata?

      • AurelB
        AurelB commented
        Editing a comment
        Oh my god !! I'm so stupid.
        I changed the setting two weeks ago with a bad condition...
        However, with a VM test in debian 9.3, the auto-registration worked. Mystery !!

        To conclude, the problem is not debian but me.

        Atsushi, thank you for your help
    Working...