Skip to content

Nagios Monitoring::Plugin #97

@francescor

Description

@francescor

The Nagios monitoring plugin (latest, see https://www.monitoring-plugins.org/) is missing from image: I suggest to include it since installation takes a lot of time.

Here the script I execute ad boot before /usr/local/bin/start_nagios if anybody needs it

#!/bin/sh

set -e  # Exit on any error

apk update
# perl-switch necessary only for check_snmp_mgeeaton_ups.pl
apk add --no-cache perl perl-utils build-base perl-dev perl-switch
# 2. Install/upgrade CPAN module and reload it via one-liner
PERL_MM_USE_DEFAULT=1
perl -MCPAN -e '
  CPAN::Shell->install("CPAN");
  CPAN::Shell->reload("cpan");
'
echo "CPAN installed and reloaded successfully."
perl -MCPAN -e 'install Monitoring::Plugin'
echo "Monitoring::Plugin installed successfully"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions