Thursday, 5 November 2015

Nagios Core Version 4.1.1 Install in RHEL 7.xx /CentOS 7.xx

[root@linuxterms ~]# yum -y install openssh-server openssh-clients

[root@linuxterms ~]# yum install httpd php php-cli gcc glibc glibc-common gd gd-devel net-snmp

[root@linuxterms ~]# service sshd start

[root@linuxterms ~]# netstat -tulpn | grep :22






[root@linuxterms ~]# systemctl start httpd.service

[root@linuxterms ~]# useradd nagios
[root@linuxterms ~]# passwd nagios

[root@linuxterms ~]# groupadd nagcmd
[root@linuxterms ~]# usermod -a -G nagcmd nagios
[root@linuxterms ~]# usermod -a -G nagcmd apache

[root@linuxterms ~]# mkdir /opt/setar
[root@linuxterms ~]# cd /opt/setar
[root@linuxterms setar]# wget https://assets.nagios.com/downloads/nagioscore/rel eases/nagios-4.1.1.tar.gz

[root@linuxterms setar]# tar -zxvf nagios-4.1.1.tar.gz

[root@linuxterms nagios-4.1.1]# cd nagios-4.1.1

[root@linuxterms nagios-4.1.1]# ./configure –with-command-group=nagcmd























[root@linuxterms nagios-4.1.1]# make all


















[root@linuxterms nagios-4.1.1]# make install

[root@linuxterms nagios-4.1.1]# make install-commandmode

[root@linuxterms nagios-4.1.1]# make install-config

[root@linuxterms nagios-4.1.1]# make install-webconf



























[root@linuxterms nagios-4.1.1]# htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

[root@linuxterms nagios-4.1.1]# chcon -R -t httpd_sys_content_t /usr/local/nagios






















 



















 














No comments:

Post a Comment