Attention: All pages of this wiki depend on the pages that come before it, in order as they are listed on the Main Page. Please check for Dependencies.
Please also look at What You Need to Know Before Using This Wiki

Install Nagios

Jump to navigation Jump to search

Obtain and Install Nagios

  • Find latest downloads here:
  • cd /usr/src/
  • tar zxf nagios-3.5.0.tar.gz
  • cd nagios/
  • ./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-command-user=nagios --with-command-group=nagios --with-init-dir="" --with-httpd-conf=""
  • make all
  • make install
  • cd ..
  • tar zxf nagios-plugins-1.4.16.tar.gz
  • cd nagios-plugins-1.4.16/
  • ./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-trusted-path=$PATH
  • vi /usr/src/nagios-plugins-1.4.16/
  • patch gl/ <
  • make && make install

Configure Nagios

Configure Apache

  • vi /etc/apache2/sites-available/
  • mkdir /var/log/apache2/
  • chown root:adm /var/log/apache2/
  • a2ensite
  • /etc/init.d/apache2 restart
  • samba-tool dns add houselian nagios A

Start Nagios

  • mkdir -p -m 1755 /var/service/nagios
  • mkdir -p -m 0755 /var/service/nagios/log
  • vi /var/service/nagios/run
  • ln -s /var/service/ /var/service/nagios/log/run
  • chmod 0755 /var/service/nagios/run /var/service/nagios/log/run
  • ln -s /var/service/nagios/ /service/nagios
  • sv <= Make sure Nagios is running

Install NRPE

On Houselian

On Porchlian

On Shedlian