Ad Widget

Collapse

Help understanding LLD with custom external scripts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snowtr
    Junior Member
    • Jun 2017
    • 7

    #1

    Help understanding LLD with custom external scripts

    Hi,

    I have been working through creating my own Low Level Discovery (LLD) using a custom script to monitor my VoIP.ms account and sub-accounts with my Zabbix installation.

    I've gotten my first part working, where my template runs a bash script that runs a PHP script that connects daily to my VoIP.ms account through API calls and returns the list of sub-accounts and populates those into the Item Prototype I created.

    My issue now is to turn around and use those values in combination with the existing username and password Macros I setup to run a second LLD that does the same but checks the registration status of each account. The idea behind splitting up the two tasks has to do with how often I want to be poling the API to comply with VoIP.ms' policies regarding API usage.

    So I have a test account with 7 sub-accounts and after the first run I see 7 Items created by the LLD such that the Item Name is the sub-account itself and the Item Key is voip.[sub-account].

    My question is how do I pass either the name or the key from each item into the second LLD script as a variable?
Working...