-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
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"
ucc007
Metadata
Metadata
Assignees
Labels
No labels