Installation steps for Nagios.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
vijayabhaskar.k
Posts: 6
Joined: Fri Feb 12, 2016 5:31 pm

Installation steps for Nagios.

Post by vijayabhaskar.k »

We are planning to install on RHEL 5.1, Can you please let us know steps for RHEL. How “If it is RHEL, the install must be registered, with access to the RHEL Optional channel enabled”. Please share the process.

One more challenge information required for Nagios installation:
Root access required for installation. if we installed with root user, the files will be created with the user/group as “root/root”. How to install Nagios product in our own specific file system.?

For Example, I want login user as “Nagios” into RHEL and the files need to create on the following directory/file system after install the product- /Nagiosxi_install , is it feasible ?

Can you please confirm in which places the product files will be located after install the Nagios product.?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installation steps for Nagios.

Post by lmiltchev »

Can you please let us know steps for RHEL. How “If it is RHEL, the install must be registered, with access to the RHEL Optional channel enabled”
Here's some information about registering RHEL system:
https://access.redhat.com/solutions/253273
and adding the "Optional" channel:
https://support.nagios.com/wiki/index.p ... ptions..22
How to install Nagios product in our own specific file system.?
You don't need to do anything special. Our installer will take care of that. Please, follow our "Manual Installation Instructions" document:
https://assets.nagios.com/downloads/nag ... ctions.pdf
For Example, I want login user as “Nagios” into RHEL and the files need to create on the following directory/file system after install the product- /Nagiosxi_install , is it feasible ?

Can you please confirm in which places the product files will be located after install the Nagios product.?
I would not recommend changing the "default" paths in Nagios XI as you may end up with unusable Nagios XI instance. Here's a document on the Nagios XI directory structure. It will give you an idea where everything is located:
https://assets.nagios.com/downloads/nag ... ucture.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Installation steps for Nagios.

Post by bwallace »

In addition to lmiltchev's post, while Red Hat 5 is supported, I would personally recommend version 6 or 7. Nagios Enterprises highly recommends and will only support installing Nagios XI on a newly installed, "clean" system (a bare minimal install with nothing else installed or configured).
https://assets.nagios.com/downloads/nag ... ctions.pdf

Nagios does not need to run as root. By default it runs as 'nagios' and is also in /etc/sudoers. Modifying such so that nagios runs as something other than 'nagios' is not recommended.
Be sure to check out the Knowledgebase for helpful articles and solutions!
vijayabhaskar.k
Posts: 6
Joined: Fri Feb 12, 2016 5:31 pm

Re: Installation steps for Nagios.

Post by vijayabhaskar.k »

Hi Nagios Team,

Thank you for sharing some details here.

However, but still have some doubts on the installation part.

I am taking fresh linux server.

1. for login into unix server which user you will be recommend?. Please give example.
2. what is the privilege's required for that user ( root or etc )?
3. after login into server, we will navigate to /tmp. (please confirm. You have specified in the document)
4. we will get down the file by using wget http://assets.nagios.com/downloads/nagi ... est.tar.gz ( please confirm.You have specified in the document)
5. Next, tar xzf xi-latest.tar.gz
6. cd /tmp/nagiosxi
7. ./fullinstall ( For running this command, what is the login user privilege's required?.

8 after the above steps executed, the folder structure automatically created. I have observed the document. thank you for the sharing that.

9. Can you please help how to stop and start the services. which user privileges required?.


Note:

I am looking mainly point 1, 2, 7 and 9. I have still not clear that.


Can you please help to proceed install in our system.



Thanks,
Vijayabhaskar
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Installation steps for Nagios.

Post by Box293 »

vijayabhaskar.k wrote:1. for login into unix server which user you will be recommend?. Please give example.
root

vijayabhaskar.k wrote:2. what is the privilege's required for that user ( root or etc )?
root, the default that is given as part of the base OS install.

vijayabhaskar.k wrote:3. after login into server, we will navigate to /tmp. (please confirm. You have specified in the document)
Confirmed

vijayabhaskar.k wrote:4. we will get down the file by using wget http://assets.nagios.com/downloads/nagi ... est.tar.gz ( please confirm.You have specified in the document)
You can download that and transfer it across via SCP using a program like WinSCP if you so wish.
Note: Internet connection is required on the XI server. If this server does not have an internet connection then you will need to do an offline install:
https://support.nagios.com/kb/article.p ... ategory=83

vijayabhaskar.k wrote:5. Next, tar xzf xi-latest.tar.gz
Confirmed

vijayabhaskar.k wrote:6. cd /tmp/nagiosxi
Confirmed

vijayabhaskar.k wrote:7. ./fullinstall ( For running this command, what is the login user privilege's required?.
Confirmed
The root user with root privileges

vijayabhaskar.k wrote:9. Can you please help how to stop and start the services. which user privileges required?.

Code: Select all

service nagios stop
service nagios start
The installs sets up all the privileges in /etc/sudoers
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vijayabhaskar.k
Posts: 6
Joined: Fri Feb 12, 2016 5:31 pm

Re: Installation steps for Nagios.

Post by vijayabhaskar.k »

Hi Nagios Team,

Appreciated your help.

I have one more query:

On point 9: which user privileges required for starting the Nagios services?. is it root or pbrun access ( sudo user permission like root but not exact root)


Thanks,
Vijay
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installation steps for Nagios.

Post by lmiltchev »

Linux is very flexible - you could edit "/etc/sudoers" to allow your non-root user to restart nagios. Alternatively, you could give users sudo access to run any command as root by adding them to the 'admin' group.

Code: Select all

%admin ALL=(ALL) ALL 
Be sure to check out our Knowledgebase for helpful articles and solutions!
vijayabhaskar.k
Posts: 6
Joined: Fri Feb 12, 2016 5:31 pm

Re: Installation steps for Nagios.

Post by vijayabhaskar.k »

Hi Nagios Team,

I have successfully installed the Nagios XI. but, have concern. the installation files are storing in /usr

This file system have less space. I am sharing some other mount points which are available in the system.
Can you please let us know is it possible to install the product in the mount point "/opt/cia/software". if yes, how to do it?.

The size seems to be increasing. it may be with the logs, etc... SO, /usr space will be 100% will occupy in shortly.

Kindly suggest how to proceed on it?

Appreciated your prompt response.


/dev/mapper/vg00-usr 3.9G 2.9G 794M 79% /usr

---------------------------------------------------------------------------------------
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-root
976M 379M 547M 41% /
tmpfs 7.5G 0 7.5G 0% /dev/shm
/dev/sda1 488M 69M 395M 15% /boot
/dev/mapper/vg00-home
3.9G 8.7M 3.7G 1% /home
/dev/mapper/vg00-opt 1.5G 282M 1.1G 21% /opt
/dev/mapper/vg00-tmp 2.0G 779M 1.1G 43% /tmp
/dev/mapper/vg00-usr 3.9G 2.9G 794M 79% /usr
/dev/mapper/vg00-usropenv
3.9G 8.0M 3.7G 1% /usr/openv
/dev/mapper/vg00-var 2.9G 843M 2.0G 31% /var
/dev/mapper/vg00-varopt
976M 54M 872M 6% /var/opt
/dev/mapper/appsvg-cialv
147G 60M 140G 1% /opt/cia
ddgdwcs1:/opt/cia/software
143G 60M 136G 1% /opt/cia/software
lddweb01:/opt/cia/Dev04WebTier
45G 52M 42G 1% /opt/cia/Dev04WebTier

--------------------------------------------------------------------------------------
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installation steps for Nagios.

Post by lmiltchev »

Using custom paths in Nagios XI *may* work but it is definitely not something that we would recommend or support. In theory, you can create symlinks, and it *should* work, however in reality, many things can go wrong.

BTW, a similar issue has been discussed on the forum before:
https://support.nagios.com/forum/viewto ... =6&t=34193
Be sure to check out our Knowledgebase for helpful articles and solutions!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Installation steps for Nagios.

Post by bwallace »

To answer some of your other questions:

Almost all of our customers install to the default location so /usr should not fill up as you anticipate - certainly not just a few hours after a fresh install. Do you have other software running on this machine?
That said, we have seen where perfdata files build up in /usr/local/nagios/var/spool/perfdata because NPCD is not running.....
Check if NPCD is running:

Code: Select all

service npcd status
Take a look at this doc for a better understanding of the Nagios XI directory structure.
https://assets.nagios.com/downloads/nag ... ucture.pdf
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked