My poller has high load or engine has high latency

  • 8 August 2022
  • 1 reply
  • 647 views

Userlevel 2
Badge +1

This article describes how to optimize the command execution process of pollers using Centreon Perl Connector.

Centreon Perl Connector is a free software from Centreon available under the Apache Software License version 2 (ASL 2.0). Used with Centreon Engine, this connector speeds up the execution of Perl scripts.

 

Symptom

Poller has high load, high CPU usage or centengine has high latency.

 

Problem

When performing a check command using a Perl plugin, pollers are compiling files and this process can be very time and disk I/O consuming.

 

Solution

Follow this procedure to execute Perl scripts with Centreon Perl Connector from Centreon Engine.

Perl Connector installation

It should be installed automatically with centreon-engine, but if not, this documentation might help you.

Perl Connector configuration

Now you have installed it, you need to configure the connector to be used by Centreon Engine.

You must be an administrator to access this feature.

  • In Centreon interface, go to Configuration  >  Commands  >  Connectors.
  • Click Perl Connector in the list of connectors.
  • In the Used by command input, select the commands you want to optimize. You can either select them all (except for the “ping” commands which do not rely on Perl) or only the most frequently used commands. Click on Save.
  • Then deploy the configuration to apply this change. The reload option is enough, you do not need to restart centengine.

1 reply

Badge +2

Hello, we are facing this situation. One of our pollers il highly loaded despite we have added vcpus and memory.

1°) Does anyone can explain how exaclty works the perl connector? How will it increase performance?

2°) We tried with one command but it failed because of an unrecognized characters:

Command : (OS-Linux-NRPE3-Load)

/usr/lib64/nagios/plugins/check_centreon_nrpe3 -H (ip masked) -p (port masked) -t 30 -u -c check_centreon_plugins -a os::linux::local::plugin load --warning=10 --critical=15

Error:

Embedded Perl error: syntax error in '/usr/lib64/nagios/plugins/check_centreon_nrpe3': Unrecognized character \x7F: marked by <-- HERE after ^W = 1:

<-- HERE near column 121 at (eval 371) line 5. at /tmp/centreon_connector_perl.Iqj9eb line 64.

Reply