NetXMS Support Forum

English Support => General Support => Topic started by: Manuel on February 07, 2019, 03:45:47 PM

Title: Threshold firing on multiple Pattern_Strings at String-DCI
Post by: Manuel on February 07, 2019, 03:45:47 PM
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.
Title: Re: Threshold firing on multiple Pattern_Strings at String-DCI
Post by: Victor Kirhenshtein on February 07, 2019, 04:22:16 PM
Hi,

I suggest using script threshold. Script could be following:


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


Best regards,
Victor
Title: Re: Threshold firing on multiple Pattern_Strings at String-DCI
Post by: Manuel on February 07, 2019, 04:30:00 PM
Thank you, working perfectly!  8)