Solved

CPU Question

  • 28 April 2023
  • 4 replies
  • 64 views

Badge +1

We have a service group called CPU which triggers an alert when Windows Servers CPU is “critical”. Where can I specify the amount of time the CPU must be “critical” before alerting? Right now, it’s kind of annoying because if the CPU spikes for even a minute a notification triggers. I prefer the notification to only trigger if CPU spikes and remains spiked for over 15 minutes. 

icon

Best answer by Lanxor 10 May 2023, 18:39

View original

4 replies

Badge +2

Hi mplatt,

When you talk about a service group, do you mean a set of services named CPU?

Centreon has the notion of service status state. This soft or hard state allows you to adjust the granularity of monitoring. A certain number of times the service must be in the CRITICAL state for the service status to be validated (HARD state).

In the service configuration, you have two levers to adjust the time before the service status is validated as CRITICAL:

  1. The number of the verification command is executed.
  2. The interval between each execution of the command (when there is a state change).

With these two values, you have the possibility to increase the time before receiving a notification (which appears when the service is in a HARD state).

You can find more information in the official documentation, which provides a visual and very informative example of these options.

https://docs.centreon.com/docs/alerts-notifications/notif-concept/

Please note that the visual example is only available in an older version of the documentation: https://docs.centreon.com/docs/20.04/alerts-notifications/concepts/

 

At our place, we use the following default configuration: we execute checks every 5 minutes, and as soon as a command is critical, the next execution is closer (2 minutes after). And the service must be validated at least three times before sending a notification. This means that we have 5 minutes + 2 minutes + 2 minutes = 9 minutes (in the worst case) before receiving a notification.

Badge +1

Your response was very helpful.

Thank you. 

Badge +2

Thank you, don't hesitate to mention that the thread has been resolved with my replied ;)

Userlevel 5
Badge +11

Hi @Lanxor, shoutout for being a problem-solver in the community! Your help is much appreciated and you're making a real difference in helping others out, thanks 

Reply