Ad Widget

Collapse

Create host list from HTTP agent result

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DPasternak
    Junior Member
    • Sep 2021
    • 12

    #1

    Create host list from HTTP agent result

    Hey,

    is it possible to dynamically create a host list from the result of the http agent. The HTTP agent receives information through the API in the target database, the results are in JSON format. I can get a list with hostnames, and I can create a list of hosts by referencing that list.


    The essence of the task. There is a web resource that provides a list. This list column contains the hostname and replication status. The list looks like this Host (Hostname) - Status (Normal, Critical) Unfortunately, the current list of hosts does not match the names in the list, so I cannot use the {HOST.NAME} variable. I am thinking of making a single host group, but I will need to manually add hosts and then apply the template to them. Perhaps I do not understand correctly how to do it better. I just need to react if there is a Critical entry in this list, and display information on that line in the list where the Host has the Critical status.


    I made a trigger by binding it to the name of the Hyper-V server. Those. I get an array of virtual machines with Critical replication status, specifically for each Hyper-V server. But this is array, I don`t know how to split it
    Click image for larger version

Name:	chrome_UTKSmT4hVD.png
Views:	283
Size:	8.5 KB
ID:	432573
    Click image for larger version

Name:	chrome_ppHLaTSHTz.png
Views:	199
Size:	35.4 KB
ID:	432574

    Click image for larger version

Name:	chrome_M8BkR7lcTR.png
Views:	196
Size:	19.8 KB
ID:	432576
    Click image for larger version

Name:	chrome_hWAbt8qqnF.png
Views:	201
Size:	43.2 KB
ID:	432577
    Attached Files
    Last edited by DPasternak; 03-10-2021, 17:45.
Working...