Ad Widget

Collapse

Auregistration without adding Interfaces

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paulhazo
    Junior Member
    • Aug 2022
    • 9

    #1

    Auregistration without adding Interfaces

    Hello people,

    I have deployed Zabbix agent 2 v6.2.3 on some workstations and I would like to use the Autoregistration feature.
    The template used is the Windows by Zabbix agent active.
    I have created the autoregistration action.
    The agents on the endpoints are configured to use active agent checks.
    The autoregistration action is adding an interface to the hosts which is the IP address and port 10050.
    Is there a way to make the action so it adds the host without any interfaces?

    Thanks
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    #2
    Hi, see the documentation: https://www.zabbix.com/documentation...o_registration

    I take it that it is not possible to autoregister a host with no interface, but you can always write a script to run as autoregister action, and that script could delete the host interface by using Zabbix API.

    Markku

    Comment

    • yusben
      Junior Member
      • Dec 2022
      • 1

      #3
      Originally posted by Markku
      Hi, see the documentation: https://www.zabbix.com/documentation...o_registration

      I take it that it is not possible to autoregister a host with no interface, but you can always write a script to run as autoregister action, and that script could delete the host interface by using Zabbix API.

      Markku
      Thank you for the reply. I have the same need - remove the default interface after host autoregistration with Zabbix Agent Active. I started to dive into Zabbix scripts to follow your suggested workaround, but found that hostinterface is deprecated and will be deleted soon: https://www.zabbix.com/documentation...terface/delete
      Maybe Zabbix team is going to solve this problem in the nearest releases, but I haven't find anything here https://support.zabbix.com/secure/Dashboard.jspa or in new beta https://www.zabbix.com/rn/rn6.4.0beta5 ... Not sure where to look for more insight.

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1782

        #4
        found that hostinterface is deprecated
        Use host.update instead: https://www.zabbix.com/documentation...ce/host/update

        Edit: I now see that the host interface object page (https://www.zabbix.com/documentation...terface/object) also says being deprecated, but I don't yet see any mention in the version change notes about this deprecation. I don't know what they are up to.

        Markku
        Last edited by Markku; 21-12-2022, 07:57.

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1782

          #5
          Opened ZBX-22115 for the Host interface API deprecation, let's see.

          Markku

          Comment

          Working...