How to Install & Configure Nagios Core 4.1.0rc1 & Plugins 2.0.3 in Ubuntu 15.04 Server - Part 2
Hello Everyone,
In this tutorial,
Let Us Install & Configure Nagios Core 4.1.0rc1 & Plugins 2.0.3 in Ubuntu 15.04 Server - Part 2 in - 64Bit
Note :- First Part of Video Can Click Below Link ...
How to Install & Configure Nagios Core 4.1.0rc1 & Plugins 2.0.3 in Ubuntu 15.04 Server - Part 1....................
https://youtu.be/F9oL_0DaG9Y
Step21:- make install-webconf ---- apache and nagiso config file install
1. In this step, we will be creating a password for “nagiosadmin"
2. Keep it remember because this password will be used when you login in the Nagios Web interface.
Step:- htpasswd -s -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
9. Customizing Nagios Configuration
Step22 :- vi /usr/local/nagios/etc/objects/contacts.cfg
11. Unzip the download nagios
Step25:- cd /home/download or cd /root/nagios
Step26:- tar xvf nagios-4.1.0rc1.tar.gz
Step27:- cd nagios-4.1.0rc1.tar.gz
Step28:- ./configure --with-nagios-user=nagios --with-nagios-group=nagios
Step29:- make all
Step30:- make install
12. Copy and link Nagios Apache configuration
Step31:- sudo cp /etc/apache2/conf.d/nagios.conf /etc/apache2/sites-available/nagios
Step32:- sudo ln -s /etc/apache2/sites-available/nagios /etc/apache2/sites-enabled/nagios
14. Check Nagios configuration for errors
Step33:- sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
15. Make Nagios and Apache start at boot
Step34:- sudo ln -s /etc/init.d/nagios /etc/rcS.d/S98nagios
Step35:- sudo ln -s /etc/init.d/apache2 /etc/rcS.d/S99apache2
Step36:- chkconfig -add nagios
Step37:- chkconfig nagios on
16. Start Nagios Core 4.1.0rc1 Service
step38 :- sudo service nagios start
17. Start Apache Service
step39 :- sudo service apache2 start
TESTING TIME
Visit Nagios URL in your browser
http://IPADDRESS/nagios or http://domainname.cm/nagios
username:- nagiosadmin and password:- created in step 8
18. To Add New User & Reset Password
The user's credentials password are stored in
/etc/nagios3/htpasswd.users
19. To change the nagiosadmin password.
step43:- sudo htpasswd /etc/nagios3/htpasswd.users nagiosadmin
20. To add a user
step44:- sudo htpasswd /etc/nagios3/htpasswd.users steve
ERROR
Error 1 after login :- error could not read object configuration data nagios 4 run nagios as daemon.
Step40:- sudo /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Error 1 after login:- It appears as though you do not have permission to view information for any of the hosts you requested.
Step41:- sudo nano /usr/local/nagios/etc/cgi.cfg
Step42:- sudo service nagios restart
NOTE :- For Any Clarification Please Below
Comment,
Like and
Share us and help us to spread.
####--------------------------------------------------------------------------------------####
Subscribe :- http://www.youtube.com/user/itcloudnet?sub_confirmation=1
Website :- http://www.cloudnetwork.in
Facebook :- http://facebook.com/itCloudNetwork/
Twitter :- http://twitter.com/itcloudnet
Pinterset :- http://pinterset.com/itcloudnet
LinkedIn :- http://in.linkedin.com/pub/itcloudnet
Google+ :- https://plus.google.com/u/0/107923552480070716949/posts
Skype Id :- cloud.network1
E-Mail Id :- itcloudnet@gmail.com
####----------------------------------------------------------------------------------------####
Thanking You
Hope U Like it........