Last active
August 29, 2015 14:04
-
-
Save sitkevij/c5c59867149211d39d7e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# read http://www.unixmen.com/install-configure-nagios-ubuntu-14-04-lts/ | |
# echo $HISTFILE | |
# ls /home/ubuntu/.bash_history | |
# installation for fresh vm | |
sudo apt-get install nagios3 nagios-nrpe-plugin | |
sudo vim /etc/nagios3/nagios.cfg | |
#Find the line, | |
# | |
#check_external_commands=0 | |
#And change it to: | |
# | |
#check_external_commands=1 | |
#Save and close the file. Restart nagios service. | |
sudo /etc/init.d/nagios3 restart | |
sudo mkdir /etc/nagios3/servers | |
sudo vim /etc/nagios3/servers/clients.cfg | |
# needed for nagiosql | |
sudo apt-get update | |
sudo apt-get install -y python-software-properties | |
sudo add-apt-repository ppa:ondrej/php5 | |
sudo apt-get update | |
sudo apt-get install -y php5 | |
sudo apt-get install mysql-server | |
sudo apt-get install -y php5-mysql | |
sudo service apache2 restart | |
sudo vim /etc/php5/apache2/php.ini | |
# update timezone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment