Last active
December 8, 2016 19:19
-
-
Save tbaschak/0e5519608ef03d392694e1b893d907d2 to your computer and use it in GitHub Desktop.
bash script to make simple nagios4 packages for debian jessie, based on https://raymii.org/s/tutorials/Nagios_Core_4_Installation_on_Ubuntu_12.04.html#Note_about_packages_and_checkinstall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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