Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # =============================================================================
- # Monitoring plugins
- # =============================================================================
- PLUGIN=monitoring-plugins-2.0
- PLUGIN_FILENAME=$PLUGIN.tar.gz
- PLUGIN_DOWNLOAD_ADRESS=https://www.monitoring-plugins.org/download/$PLUGIN_FILENAME
- echo "Downloading: $PLUGIN_DOWNLOAD_ADRESS ..."
- [ -e "$PLUGIN_FILENAME" ] && echo '$PLUGIN_FILENAME already exists.'
- if [ ! -e "$PLUGIN_FILENAME" ]; then
- wget -q $PLUGIN_DOWNLOAD_ADRESS
- if [ $? -ne 0 ]; then
- echo "Not possible to download $PLUGIN_FILENAME."
- exit 1
- fi
- fi
- echo "Installing $PLUGIN"
- tar xvzf $PLUGIN_FILENAME
- cd $PLUGIN
- ./configure
- make
- make install
- echo "Cleaning up..."
- rm -f $PLUGIN_FILENAME
- rm -rf $PLUGIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement