Ad Widget

Collapse

Host Prototypes in VMware Discovering - JavaScript external file mapping

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spbloom4
    Junior Member
    • Nov 2020
    • 3

    #1

    Host Prototypes in VMware Discovering - JavaScript external file mapping

    Hi

    During discovering I need to get VMware name and mapp this value to IP address which is not available in native Zabbix mechanism. I have in /usr/lib/zabbix/externalscripts some *.json file with all neccessary keys and values. e.g

    {
    "VMware1" : "111.222.333.444"
    }

    My question is, it's possible to do in preprocessing step fetch from JavaScript window some external json file, proceed datas and extend original discovered json structure about new macros/data?
    e.g:

    1. taking in original json dicovered json {#VMname} = "WMware1"
    2. including data from /usr/lib/externalscripts/*.json
    3. searching value in external json for "VMware1"
    4. creating new macro {#VMIP} = "111.222.333.444"
    5. sending extend output from preprocessing
    6. use {#VMIP} value in Interface field, Inventory and other possible

  • spbloom4
    Junior Member
    • Nov 2020
    • 3

    #2
    can someone help?
    The major thing right now for me is how to import data from external file

    Comment

    Working...