Threshold firing on multiple Pattern_Strings at String-DCI

Started by Manuel, February 07, 2019, 03:45:47 PM

Previous topic - Next topic

Manuel

Hy there,

I may just have not googled enough, but I don't know how to configure a single Threshold to fire at two given Pattern_Strings.

I've got a DCI, which returns a String.
I want the Treshold to fire when that DCI is NOT LIKE "Online" AND NOT LIKE "Ready"...

Best regards,
Manuel

PS.: If someone reading this Post wishes to have some kontext:
I'm using OMREPORT (CLI-App for Dells OMSA) to read Disk- and RAID-Status from an old PowerEdge-Server, which has got just the iDrac 6, which wouldn't give ma that information via SNMP...
...I've written a Powershell-Script to gimme a list of all pDisk-IDs (for Instance-Discovery) and another to read actual Values from OMREPORT.

Victor Kirhenshtein

Hi,

I suggest using script threshold. Script could be following:


!($1 like "Online") && !($1 like "Ready")


Best regards,
Victor

Manuel

Thank you, working perfectly!  8)