NagiosQL3 installation step by step in centos/redhat or fedora part 2
In the previous post we have already completed the first step to install Nagios core service, Now in this article we will learn about installation of Nagios web administration tool.
Step 1: Install Required Packages
First we need to install required packages, Use the following commands to install them.
# yum install libssh2 libssh2-devel mysql mysql-server php-mysql
Also install ssh2 pecl extension for php. You can use one of below commands to install it.
# pecl install ssh2
[if above command not worked use below else skip it]
# pecl install channel://pecl.php.net/ssh2-0.12
Step 2: Download NagiosQL3 and Extract
Download latest available nagiosql3 archive and extract in nagios document root using below commands.
# cd /usr/local/nagios/share
# wget http://sourceforge.net/projects/nagiosql/files/nagiosql/NagiosQL%203.2.0/nagiosql_320.tar.gz
# tar xzf nagiosql_320.tar.gz
# mv nagiosql32 webadmin
# chown -R apache:apache .
# chmod -R 775 .
Step 3: Set Up Timezone
Edit php.ini file and update following variable with required timezone.
date.timezone = ‘Asia/Kolkata’
We also need to restart Apache server after editing php configuration time.
# service httpd restart
Step 4: Start NagiosQL3 Web Installer
NagiosQL3 provides web installer to install package. Open below url to start web installer for nagiosql. follow steps as showing in url. Web installer will help you about for any changes required.
http://192.168.0.5/nagios/webadmin/install/index.php
4.1: Start Installation Wizzard
Open the above url and click the button START INSTALLATION
4.2: Verify Requirements
At this screen, installer will check the required packages are installed or not. If you see any error on this screen, fix that manually and click Next
4.3: NagiosQL Setup
In this step installer will input the database details to be used for nagiosql. Also update the nagiosql path values as per given screenshots. Click Next
If you have installed nagios at some other place, only then change the values of path.
4.4: Finishing Setup
This screen showing that all the steps has successfully completed. You just need to click Next
4.5: NagiosQL Login
After completing installation, you will be redirected to NagiosQL login screen.
nagios welcome
Step 5: Access NagiosQL3 Web Interface
After completing web installer, it will automatically redirect you to nagiosql3 admin panel. To open it later use below url.
http://192.168.0.5/webadmin
Step 6: Configure NagiosQL3 with Nagios Core
This is the most important part of NagiosQL setup, It may be your setup is different that me, so be careful with below step. I am trying my best to write to complete integration.
6.1: Edit NagiosQL Configuration
Login to NagiosQL administrator section and navigate to Administration -> Administration -> Config targets and click on Modify button for Local installation.
At the below screen, you will find configuration file path, make sure all folder exists in first section and check the files path with Nagios core configuration file.
6.2: Edit Nagios Core Configuration File
Now edit nagios configuration file ( Eg: /usr/local/nagios/etc/nagios.cfg ) and commend all earlier cfg_file and cfg_dir configuration settings and add new cfg_dir with /usr/local/nagios/nagiosql only.
#cfg_file=/usr/local/nagios/nagiosql/commands.cfg
#cfg_file=/usr/local/nagios/nagiosql/contacts.cfg
#cfg_file=/usr/local/nagios/nagiosql/timeperiods.cfg
#cfg_file=/usr/local/nagios/nagiosql/templates.cfg
#cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
#cfg_file=/usr/local/nagios/etc/objects/windows.cfg
#cfg_file=/usr/local/nagios/etc/objects/switch.cfg
#cfg_file=/usr/local/nagios/etc/objects/printer.cfg
cfg_dir=/usr/local/nagios/nagiosql
#cfg_dir=/usr/local/nagios/etc/servers
#cfg_dir=/usr/local/nagios/etc/printers
#cfg_dir=/usr/local/nagios/etc/switches
#cfg_dir=/usr/local/nagios/etc/routers
Step 7: Restart Nagios Core Service
Finally verify nagios core configuration file and restart service using below commands.
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
If above command show no errors on screen, restart nagios core service
# service nagios restart
Congratulation’s You have successfully installed Nagios with NagiosQL3.
Reference:
Great post! We are linking to this great content on our site.
Keep up the great writing.
Thank you for every other magnificent article. The place else
could anyone get that kind of info in such a perfect
means of writing? I have a presentation subsequent week, and I’m at the search for such info.
I believe what you published was actually very logical. But, what
about this? suppose you added a little content? I am not saying your information isn’t
solid, however what if you added a post title that makes people want
more? I mean NagiosQL3 installation step by step in centos/redhat or fedora part 2 | Eduguru
– Good Blogging is a little boring. You should glance at Yahoo’s front page and watch how they create news headlines to get viewers
to click. You might add a video or a picture or two to get readers interested about everything’ve got to say.
In my opinion, it would make your posts a little livelier.
Amazing issues here. I аm ѵery satisfied tօ see yopur article.
Thank yoս a lot and ӏ’m lοoking forward tߋ touch yоu.
Will you kindly drop me a e-mail?
I am regular reader, how are you everybody? This post posted at this site is genuinely good.
Hey very interesting blog!
Wow, awesome blog layout! How long have you been blogging for?
you made blogging look easy. The overall look of your site is magnificent,
as well as the content!
Hello, i feel that i saw you visited my blog so i came to return the desire?.I’m attempting to
in finding issues to improve my web site!I guess its adequate
to make use of some of your concepts!!
I know this site provides quality depending articles or reviews and other material,
is there any other web page which offers such data in quality?
Hey, I think your website might be having browser compatibility issues.
When I look at your blog site in Firefox, it looks fine but when opening in Internet Explorer,
it has some overlapping. I just wanted to give you a quick heads up!
Other then that, amazing blog!
Wonderful beat ! I would like to apprentice whilst you amend
your web site, how could i subscribe for a weblog site?
The account aided me a appropriate deal. I were a little bit familiar of this your broadcast offered vivid transparent concept
Appreciate this post. Let me try it out.
It’s perfect time to make a few plans for
the longer term and it’s time to be happy.
I have learn this post and if I may just I wish to suggest you few interesting issues or suggestions.
Perhaps you can write subsequent articles regarding this
article. I want to read even more issues about
it!
Everyone loves what you guys are up too. This kind of clever work and reporting!
Keep up the good works guys I’ve included you guys to my blogroll.
Hi! I understand this is sort of off-topic but Ihad to ask.
Does managing a well-established website such as
yours require a large amount of work? I’m completely
new to operating a blog but I do write in my diary everyday.
I’d like to start a blog so I can easily share
my experience and thoughts online. Please let me know if
you hzve any kind of suggestions or tips for brand new aspiring
bloggers. Thankyou!
Hi my friend! I want to say that this post is amazing, great written and come with
almost all vital infos. I’d like to look more posts like
this .
You ought to take part in a contest for one of the greatest websites on the net.
I’m going to recommend this website!
I for all time emailed this web site post page to all my friends, since
if like to read it then my friends will too.
I’m curious to find out what blog platform you are working with?
I’m having some small security issues with my latest site and I’d like to
find something more risk-free. Do you have any recommendations?
Hey there! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche.
Your blog provided us beneficial information to
work on. You have done a marvellous job!