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: Difference between revisions

From COCNM
Jump to navigation Jump to search
m (1 revision)
(No difference)

Revision as of 01:20, 19 September 2013

Obtain and Install Nagios

  • Find latest downloads here: http://www.nagios.org/download
  • 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/stdio.in.h.patch
  • patch gl/stdio.in.h < stdio.in.h.patch
  • make && make install

Configure Nagios

Configure Apache

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

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/multilog.run /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