Ad Widget

Collapse

Host discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clevelas
    Junior Member
    • Mar 2015
    • 22

    #1

    Host discovery

    This is Zabbix 2.4.7.

    I'm attempting to do auto discovery of some hosts that only respond to ping. I just want to verify that they respond to ping, nothing else. I have an external database of the hosts that I want to draw from and use a host template to add them to zabbix. I wrote a script to pull those in and generate the json format specified in the Low Level Discovery documentation. My current plan is to add a host discovery template to the zabbix server using that script script.

    I created /etc/zabbix_agentd.d/userparameter_aruba.conf with:

    UserParameter=aruba.discover,/etc/zabbix/scripts/getaruba.php

    I can run zabbix_agentd -t "aruba.discover" and it looks right (at least based on the sparse LLD documentation):

    # zabbix_agentd -t "aruba.discover"
    aruba.discover [t|{
    "data": [
    { "{#APNAME}":"aru-COE-graf307.domain.com" },
    { "{#APNAME}":"aru-COE-cov017.domain.com" }
    ]
    }]

    In the "Template App Zabbix Server" template, I added a discovery rule called Aruba. Type is "Zabbix agent" and key is 'aruba.discover'. Update interval is 30 seconds (this will change in production).

    I then created a Host prototype with name of '{#APNAME}' (no quotes), set a group and applied the 'Template ICMP Ping' template.

    If I then look in the zabbix_server.log, I see:

    6506:20160112:125859.921 item "Zabbix server:aruba.discover" became not supported: Unsupported item key.

    Am I do something wrong? Or is something that doesn't work the way I think it does?

    Thanks,
    - Steve
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Did you restart the Zabbix agent process after adding the userparameter_aruba.conf file?
    Does "Zabbix server" really corresponds to the Hostname of the Zabbix agent in question resp. its Hostname configured in the Zabbix frontend?

    Comment

    • clevelas
      Junior Member
      • Mar 2015
      • 22

      #3
      Thank you! Thank you! I had restarted the -server process but not the -agent process.

      Comment

      Working...