Ad Widget

Collapse

Zabbix auto registration with IP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • delicoder
    Junior Member
    • Feb 2016
    • 3

    #1

    Zabbix auto registration with IP

    Hello all ,

    I want to register my hosts with auto registeration And I want to use IP adresses as hostname for viewing in frontend .

    How can I solve this problem?

    Thanks
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    Maybe in the config file

    hostname.item=system.run(ifconfig | grep -Eo 'inet (addr?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')

    Completely untested :-)

    Comment

    • delicoder
      Junior Member
      • Feb 2016
      • 3

      #3
      Thanks for reply,

      I change this text as

      HostnameItem=system.run[hostname -I]


      and it will work.

      Thanks

      Comment

      • LenR
        Senior Member
        • Sep 2009
        • 1005

        #4
        Be careful of hosts with multiple IP addresses

        Comment

        • delicoder
          Junior Member
          • Feb 2016
          • 3

          #5
          Thanks for advice I solved this problem to linux server. But windows server i didn't find any command for get single ip adress

          Comment

          Working...