tripleo-image-elements/elements/snmpd/install.d/67-snmpd
James Slagle 5c67d970a0 Use nagios-common instead of nagios-plugins-all on RHEL.
nagios-plugins-basic was mapped to nagios-plugins-all on RHEL, however
nagios-plugins-all is actually not shipped with RHEL. The reason it
seems to be installed via the snmpd element is so that the nagios
plugins directory exists.  This can be accomplished on RHEL by
installing nagios-common instead.

Migrates all of the element over to pkg-map as well for the other
installed packages.

Change-Id: I8773a93dcd8b348b501d8303ddd211b3edf1e2b9
2015-06-05 08:12:40 -04:00

13 lines
495 B
Bash
Executable File

#!/bin/bash
set -eux
install-packages -m snmpd nagios_plugins_package snmpd_package snmp-mibs-downloader_package lm-sensors_package
# install our snmp check script
DEST_DIR="/usr/lib64/nagios/plugins"
if [ ! 'amd64' = "$ARCH" ] || [ ! -d $DEST_DIR ]; then
DEST_DIR="/usr/lib/nagios/plugins"
fi
install -m 0755 -o root -g root $(dirname $0)/../files/check_proc_open_files.py $DEST_DIR/check_proc_open_files.py
install -m 0440 -o root -g root $(dirname $0)/../files/snmp /etc/sudoers.d/snmp