Ad Widget

Collapse

net.if.discovery not detecting ip addresses

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tvtue
    Member
    • Sep 2012
    • 71

    #1

    net.if.discovery not detecting ip addresses

    Hello Zabbix Users,

    the low level discovery is a very nice feature. Besides the network interfaces, I wonder why there are no ip addresses detected too. But I would need them to be detected also. So that I can use them in items and triggers and so on.

    Something like net.if.eth0.ipv4address would be great.

    This is that much obvious that I have searched around a lot to find an answer to this. But I haven't found on yet. I even thought about creating a discovery rule on my own. But it really is that much obvious that I am feeling I am going wrong somewhere.

    I know there are the macros {HOST.IP<1-9>} but I think I have to fill them on my own manually in the hosts configuration form. Is there some way to do this automatically?

    Is there some item with which you just can get a macros value? Just wrinting the macros name as the item key isn't working.

    TIA
    Timo
  • dan_cytexone
    Member
    • Dec 2008
    • 61

    #2
    Did you ever find a solution for this?

    Comment

    • Firm
      Senior Member
      • Dec 2009
      • 342

      #3
      Patch for net.if.discovery https://support.zabbix.com/browse/ZBXNEXT-3170
      Not perfect, it skips interfaces that have no ipv4 addresses and has no ipv6 reporting so someone needs to improve it.
      Last edited by Firm; 01-03-2016, 21:30.

      Comment

      • dan_cytexone
        Member
        • Dec 2008
        • 61

        #4
        Sweet.. Can you let me know how to apply patch?

        Comment

        • Firm
          Senior Member
          • Dec 2009
          • 342

          #5
          $ cd zabbix-3.0.1
          $ patch -p0 < _patch_path_name_

          Comment

          • dan_cytexone
            Member
            • Dec 2008
            • 61

            #6
            I apologize for my ignorance. Can I apply this patch to an already installed agent? All of our agents run on Debian/Ubuntu hosts

            Here is a search of all zabbix-agent files

            /etc/init.d/zabbix-agent
            /etc/logrotate.d/zabbix-agent
            /etc/rc0.d/K02zabbix-agent
            /etc/rc1.d/K02zabbix-agent
            /etc/rc2.d/S02zabbix-agent
            /etc/rc3.d/S02zabbix-agent
            /etc/rc4.d/S02zabbix-agent
            /etc/rc5.d/S02zabbix-agent
            /etc/rc6.d/K02zabbix-agent
            /run/systemd/generator.late/runlevel2.target.wants/zabbix-agent.service
            /run/systemd/generator.late/runlevel3.target.wants/zabbix-agent.service
            /run/systemd/generator.late/runlevel4.target.wants/zabbix-agent.service
            /run/systemd/generator.late/runlevel5.target.wants/zabbix-agent.service
            /run/systemd/generator.late/zabbix-agent.service
            /usr/lib/tmpfiles.d/zabbix-agent.conf
            /usr/share/doc/zabbix-agent
            /usr/share/doc/zabbix-agent/changelog.Debian.gz
            /usr/share/doc/zabbix-agent/copyright
            /var/cache/apt/archives/zabbix-agent_1%3a3.0.1-1+trusty_amd64.deb
            /var/lib/dpkg/info/zabbix-agent.conffiles
            /var/lib/dpkg/info/zabbix-agent.list
            /var/lib/dpkg/info/zabbix-agent.md5sums
            /var/lib/dpkg/info/zabbix-agent.postinst
            /var/lib/dpkg/info/zabbix-agent.postrm
            /var/lib/dpkg/info/zabbix-agent.prerm

            Where exactly would I run this?

            Comment

            • Firm
              Senior Member
              • Dec 2009
              • 342

              #7
              Nо, it's intended for source tree.

              Comment

              Working...