centreon / centreon-engine

Extremely fast monitoring scheduler, forked from Nagios
GNU General Public License v2.0
42 stars 17 forks source link

Engine 20.10.4 with Perl connector: Execute command failed #492

Open joschi99 opened 3 years ago

joschi99 commented 3 years ago

After update engine from 20.10.2 to 20.10.4 all services with perl connector are not more working

On /var/log/centreon-engine/centengine.log we can see a lot of messages like this: [1619808888] [9029] Connector 'Perl Connector' has started [1619808889] [9029] Connector 'Perl Connector' has started [1619808889] [9029] Connector 'Perl Connector' has started [1619808889] [9029] Connector 'Perl Connector' has started [1619808889] [9029] Connector 'Perl Connector' has started [1619808889] [9029] Connector 'Perl Connector' has started [1619808890] [9029] Connector 'Perl Connector' has started [1619808890] [9029] Connector 'Perl Connector' has started [1619808890] [9029] Connector 'Perl Connector' has started [1619808890] [9029] Connector 'Perl Connector' has started [1619808890] [9029] Connector 'Perl Connector' has started [1619808891] [9029] Connector 'Perl Connector' has started [1619808891] [9029] Connector 'Perl Connector' has started [1619808891] [9029] Connector 'Perl Connector' has started [1619808891] [9029] Connector 'Perl Connector' has started [1619808891] [9029] Connector 'Perl Connector' has started [1619808892] [9029] Connector 'Perl Connector' has started [1619808892] [9029] Connector 'Perl Connector' has started [1619808892] [9029] Connector 'Perl Connector' has started [1619808892] [9029] Connector 'Perl Connector' has started [1619808892] [9029] Connector 'Perl Connector' has started

StefThomas commented 3 years ago

Same problem here after an upgrade from the latest 19.04 to 20.04.13.

When I tested the upgrade on another platform, some weeks ago, it was Centreon Web 20.04.12 and I experienced absolutely no problem. So I expected no problem for this new upgrade, as from 20.04.12 to 20.04.13 it’s only one revision. Things should not break like this on a revision upgrade. (IMHO)

Centreon Engine is 20.04.11 on both plateform, so I guess the problem is more related to Centreon Web than Centren Engine. Centreon Broker and Gorgone also are at the same revision : 20.04.13 and 20.04.10.

Sims24 commented 3 years ago

Hi @joschi99 / @StefThomas

Could you please paste the content of /etc/centreon-engine/connectors.cfg file please?

StefThomas commented 3 years ago
###################################################################
#                                                                 #
#                       GENERATED BY CENTREON                     #
#                                                                 #
#               Developed by :                                    #
#                   - Julien Mathis                               #
#                   - Romain Le Merlus                            #
#                                                                 #
#                           www.centreon.com                      #
#                For information : contact@centreon.com           #
###################################################################
#                                                                 #
#         Last modification 2021-05-10 16:48                      #
#         By THOMAS_Stéphane                                     #
#                                                                 #
###################################################################

define connector {
    connector_name                 Perl Connector 
    connector_line                 /usr/lib64/centreon-connector/centreon_connector_perl 
}

define connector {
    connector_name                 SSH Connector 
    connector_line                 /usr/lib64/centreon-connector/centreon_connector_ssh 
}
joschi99 commented 3 years ago
###################################################################
#                                                                 #
#                       GENERATED BY CENTREON                     #
#                                                                 #
#               Developed by :                                    #
#                   - Julien Mathis                               #
#                   - Romain Le Merlus                            #
#                                                                 #
#                           www.centreon.com                      #
#                For information : contact@centreon.com           #
###################################################################
#                                                                 #
#         Last modification 2021-05-05 09:45                      #
#         By admin                                       #
#                                                                 #
###################################################################

define connector {
    connector_name                 Perl Connector
    connector_line                 /usr/lib64/centreon-connector/centreon_connector_perl
}

define connector {
    connector_name                 SSH Connector
    connector_line                 /usr/lib64/centreon-connector/centreon_connector_ssh
}
Sims24 commented 3 years ago

Just to be sure, did you restart the engine? Did you update the centreon-clib package also?

What's your versions please:

rpm -qa |egrep "(centreon-clib|centreon-engine|centreon-broker)"

joschi99 commented 3 years ago
rpm -qa |egrep "(centreon-clib|centreon-engine|c                                   entreon-broker)"
centreon-broker-storage-20.10.4-5.el7.centos.x86_64
centreon-engine-extcommands-20.10.4-1.el7.centos.x86_64
centreon-broker-20.10.4-5.el7.centos.x86_64
centreon-engine-20.10.4-1.el7.centos.x86_64
centreon-broker-cbmod-20.10.4-5.el7.centos.x86_64
centreon-poller-centreon-engine-20.10.6-22.el7.centos.noarch
centreon-engine-daemon-20.10.4-1.el7.centos.x86_64
centreon-clib-20.10.1-2.el7.centos.x86_64
centreon-broker-core-20.10.4-5.el7.centos.x86_64

yes, I confirm that centreon engine has been restarted. I have riproduced the problem also on a test environment.

StefThomas commented 3 years ago

Pour ma part voici les versions que j’ai :

# rpm -qa |egrep "(centreon-clib|centreon-engine|centreon-broker)"
centreon-engine-daemon-20.04.11-2.el7.centos.x86_64
centreon-broker-cbd-20.04.13-4.el7.centos.x86_64
centreon-broker-core-20.04.13-4.el7.centos.x86_64
centreon-broker-20.04.13-4.el7.centos.x86_64
centreon-broker-cbmod-20.04.13-4.el7.centos.x86_64
centreon-base-config-centreon-engine-20.04.13-1.el7.centos.noarch
centreon-broker-storage-20.04.13-4.el7.centos.x86_64
centreon-poller-centreon-engine-20.04.13-1.el7.centos.noarch
centreon-clib-20.04.1-2.el7.centos.x86_64
centreon-engine-20.04.11-2.el7.centos.x86_64
centreon-engine-extcommands-20.04.11-2.el7.centos.x86_64
Sims24 commented 3 years ago

Thanks, I reproduced.

Stay tuned

Sims24 commented 3 years ago

PS: In the meantime, disable perl connector..

StefThomas commented 3 years ago

Hi,

I tried this rapidly but didn’t find how to do so. Where/How do I do that ?

Must unlink all the templates? Need to save the list first and then do all the links again?

Stéphane THOMAS


De : Simon Bomm @.> Envoyé : mardi 11 mai 2021 11:56 À : centreon/centreon-engine @.> Cc : THOMAS Stéphane @.>; Mention @.> Objet : [ToC] Re: [centreon/centreon-engine] Engine 20.10.4 with Perl connector: Execute command failed (#492)

PS: In the meantime, disable perl connector..

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttp://mail14.sihm.fr:32224/?dmVyPTEuMDAxJiZhZTdjNjhkNDkyNGZhNTdiYz02MDlBNTREMV82MjY4Ml80MDg1XzEmJjFhNGY3ZjU5MmJiOTdhMz0xMjMzJiZ1cmw9aHR0cHMlM0ElMkYlMkZnaXRodWIlMkVjb20lMkZjZW50cmVvbiUyRmNlbnRyZW9uLWVuZ2luZSUyRmlzc3VlcyUyRjQ5MiUyM2lzc3VlY29tbWVudC04MzgxODg4MDY=, or unsubscribehttp://mail14.sihm.fr:32224/?dmVyPTEuMDAxJiZhZTdjNjhkNDlmNDViZjY2ZD02MDlBNTREMV82MjY4Ml80MDg1XzEmJjVhOGZiZmFjOWIxOWRhMz0xMjMzJiZ1cmw9aHR0cHMlM0ElMkYlMkZnaXRodWIlMkVjb20lMkZub3RpZmljYXRpb25zJTJGdW5zdWJzY3JpYmUtYXV0aCUyRkFKSkQ1VzdFUERGS1JaRldGTVlWVVBEVE5ENU5CQU5DTkZTTTQzNUhXQ1NB.

Sims24 commented 3 years ago

image

Like this ⬆️

Sims24 commented 3 years ago

A new version of the connectors will be out soon.

StefThomas commented 3 years ago

OK Thx. I’m trying it now.

StefThomas commented 3 years ago

Deactivate the connector get rid of the error message but my central seems not to be updated. Maybe I have another problem… I’ll wait and check after lunch :

[11-May-2021 12:07:21 Europe/Paris] PHP Notice:  Undefined index: gorgone_api_password in /usr/share/centreon/src/Centreon/Domain/Gorgone/ConfigurationLoader.php on line 108
[11-May-2021 12:07:21 Europe/Paris] PHP Notice:  Undefined index: gorgone_api_username in /usr/share/centreon/src/Centreon/Domain/Gorgone/ConfigurationLoader.php on line 97
[11-May-2021 12:07:21 Europe/Paris] PHP Notice:  Undefined index: gorgone_api_username in /usr/share/centreon/src/Centreon/Domain/Gorgone/ConfigurationLoader.php on line 97
[11-May-2021 12:07:21 Europe/Paris] PHP Notice:  Undefined index: gorgone_api_password in /usr/share/centreon/src/Centreon/Domain/Gorgone/ConfigurationLoader.php on line 108

The 19.04 to 20.04.12 was a piece of cake with absolutely no problem, the 19.04 to 20.04.13 is a nightmare :(

I hope you test your patch not only on a standalone platform.

omercier commented 2 years ago
rpm -qa |egrep "(centreon-clib|centreon-engine|centreon-broker)"
centreon-broker-storage-20.10.4-5.el7.centos.x86_64
centreon-engine-extcommands-20.10.4-1.el7.centos.x86_64
centreon-broker-20.10.4-5.el7.centos.x86_64
centreon-engine-20.10.4-1.el7.centos.x86_64
centreon-broker-cbmod-20.10.4-5.el7.centos.x86_64
centreon-poller-centreon-engine-20.10.6-22.el7.centos.noarch
centreon-engine-daemon-20.10.4-1.el7.centos.x86_64
centreon-clib-20.10.1-2.el7.centos.x86_64
centreon-broker-core-20.10.4-5.el7.centos.x86_64

yes, I confirm that centreon engine has been restarted. I have riproduced the problem also on a test environment.

Hi @joschi99, Is this the same issue as the SF customer support case you have opened? If yes may I close this issue?

joschi99 commented 2 years ago

Hi @omercier, if you are referring case 93144 this is another issue, but it seems that this problem is not present on latest 21.04 version.