NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: Threshold firing on multiple Pattern_Strings at String-DCI  (Read 167 times)

Manuel

  • Newbie
  • *
  • Posts: 7
    • View Profile
Threshold firing on multiple Pattern_Strings at String-DCI
« 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.
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6509
    • View Profile
Re: Threshold firing on multiple Pattern_Strings at String-DCI
« Reply #1 on: February 07, 2019, 04:22:16 pm »

Hi,

I suggest using script threshold. Script could be following:

Code: [Select]
!($1 like "Online") && !($1 like "Ready")

Best regards,
Victor
Logged

Manuel

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Threshold firing on multiple Pattern_Strings at String-DCI
« Reply #2 on: February 07, 2019, 04:30:00 pm »

Thank you, working perfectly!  8)
Logged