Skip to content

Instantly share code, notes, and snippets.

@richardpeng
Created October 19, 2010 18:50
Show Gist options
  • Save richardpeng/634804 to your computer and use it in GitHub Desktop.
Save richardpeng/634804 to your computer and use it in GitHub Desktop.
#!/bin/bash
#Install nagios plugins
VERSION=1.4.15
DESTDIR=~/nagios-plugins
URL=http://downloads.sourceforge.net/project/nagiosplug/nagiosplug/${VERSION}/nagios-plugins-${VERSION}.tar.gz
FILE=nagios-plugins-${VERSION}.tar.gz
FOLDER=nagios-plugins-${VERSION}
mkdir ~/nagios-build
cd ~/nagios-build
wget $URL
tar xzf $FILE
cd $FOLDER
./configure
make
make install DESTDIR=~/nagios-build/temp
mv ~/nagios-build/temp/usr/local/nagios/libexec $DESTDIR
rm -r ~/nagios-build
$DESTDIR/check_dummy 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment