Java
Instalando as dependências sudo apt-get -y install openssl sudo apt-get -y install libssl-dev sudo apt-get -y install mcrypt sudo apt-get -y install build-essential sudo apt-get -y install nmap sudo apt-get -y install xinetd sudo apt-get -y install apache2 sudo apt-get -y install libjpeg62 sudo apt-get -y install libjpeg-dev sudo apt-get -y install libpng12-0 sudo apt-get -y install libpng12-dev sudo apt-get -y install libgd2-xpm sudo apt-get -y install libgd2-xpm-dev sudo apt-get -y install fontconfig sudo apt-get -y install sudo
Criando usuários para o Nagios sudo useradd -m nagios sudo groupadd nagios sudo usermod -G nagios nagios sudo mkdir /usr/local/nagios sudo chown -R nagios.nagios /usr/local/nagios sudo groupadd nagcmd sudo usermod -G nagios nagcmd
Baixando o Nagios 2.9 mkdir downloads cd downloads wget -c http://ufpr.dl.sourceforge.net/sourceforge/nagios/nagios-2.9.tar.gz
Compilando o Nagios tar xzvf nagios-2.9.tar.gz cd nagios-2.9
sudo ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios --with-gd-lib=/usr/lib --with-gd-inc=/usr/lib
Depois instale-o com o comando: sudo make all sudo make install sudo make install-init sudo make install-commandmode sudo make install-config
Baixando e instalando o Nagios-plugins wget -c http://ufpr.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.9.tar.gz tar xzvf nagios-plugins-1.4.9.tar.gz cd nagios-plugins-1.4.9 sudo ./configure sudo make all sudo make install
cd /usr/local/nagios/etc sudo mkdir original sudo cp *.cfg-sample original
for i in *cfg-sample; do sudo mv $i `echo $i|sed -e s/cfg-sample/cfg/` done Modificando as permições da pasta do Nagios sudo chown -R nagios.nagios /usr/local/nagios/var/rw sudo chmod u+rwx /usr/local/nagios/var/rw sudo chmod g+rwx /usr/local/nagios/var/rw sudo chmod g+s