Apply suggestions from code review

This commit is contained in:
omercier 2025-08-11 10:58:22 +02:00 committed by omercier
parent 09e19ef7ec
commit bc2a4b5d5c
7 changed files with 11 additions and 6 deletions

View File

@ -63,7 +63,7 @@ gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES\n'\
dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/24.10/el8/centreon-24.10.repo
dnf install -y centreon-connector-perl centreon-clib
rm -f /etc/yum.repos.d/centreon-plugins.repo
rm -f /etc/yum.repos.d/centreon-24.10.repo
mkdir -p /var/lib/centreon/centplugins/
chmod 777 /var/lib/centreon/centplugins/

View File

@ -68,7 +68,7 @@ gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES\n'\
dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/24.10/el9/centreon-24.10.repo
dnf install -y centreon-connector-perl centreon-clib
rm -f /etc/yum.repos.d/centreon-plugins.repo
rm -f /etc/yum.repos.d/centreon-24.10.repo
mkdir -p /var/lib/centreon/centplugins/
chmod 777 /var/lib/centreon/centplugins/

View File

@ -22,6 +22,11 @@ ${cmd} ${CENTREON_PLUGINS}
jobs ${tc}/11
[Tags] apps backup rubrik restapi jobs
${command} Catenate
... ${cmd}
... --mode=jobs
... ${extraoptions}
Ctn Run Command And Check Result As Regexp ${command} ${expected_result} ${tc}
Examples: tc extraoptions expected_result --

View File

@ -32,7 +32,7 @@ Mosquitto MQTT messages help
... ${CMD}
... --help
Ctn Run Command Without Connector And Check Result As Regexp ${tc} ${command} ^Plugin Description:
Ctn Run Command And Check Result As Regexp ${command} ^Plugin Description: ${tc}
Mosquitto MQTT messages ${tc}
[Documentation] Check Mosquitto MQTT messages

View File

@ -32,7 +32,7 @@ Mosquitto MQTT numeric-value help
... ${CMD}
... --help
Ctn Run Command Without Connector And Check Result As Regexp ${tc} ${command} ^Plugin Description:
Ctn Run Command And Check Result As Regexp ${command} ^Plugin Description: ${tc}
Mosquitto MQTT numeric-value ${tc}
[Documentation] Check Mosquitto MQTT numeric-value

View File

@ -32,7 +32,7 @@ Mosquitto MQTT string-value help
... ${CMD}
... --help
Ctn Run Command Without Connector And Check Result As Regexp ${tc} ${command} ^Plugin Description:
Ctn Run Command And Check Result As Regexp ${command} ^Plugin Description: ${tc}
Mosquitto MQTT string-value ${tc}
[Documentation] Check Mosquitto MQTT string-value

View File

@ -32,7 +32,7 @@ Mosquitto MQTT uptime help
... ${CMD}
... --help
Ctn Run Command Without Connector And Check Result As Regexp ${tc} ${command} ^Plugin Description:
Ctn Run Command And Check Result As Regexp ${command} ^Plugin Description: ${tc}
Mosquitto MQTT uptime ${tc}
[Documentation] Check Mosquitto MQTT uptime