Ad Widget

Collapse

Host Interfaces Being Overwritten in Host Config When > 1 NIC Present

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sj200449
    Junior Member
    • Mar 2023
    • 8

    #1

    Host Interfaces Being Overwritten in Host Config When > 1 NIC Present

    Hi,

    I have some strange behaviour I don't understand. When I have a Host with 2 NICs and associated DNS entries my simple Discover using ICMP Ping finds the host as 2 devices - sort of what I expect. The Discover Action is to add the host to discovered hosts group if it is found as a result of that rule AND Up. So far so good.

    However, if I edit the default host device to add a secondary interface (also of type Agent), ensure the interface on the network I want to be the main one is marked as default and then once that is done remove the secondary host device discovered - hoping it won't refind it and add it again - after a while the default interface on the main host is overwritten with the secondary interface resulting in 2 matching interaces on it and loss of contact with agent

    Is this normal and what am I not understanding or do people normally just tolerate having 2 host devices when a server has 2 (or more) NICs?

    It seems to happen whether I use IP or DNS to configure the host device.

    Sorry about the complex verbosity , hopefully I have explained this enough. It is all Zabbix 7.4.8
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4890

    #2
    I still don't get why to use Discovery for agents... There is autoregistration and you could specify HostInterface in agent contig...

    Comment

    • sj200449
      Junior Member
      • Mar 2023
      • 8

      #3
      Hi,

      It is more there to catch host devices that appear on the network we didn't put there on purpose or have forgotten to place in zabbix (deploy is not automated completely with us). More so for the forgotten bit as Radius checks shouold prevent unauthorised devices really.

      Regards,
      Stephen.

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4890

        #4
        Ranjdom thought... Install agent with ListenIP specified, so it will only use one of those IP-s. And instead of ping maybe use agent check, making sure, it is a host with an agent, before you add it...

        Comment

        • sj200449
          Junior Member
          • Mar 2023
          • 8

          #5
          Hi,

          That's an interesting idea. I'm beginning to question though , do sysadmins now tend to not run Discovery other than to initially populate a new Zabbix installation? We also have lots of different groups that can create machines within a specific VLAN, even if it's for testing for a few days, then destroy them for example, so no Radius checks down to MAC level... I need to chew this over a bit more and chat to colleagues, maybe we don't even want to monitor those depending on whaat we think monitoring is "for".

          Thanks for thoughts.

          -Stephen.

          Comment

          Working...