Question

Centreon GUI: Regex based Threshold not valid

  • 6 March 2024
  • 0 replies
  • 11 views

Badge +1

Hi everybody,
I’m trying hard to make a threshold working in my service template without any success…


Everything is ok from CLI:

/centreon_aws_cloudwatchlogs_api.pl --plugin=cloud::aws::cloudwatchlogs::plugin --mode=get-logs --custommode='awscli' […….]  --critical-status='%{message} =~ /error/i' 

But from gui, the Threshold is not valid :

CRITICALSTATUS = %{message\} =~ /error/i

I tried to put \\ before every special character (\\%\\{message\\} \\=\\~ \\/error\\/i), but the problem persists… 

Does anyone has an idea ?

Thank you for your help.

Kind regards,

Alexandre


0 replies

Be the first to reply!

Reply