Skip to content

Instantly share code, notes, and snippets.

@tbaschak
Last active December 8, 2016 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbaschak/0e5519608ef03d392694e1b893d907d2 to your computer and use it in GitHub Desktop.
Save tbaschak/0e5519608ef03d392694e1b893d907d2 to your computer and use it in GitHub Desktop.
#!/bin/bash
VERSION=4.2.4
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-$VERSION.tar.gz
tar xzf nagios-$VERSION.tar.gz
cd nagios-$VERSION
./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-command-user=nagios --with-command-group=nagcmd
make all
checkinstall --pkgname=nagios4
checkinstall --pkgname=nagios4-init make install-init
checkinstall --install=no --pkgname=nagios4-config make install-config
checkinstall --pkgname=nagios4-commandmode make install-commandmode
checkinstall --pkgname=nagios4-webconf make install-webconf
checkinstall --install=no --pkgname=nagios4-classicui make install-classicui
checkinstall --install=no --pkgname=nagios4-exfoliation make install-exfoliation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment