CentOS 7
Sponsored Link

Nagios 4 : Install2016/09/15

Install Nagios 4 which is an enterprise open source monitoring system.
[3] Install Nagios.
Also Install basic plugins to monitor nagios server itself.
# install from EPEL

[root@dlp ~]#
yum --enablerepo=epel -y install nagios nagios-plugins-{ping,disk,users,procs,load,swap,ssh,http}
[4] Configure Nagios.
[root@dlp ~]#
vi /etc/httpd/conf.d/nagios.conf
# line 24-26, change settings to set access permissionlike follows ( set for line 54-56, too )

Require all granted
Require local
Require ip
# add nagios admin user

[root@dlp ~]#
htpasswd /etc/nagios/passwd nagiosadmin

New password:    
# set any password

Re-type new password:
Adding password for user nagiosadmin
[root@dlp ~]#
systemctl start nagios

[root@dlp ~]#
systemctl enable nagios

[root@dlp ~]#
systemctl restart httpd

[5] If Firewalld is running, allow HTTP service.
[root@dlp ~]#
firewall-cmd --add-service={http,https} --permanent

[root@dlp ~]#
firewall-cmd --reload

[6] Access to the "http://(Nagios server's hostname or IP address)/nagios/" from a client which is in the network allowed by Nagios server and authenticate with the Nagios admin user "nagiosadmin" to login.
[7] After successing authentication, the Nagios admin site is displayed.
[8] It's possible to view system status to click "Tactical Overview" and so on.
Matched Content