Ubuntu Server 14.04 LTS – Nagios Core 4.1.1 telepítés, beállítás

Nagios Core 4.1.1
Nagios Core 4.1.1

IT Monitoring, Management, and More.


Nagios Core 4.1.1    Nagios Core 4.1.1


Ubuntu Server 14.04 LTS – Install Nagios Core 4.1.1


sudo useradd nagios
sudo groupadd nagcmd
sudo usermod -a -G nagcmd nagios

sudo apt-get update
sudo apt-get install apache2 build-essential libgd2-xpm-dev openssl libssl-dev xinetd apache2-utils unzip php5

curl -L -O https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.1.1.tar.gz
tar xvf nagios-*.tar.gz
cd nagios-*
./configure –with-nagios-group=nagios –with-command-group=nagcmd
make all
sudo make install
sudo make install-commandmode
sudo make install-init
sudo make install-config
sudo /usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/sites-available/nagios.conf
sudo usermod -G nagcmd www-data

cd ~
curl -L -O http://nagios-plugins.org/download/nagios-plugins-2.1.1.tar.gz
tar xvf nagios-plugins-*.tar.gz
cd nagios-plugins-*
./configure –with-nagios-user=nagios –with-nagios-group=nagios –with-openssl
make
sudo make install

cd ~
curl -L -O http://downloads.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz
tar xvf nrpe-*.tar.gz
cd nrpe-2.15
./configure –enable-command-args –with-nagios-user=nagios –with-nagios-group=nagios –with-ssl=/usr/bin/openssl –with-ssl-lib=/usr/lib/x86_64-linux-gnu
make all
sudo make install
sudo make install-xinetd
sudo make install-daemon-config

sudo nano /usr/local/nagios/etc/nagios.cfg

cfg_dir=/usr/local/nagios/etc/servers

Nagios Core 4.1.1

sudo mkdir /usr/local/nagios/etc/servers

sudo nano /usr/local/nagios/etc/objects/contacts.cfg

define contact{
   contact_name  nagiosadmin             ; Short name of user
   use           generic-contact         ; Inherit default values from generic-contact template
   alias         Nagios Admin            ; Full name of user
   email         itfroccs@itfroccs.com   ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
}

Nagios Core 4.1.1

sudo nano /usr/local/nagios/etc/objects/commands.cfg

define command{
    command_name check_nrpe
    command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}

Nagios Core 4.1.1

sudo a2enmod rewrite
sudo a2enmod cgi

sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

sudo ln -s /etc/apache2/sites-available/nagios.conf /etc/apache2/sites-enabled/

sudo service nagios start
sudo service apache2 restart

sudo ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios

login: http://<your.nagios.server.ip>/nagios

user: nagiosadmin

passwd: <your passwd>



Windows Client Install Nagios

Install NSClient++ (windows)

sudo nano /usr/local/nagios/etc/nagios.cfg

cfg_file=/usr/local/nagios/etc/objects/windows.cfg

Nagios Core 4.1.1

sudo nano /usr/local/nagios/etc/objects/windows.cfg

define host{
    use          windows-server    ; Inherit default values from a Windows server template
    host_name    winserver
    alias        My Windows Server
    address      192.168.1.2 <your winserver ip>
    }

Nagios Core 4.1.1
etc…
sudo service nagios restart



ITFröccs.hu Szoftver | – Hardver újdonságok, tesztek, megoldások egy helyen!

forrás: https://www.nagios.com/

forrás: https://www.digitalocean.com/community/tutorials/how-to-install-nagios-4-and-monitor-your-servers-on-ubuntu-14-04

forrás-bővebb-info: Monitoring Windows MachinesMonitoring Linux/Unix MachinesMonitoring Routers and Switches

HOZZÁSZÓLOK A CIKKHEZ

Please enter your comment!
Please enter your name here

Ez a weboldal az Akismet szolgáltatását használja a spam kiszűrésére. Tudjunk meg többet arról, hogyan dolgozzák fel a hozzászólásunk adatait..