0% found this document useful (0 votes)
20 views1 page

Nagios

Uploaded by

irvinccode
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

Nagios

Uploaded by

irvinccode
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

cd /etc/selinux

vim config

SELINUX=disabled

firewall-cmd --permanent --add-port=80/tcp


firewall-cmd --permanent --add-port=443/tcp

firewall-cmd --reload
firewall-cmd --list-all

systemctl reboot

yum install -y gettext wget net-snmp-utils openssl-devel glibc-common unzip perl


epel-release gcc php gd automake autoconf httpd make glibc gd-devel net-snmp
yum install perl-Net-SNMP

useradd nagios
usermod -a -G nagios apache

wget https://github.com/NagiosEnterprises/nagioscore/releases/download/nagios-
4.5.5/nagios-4.5.5.tar.gz

tar -xzvf nagios-4.5.5.tar.gz

cd nagios-4.5.5/

./configure

make all
make install
make install-init
make install-commandmode
make install-config
make install-webconf

systemctl enable nagios


systemctl enable httpd

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

systemctl start nagios


systemctl start httpd

systemctl status nagios


systemctl status httpd

You might also like