mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-09-25 18:58:39 +02:00
testing if the tests with centreon-connector-perl will work
This commit is contained in:
parent
4ff63a0778
commit
cc6a3f0c02
@ -64,6 +64,7 @@ dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/24.10/e
|
|||||||
dnf update -y
|
dnf update -y
|
||||||
dnf install -y centreon-connector-perl centreon-clib
|
dnf install -y centreon-connector-perl centreon-clib
|
||||||
|
|
||||||
|
rm -f /etc/yum.repos.d/centreon-plugins.repo
|
||||||
|
|
||||||
mkdir -p /var/lib/centreon/centplugins/
|
mkdir -p /var/lib/centreon/centplugins/
|
||||||
chmod 777 /var/lib/centreon/centplugins/
|
chmod 777 /var/lib/centreon/centplugins/
|
||||||
|
@ -4,7 +4,12 @@ FROM ${REGISTRY_URL}/almalinux:9
|
|||||||
|
|
||||||
RUN bash -e <<EOF
|
RUN bash -e <<EOF
|
||||||
|
|
||||||
dnf install -y 'dnf-command(config-manager)' epel-release zstd jq
|
useradd snmp
|
||||||
|
mkdir -p /var/lib/snmp/cert_indexes/
|
||||||
|
chown snmp:snmp -R /var/lib/snmp/cert_indexes/
|
||||||
|
mkdir -p /tmp/cache/
|
||||||
|
|
||||||
|
dnf install -y dnf-plugins-core epel-release zstd jq
|
||||||
dnf config-manager --set-enabled crb
|
dnf config-manager --set-enabled crb
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
|
||||||
@ -61,8 +66,10 @@ gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES\n'\
|
|||||||
|
|
||||||
# Add Centreon plugins repositories
|
# Add Centreon plugins repositories
|
||||||
dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/24.10/el9/centreon-24.10.repo
|
dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/24.10/el9/centreon-24.10.repo
|
||||||
dnf update -y
|
|
||||||
dnf install -y centreon-connector-perl centreon-clib
|
dnf install -y centreon-connector-perl centreon-clib
|
||||||
|
dnf update -y
|
||||||
|
|
||||||
|
rm -f /etc/yum.repos.d/centreon-plugins.repo
|
||||||
|
|
||||||
mkdir -p /var/lib/centreon/centplugins/
|
mkdir -p /var/lib/centreon/centplugins/
|
||||||
chmod 777 /var/lib/centreon/centplugins/
|
chmod 777 /var/lib/centreon/centplugins/
|
||||||
|
@ -22,7 +22,7 @@ EOF
|
|||||||
|
|
||||||
ENV LANG=en_US.utf8
|
ENV LANG=en_US.utf8
|
||||||
|
|
||||||
RUN bash -ex <<EOF
|
RUN bash -e <<EOF
|
||||||
|
|
||||||
# Avoid apt to clean packages cache directory
|
# Avoid apt to clean packages cache directory
|
||||||
rm -f /etc/apt/apt.conf.d/docker-clean
|
rm -f /etc/apt/apt.conf.d/docker-clean
|
||||||
@ -59,8 +59,6 @@ rm -f /etc/apt/sources.list.d/centreon.list
|
|||||||
mkdir -p /var/lib/centreon/centplugins/
|
mkdir -p /var/lib/centreon/centplugins/
|
||||||
chmod 777 /var/lib/centreon/centplugins/
|
chmod 777 /var/lib/centreon/centplugins/
|
||||||
|
|
||||||
apt-get update -y
|
apt-get clean
|
||||||
|
|
||||||
apt-get clean -y
|
|
||||||
|
|
||||||
EOF
|
EOF
|
@ -5,7 +5,7 @@ FROM ${REGISTRY_URL}/debian:bullseye
|
|||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
# fix locale
|
# fix locale
|
||||||
RUN bash -ex <<EOF
|
RUN bash -e <<EOF
|
||||||
|
|
||||||
useradd snmp
|
useradd snmp
|
||||||
mkdir -p /var/lib/snmp/cert_indexes/
|
mkdir -p /var/lib/snmp/cert_indexes/
|
||||||
@ -47,7 +47,7 @@ echo "deb https://packages.centreon.com/apt-plugins-stable/ bullseye main" | tee
|
|||||||
echo "deb https://packages.centreon.com/apt-plugins-testing/ bullseye main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
|
echo "deb https://packages.centreon.com/apt-plugins-testing/ bullseye main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
|
||||||
echo "deb https://packages.centreon.com/apt-plugins-unstable/ bullseye main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
|
echo "deb https://packages.centreon.com/apt-plugins-unstable/ bullseye main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
|
||||||
wget -O- https://apt-key.centreon.com | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg > /dev/null 2>&1
|
wget -O- https://apt-key.centreon.com | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg > /dev/null 2>&1
|
||||||
apt-get update
|
apt-get update -y
|
||||||
|
|
||||||
apt-get install -y centreon-clib centreon-connector-perl
|
apt-get install -y centreon-clib centreon-connector-perl
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ echo "deb https://packages.centreon.com/ubuntu-plugins-testing/ jammy main" | te
|
|||||||
echo "deb https://packages.centreon.com/ubuntu-plugins-unstable/ jammy main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
|
echo "deb https://packages.centreon.com/ubuntu-plugins-unstable/ jammy main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
|
||||||
echo "deb https://packages.centreon.com/ubuntu-connectors-stable/ jammy main" | tee /etc/apt/sources.list.d/centreon-connectors.list
|
echo "deb https://packages.centreon.com/ubuntu-connectors-stable/ jammy main" | tee /etc/apt/sources.list.d/centreon-connectors.list
|
||||||
wget -O- https://apt-key.centreon.com | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg > /dev/null 2>&1
|
wget -O- https://apt-key.centreon.com | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg > /dev/null 2>&1
|
||||||
apt-get update
|
apt-get update -y
|
||||||
|
|
||||||
apt-get install -y centreon-clib centreon-connector-perl
|
apt-get install -y centreon-clib centreon-connector-perl
|
||||||
|
|
||||||
|
@ -50,9 +50,11 @@ echo "deb https://packages.centreon.com/ubuntu-plugins-stable/ noble main" | tee
|
|||||||
echo "deb https://packages.centreon.com/ubuntu-plugins-testing/ noble main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
|
echo "deb https://packages.centreon.com/ubuntu-plugins-testing/ noble main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
|
||||||
echo "deb https://packages.centreon.com/ubuntu-plugins-unstable/ noble main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
|
echo "deb https://packages.centreon.com/ubuntu-plugins-unstable/ noble main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
|
||||||
wget -O- https://apt-key.centreon.com | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg > /dev/null 2>&1
|
wget -O- https://apt-key.centreon.com | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg > /dev/null 2>&1
|
||||||
apt-get update
|
apt-get update -y
|
||||||
|
|
||||||
apt-get install -y centreon-clib centreon-connector-perl
|
apt-get install -y centreon-connector-perl centreon-clib
|
||||||
|
|
||||||
|
rm -f /etc/apt/sources.list.d/centreon.list
|
||||||
|
|
||||||
mkdir -p /var/lib/centreon/centplugins/
|
mkdir -p /var/lib/centreon/centplugins/
|
||||||
chmod 777 /var/lib/centreon/centplugins/
|
chmod 777 /var/lib/centreon/centplugins/
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
##
|
#
|
||||||
|
|
||||||
package os::linux::snmp::plugin;
|
package os::linux::snmp::plugin;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user