apt update && apt -y full-upgrade
apt install vim wget curl build-essential unzip openssl libssl-dev apache2 php libapache2-mod-php php-gd libgd-dev
apt install -y build-essential apache2 php openssl perl make php-gd libapache2-mod-php libperl-dev libssl-dev daemon wget apache2-utils unzip
useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd www-data
cd /tmp/
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.5.tar.gz
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.13.tar.gz
tar -zxvf nagios-4.4.5.tar.gz
tar -zxvf nagios-4.4.13.tar.gz
cd /tmp/nagios-4.4.15/
cd /tmp/nagios-4.4.5/
./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-httpd_conf=/etc/apache2/sites-enabled/
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
nano /usr/local/nagios/etc/objects/contacts.cfg
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
web log n kullanic adý nagiosadmin
web log n sýfresi 1q2w3eR4
a2enmod cgi
systemctl restart apache2
cd /tmp
wget https://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz
tar -zxvf /tmp/nagios-plugins-2.2.1.tar.gz
cd /tmp/nagios-plugins-2.2.1/
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
systemctl start nagios
systemctl enable nagios
systemctl status nagios
apt install ufw
ufw allow 80/tcp
ufw reload
ufw enable
reboot
root@ismnagios://# history
9 apt update && apt -y full-upgrade
10 apt install vim wget curl build-essential unzip openssl libssl-dev apache2 php libapache2-mod-php php-gd libgd-dev
11 apt install -y build-essential apache2 php openssl perl make php-gd libapache2-mod-php libperl-dev libssl-dev daemon wget apache2-utils unzip
12 useradd nagios
13 groupadd nagcmd
14 usermod -a -G nagcmd nagios
15 usermod -a -G nagcmd www-data
16 cd /tmp/
17 wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.13.tar.gz
18 ls -all
19 tar -zxvf nagios-4.4.13.tar.gz
20 ls -all
21 cd nagios-4.4.13/
22 ./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-httpd_conf=/etc/apache2/sites-enabled/
23 make all
24 make install
25 make install-init
26 make install-config
27 make install-commandmode
28 make install-webconf
29 nano /usr/local/nagios/etc/objects/contacts.cfg
30 htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
31 htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
32 a2enmod cgi
33 systemctl restart apache2
34 cd ..
35 wget https://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz
36 tar -zxvf /tmp/nagios-plugins-2.2.1.tar.gz
37 cd /tmp/nagios-plugins-2.2.1/
38 ./configure --with-nagios-user=nagios --with-nagios-group=nagios
39 make
40 make install
41 /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
42 systemctl start nagios
43 systemctl enable nagios
44 systemctl status nagios
45 cd //
46 ls
47 nano /usr/local/nagios/etc/nagios.cfg
48 history