Forum Discussion

venkat's avatar
venkat
Icon for Neophyte rankNeophyte
28 days ago

Converting output of the DS to colums in RAW Data

I have created a Custom Datasource for netapp  I am able to get the output with broken disks in the names and the count now I want these to be displayed in Raw data and then the alert should display the names as well. Based on my knowledge we can use Wildvalue but not able find the correct way to use it can someone help me on this.

stdOutput

stdError

 

brokenDiskCount=2
brokenDiskNames=123,345

 

1 Reply

  • So my understanding is that you want each broken disk name to be its own thing? In that case you would want to use ActiveDiscovery first to give you those. You return those in say a foreach. Something like this in a Batch SCript

    brokendisks.each { disk ->
        def diskname = disk['name']
        def diskdescription = disk['serial']
        println "${diskname}##${description}##${description}####"
    }

    Now each of those is an instance.

    Then in collection you do the exact same code basically but with a key/value

    brokendisks.each { disk ->
        def diskname = disk['name']
        println "${diskname}.broken=1"
    }

    Since its broken, no state just return a hard value and set a threshold. Then have say the datasource delete the instance when not found.