User Tools

Site Tools


debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
debian [2024/09/08 14:29] – created - external edit 127.0.0.1debian [2024/10/25 14:13] (current) w5ged
Line 145: Line 145:
 === Nagios === === Nagios ===
    > sudo apt update && sudo apt upgrade    > sudo apt update && sudo apt upgrade
-   > sudo apt install -y autoconf gcc libc6 make wget unzip apache2 php libapache2-mod-php7.4 libgd-dev +   > su 
-   > sudo useradd nagios +   # apt-get install -y autoconf gcc libc6 make wget unzip apache2 apache2-utils php libgd-dev 
-   > sudo groupadd nagcmd +   # apt-get install openssl libssl-dev 
-   > sudo usermod --G nagcmd nagios  +   cd /tmp 
-   cd /tmp +   wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.5.7.tar.gz 
-   wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.5.4.tar.gz +   tar xzf nagioscore.tar.gz 
-   tar xzf nagios-4.5.4.tar.gz +   cd /tmp/nagioscore-nagios-4.5.7/ 
-   cd nagios-4.5.4.tar.gz +   ./configure --with-httpd-conf=/etc/apache2/sites-enabled 
-   > do ./configure --with-nagios-group=nagios --with-command-group=nagcmd +   make all 
-   > sudo make all +   make install-groups-users 
-   > sudo make install +   # usermod -a -G nagios www-data 
-   > sudo make install-init +   # make install 
-   > sudo make install-config +   make install-daemoninit 
-   > sudo make install-commandmode +   make install-commandmode 
-   > sudo make install-webconf +   # make install-config 
-   > sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin +   # make install-webconf 
-   > sudo a2enmod rewrite cgi +   # a2enmod rewrite 
-   > sudo systemctl restart apache2 +   # a2enmod cgi 
-   > cd /tmp +   # htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin 
-   wget https://nagios-plugins.org/download/nagios-plugins-2.3.3.tar.gz +   cd /tmp 
-   tar xzf nagios-plugins-2.3.3.tar.gz +   wget https://nagios-plugins.org/download/nagios-plugins-2.4.11.tar.gz 
-   cd nagios-plugins-2.3.3.tar.gz +   tar xzf nagios-plugins-2.4.11.tar.gz 
-   sudo ./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl +   cd nagios-plugins-2.4.11 
-   sudo make +   sudo ./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl 
-   sudo make install+   sudo make 
 +   sudo make install 
 +   # exit
    Configure nagios using these files    Configure nagios using these files
      /usr/local/nagios/etc/nagios.cfg      /usr/local/nagios/etc/nagios.cfg
Line 183: Line 185:
    > cd /tmp    > cd /tmp
    > wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.5.4.tar.gz    > wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.5.4.tar.gz
-   > tar xzf nagios-4.5.4.tar.gz +   > tar xzf nagios-4.5.7.tar.gz 
-   > cd nagios-4.5.4.tar.gz+   > cd nagios-4.5.7.tar.gz
    > ./configure --with-command-group=nagcmd    > ./configure --with-command-group=nagcmd
    > sudo make all    > sudo make all
debian.1725805781.txt.gz · Last modified: 2024/09/08 14:29 by 127.0.0.1