Ubuntu Server - Nagios Core
Assuming the server already pre-installed amongst the next :-
Follow these steps-by-steps :-
URL = http://192.168.4.248/nagios
When prompted for username as well as password :-
Username = master
Password = [the password you lot convey specified earlier]
- Ubuntu Server 14.04.1 LTS x64.
- OpenSSH
- Hostname : SVR01
- Username : master
Follow these steps-by-steps :-
- sudo apt-get update
- sudo apt-get upgrade
- sudo /etc/network/interfaces
- static
- address 192.168.4.248
- netmask 255.255.255.0
- gateway 192.168.4.1
- network 192.168.4.0
- broadcast 192.168.4.255
- dns-nameservers 202.188.0.133 202.188.1.5
- sudo apt-get install \
- wget \
- build-essential \
- apache2 \
- apache2-utils \
- libapache2-mod-php5 \
- php5-gd \
- libgd2-xpm-dev \
- postfix
- When prompted for electronic mail address as well as SMTP server, only run the desired electronic mail address (preferably an information technology Admin email) as well as the SMTP server address.
- sudo useradd --system --home /usr/local/nagios -M nagios
- sudo groupadd --system nagcmd
- sudo usermod -a -G nagcmd nagios
- sudo usermod -a -G nagcmd www-data
- cd /tmp
- sudo wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.8.tar.gz (a newer version peradventure available during this post, delight cheque Nagios website).
- sudo wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz (a newer version of plugins peradventure available during this post, delight cheque Nagios website).
- tar -xzvf nagios-4.0.8.tar.gz
- tar -xzvf nagios-plugins-2.0.3.tar.gz
- cd nagios-4.0.8
- sudo ./configure \
- --with-nagios-group=nagios\
- --with-command-group nagcmd \
- --with-mail=/usr/sbin/sendmail \
- --with-httpd_conf=/etc/apache2/conf-available
- sudo brand all
- sudo brand install
- sudo brand install-init
- sudo brand install-config
- sudo brand install-commandmode
- sudo brand install-webconf
- sudo cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
- sudo chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
- sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (verify Nagios configuration is right or not).
- sudo ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
- cd ..
- cd nagios-plugins-2.0.3
- sudo ./configure \
- --with-nagios-user=nagios \
- --with-nagios-group=nagios \
- --enable-perl-modules \
- --enable-extra-opts
- sudo make
- sudo brand install
- sudo a2enmod cgi
- sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin (when prompted for password, key-in your preferred password, this volition hold out run during login to the Web GUI).
- sudo nano /etc/apache2/sites-enabled/000-default.conf
- Type --> Include conf-available/nagios.conf
- sudo nano /etc/apache2/conf-available/fqdn.conf
- Type --> SVR01 localhost
- sudo a2enconf fqdn
- sudo nano /usr/local/nagios/etc/objects/contacts.cfg
- nagiosadmin = master@domain.com
- sudo service apache2 restart
- sudo service nagios start
URL = http://192.168.4.248/nagios
When prompted for username as well as password :-
Username = master
Password = [the password you lot convey specified earlier]
0 Response to "Ubuntu Server - Nagios Core"
Post a Comment