Page 2 of 3

Re: Nagios XI Installation

Posted: Thu Jun 02, 2016 12:48 pm
by rkennedy
nagios_aws wrote:Thank you for your quick reply.

Does the offline installation is now in a production state ?

if I have access to those packages on my server, can I proceed with installation without any errors?

Code: Select all

graphviz-gd.x86_64
perl-IO-stringy.noarch
perl-Parse-RecDescent.noarch
perl-XML-Simple.noarch
php-mbstring.x86_64
php-snmp.x86_64
rrdtool-perl.x86_64
rrdtool-python.x86_64
thanks
As mentioned, you'll still need access to repositories, but if you have those then you should be good. -

Code: Select all

Your server must have access to base repositories for both RedHat or CentOS either via a local repository, or mounted DVD's
Does the offline installation is now in a production state ?
It should work fine in production state, many people are running XI in an offline environment.

Re: Nagios XI Installation

Posted: Mon Jun 06, 2016 2:29 am
by nagios_aws
Hello,

thanks for your support, but I have another problem:

I set up a proxy to access the base repo, everything went fine until the installation's script tried to connect with localhost to get a cookie using wget.

Code: Select all

[//usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=n@gweb' -O nagiosql.login--2016-06-03 15:09:13--  http://localhost/nagiosxi/includes/components/ccm/
...
NAGIOSQL LOGIN FAILED! 
I get a 403 error of my proxy, because localhost is blocked. but the thing is the nagios server is running, except for the monitoring engine and performance grapher.
I get the following in system status' webpage:
Monitoring engine : No lock file found on /usr/local/nagios/var/nagios.lock
this file does not exist
Performance Grapher: NPCD is not running

If you need something more, feel free to ask.

Thank you

Re: Nagios XI Installation

Posted: Mon Jun 06, 2016 12:41 pm
by lmiltchev
I get a 403 error of my proxy, because localhost is blocked.
How did you set up your proxy? Did you exclude localhost as described in our "Nagios XI - Problems Using Nagios XI With Proxies" KB article?
https://support.nagios.com/kb/article.php?id=147

Re: Nagios XI Installation

Posted: Tue Jun 07, 2016 2:49 am
by nagios_aws
Thank you,

I manage to deal with this proxy and I've done a complete offline reinstallation.

everything seems to work fine except the Performance Grapher, the status for it is "NPCD is not running"

But the thing is I can see it in a "ps faux" command, the log "/usr/local/nagios/var/npcd.log" does not show any error, even with level 2 log error.

I tried to restart it from command line, or start it using web interface but nothing works.

Any hints ?

I have also a question about AD users:

On my server, I access the AD through a QAS client (http://software.dell.com/products/authe ... -services/), so is it possible to use this to import users so they can log on Nagios interface ?
Or do I have to use the openldap client packaged with your solution ?

thank you

Re: Nagios XI Installation

Posted: Tue Jun 07, 2016 9:02 am
by rkennedy
But the thing is I can see it in a "ps faux" command, the log "/usr/local/nagios/var/npcd.log" does not show any error, even with level 2 log error.

I tried to restart it from command line, or start it using web interface but nothing works.
What is the output when you restart the service from the CLI? Can you PM over a profile from the machine? (Admin -> System Profile -> Download Profile)

This will help us look further into your system.

EDIT: Profile received.
I have also a question about AD users:

On my server, I access the AD through a QAS client (http://software.dell.com/products/authe ... -services/), so is it possible to use this to import users so they can log on Nagios interface ?
Or do I have to use the openldap client packaged with your solution ?
We do like to keep threads isolated to one issue, could you please open a new thread for this?

Re: Nagios XI Installation

Posted: Wed Jun 08, 2016 2:19 am
by nagios_aws
When I restart the NPCD daemon through CLI:

Code: Select all

[root@--------~]# service npcd restart
NPCD Stopped.
NPCD started.
[root@--------~]# 
It seems that it is working, but the link with web interface cannot be done ...

Re: Nagios XI Installation

Posted: Wed Jun 08, 2016 9:42 am
by rkennedy
After restarting the service, does it appear started in Nagios XI? What user is the process running under?

Re: Nagios XI Installation

Posted: Thu Jun 09, 2016 2:09 am
by nagios_aws
Hello,

nope, after restarting the service from CLI, it's still not marked as running in Web interface.

here is the process :

Code: Select all

nagios   45251  0.0  0.0 368888   984 ?        S    Jun08   0:16 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
the config file has been build by the installation script, except that I modified the level of logs to 2.

Re: Nagios XI Installation

Posted: Thu Jun 09, 2016 1:46 pm
by lmiltchev
nope, after restarting the service from CLI, it's still not marked as running in Web interface.
How long has been since the service was restarted from the CLI? It usually takes some time before the page updates. Have you tried refreshing the page?

Re: Nagios XI Installation

Posted: Fri Jun 10, 2016 3:04 am
by nagios_aws
It's been two days now, I restarted my computer, delete temp files from my browser, restarted NPCD again using CLI ...

I figured out how to fix my problem, but only temporary :

https://support.nagios.com/forum/viewto ... 0&start=30

my umask is set to 0022, so how can I manage to change the owner of the ncpd.pid file after restart ?

Thank you