Ad Widget

Collapse

Custom Discovery Not Firing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • plui
    Junior Member
    • Sep 2016
    • 10

    #1

    Custom Discovery Not Firing

    I have a custom discovery that calls a shell script. The script outputs the following:

    Code:
    {
    "data":[
    { "{#DBNAME}":"collector", "{#APPUSER}":"admin"},
    { "{#DBNAME}":"demoDB", "{#APPUSER}":"admin"},
    { "{#DBNAME}":"demoDB", "{#APPUSER}":"Bill"},
    { "{#DBNAME}":"customer1", "{#APPUSER}":"admin"},
    { "{#DBNAME}":"customer1", "{#APPUSER}":"Bill"},
    { "{#DBNAME}":"customer2", "{#APPUSER}":"admin"}
      ]
    }
    For some reason it seems like the discovery is not firing because I can't see it discovered anything in the UI. I looked at the UI for any red boxes saying it's supported but didn't see any. I looked at zabbix_server.log and zabbix_agentd.log but neither have anything interesting.

    I also tried executing the following just to make sure the agent can run the command:

    Code:
    /usr/sbin/zabbix_agentd -t my.test.discoveruser
    Any idea?
Working...