As some might have noticed the nrdp problem is solved. See the solution for that in that post.
The problem above isn't solved though. As described i can see the hosts now after reloading but i am experiencing a other strange problem. When i press the apply configuration i get a configuration error. When i click the button to view it, the view of that error isn't there. When i use the tools to write/restart evertyhing works fine.
Is there something we might have changed so the apply configuration isn't working anymore?
Nagios xi problems
-
- Posts: 1040
- Joined: Wed May 11, 2011 8:54 am
Re: Nagios xi problems
Does it timeout when doing the apply config?
Can you send us the output log from this (we need this for the current state)
Can you send us the output log from this (we need this for the current state)
Code: Select all
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh > new_output.log
Nicholas Scott
Former Nagios employee
Former Nagios employee
-
- Posts: 240
- Joined: Thu Jun 30, 2011 4:14 am
Re: Nagios xi problems
It does not timeout while i apply the configuration. What i do notice is that it doesn't create a problem log either.
The output of the command you asked is:
I checked to see if i had a nagiosxi user but i dont have that. Because of this i am guessing it wants to connect to it but it cant for some reason.
The output of the command you asked is:
Code: Select all
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=*' -O nagiosql.loginNAGIOSQL LOGIN FAILED!
~
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Nagios xi problems
Can you check to see if you have a nagiosxi user in the Core Config Manager. Access the Configure->Core Config Manager->Config Manager Admin->Manage Config Access page and check to see if you have a nagiosxi user account.
If you do, access the Admin->Reset Security Credentials to update the subsystem credentials.
If that still fails when you run the reconfigure_nagios.sh script, send us the output from:
So we can see both STDOUT and STDERR
If you do, access the Admin->Reset Security Credentials to update the subsystem credentials.
If that still fails when you run the reconfigure_nagios.sh script, send us the output from:
Code: Select all
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh &> output.txt
-
- Posts: 240
- Joined: Thu Jun 30, 2011 4:14 am
Re: Nagios xi problems
I checked to see if there was a nagioxi user in the core manager and it is there. After that i resetted the security credentails again as requested and did the command you posted. The output is as follows:
Seeing this i might think the ssl is causing this problem because it gets forced. I am going to try and see if i can put the nagiosql dir in the http section only and if it works then.
Code: Select all
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=*' -O nagiosql.login--2011-10-27 20:16:56-- http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://central.o4s.nl/nagiosql/index.php [following]
--2011-10-27 20:16:56-- https://central.o4s.nl/nagiosql/index.php
Resolving central.o4s.nl... 172.16.21.7
Connecting to central.o4s.nl|172.16.21.7|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: ânagiosql.loginâ
0K ..... 100% 25.5M=0s
2011-10-27 20:16:56 (25.5 MB/s) - ânagiosql.loginâ
NAGIOSQL LOGIN FAILED!
-
- Posts: 240
- Joined: Thu Jun 30, 2011 4:14 am
Re: Nagios xi problems
OK, i got some more info.
First i did put the following code in the HTTP section of the httpd config file:
In the same section i disabled the rewrite engine to make sure HTTP wasn't relayed to SSL. Now when i do the apply configuration it works.
Because it works i decided to try to enable the rewrite engine again so only SSL was accessible. As soon as i reloaded i tried to apply the configuration and it was busted again.
So i know the problem lies in the part where SSL gets forced by the rewrite engine. The problem here is that i cant have HTTP accessible. Tomorrow i will ask my co-worker if he can disable HTTP access from the firewall and i hope NRDP still works then. If it does i can just disable the rewrite engine and i am done. But my best guess is that NRDP needs http access somehow to make contact and then send the details on the SSL connection. If this last part is true i need to find a way to keep that nagiosql dir in the HTTP section or there has to be a way that it interacts with the HTTPS part.
First i did put the following code in the HTTP section of the httpd config file:
Code: Select all
<Directory "/var/www/html/nagiosql">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Because it works i decided to try to enable the rewrite engine again so only SSL was accessible. As soon as i reloaded i tried to apply the configuration and it was busted again.
So i know the problem lies in the part where SSL gets forced by the rewrite engine. The problem here is that i cant have HTTP accessible. Tomorrow i will ask my co-worker if he can disable HTTP access from the firewall and i hope NRDP still works then. If it does i can just disable the rewrite engine and i am done. But my best guess is that NRDP needs http access somehow to make contact and then send the details on the SSL connection. If this last part is true i need to find a way to keep that nagiosql dir in the HTTP section or there has to be a way that it interacts with the HTTPS part.
-
- Posts: 240
- Joined: Thu Jun 30, 2011 4:14 am
Re: Nagios xi problems
I noticed something else which is strange but i am not sure if its related to this or to NRDP.
As i described before we have a distributed monitoring system with the Nagiosxi as main central and the Nagios Core version as sending system.
Because we have lots of customers i decided that each customer gets there own NRDP token just for safety. I have added about 10 customers now and it seems the NRDP results arent accepted/being send.
This afternoon i had a customer which had the same problem but when i checked about half hour ago i noticed that there where results there but only from 1 accepted connection. The strange thing is that the
My best guess is that either i have too many tokens and because of this it only accepts it once every couple hours or there are so many results the recieving buffer is clogging up.
I tried using the same token twice but this also didn't solve it so somewhere the buffer is full or something.
As i described before we have a distributed monitoring system with the Nagiosxi as main central and the Nagios Core version as sending system.
Because we have lots of customers i decided that each customer gets there own NRDP token just for safety. I have added about 10 customers now and it seems the NRDP results arent accepted/being send.
This afternoon i had a customer which had the same problem but when i checked about half hour ago i noticed that there where results there but only from 1 accepted connection. The strange thing is that the
My best guess is that either i have too many tokens and because of this it only accepts it once every couple hours or there are so many results the recieving buffer is clogging up.
I tried using the same token twice but this also didn't solve it so somewhere the buffer is full or something.
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Nagios xi problems
You've got two completely separate issues here, please repost the NRDP issue to a separate thread.
See our documentation on how to set up SSL with Nagios xi
http://library.nagios.com/library/produ ... -nagios-xi
You're missing the:
in the /usr/local/nagiosxi/html/config.inc.php file.
See our documentation on how to set up SSL with Nagios xi
http://library.nagios.com/library/produ ... -nagios-xi
You're missing the:
Code: Select all
$cfg['use_https']=true;
-
- Posts: 240
- Joined: Thu Jun 30, 2011 4:14 am
Re: Nagios xi problems
The 2 posts from above are posted in the NRDP topic i have.
Regarding the apply configuration issue. It seems while i was creating the httpd config file, i accidently used the virtualhost part from the HTTP section and not the SSL version as described in the link.
For now i can apply the configuration again.
I am getting there with the issues for now
Regarding the apply configuration issue. It seems while i was creating the httpd config file, i accidently used the virtualhost part from the HTTP section and not the SSL version as described in the link.
For now i can apply the configuration again.
I am getting there with the issues for now

-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Nagios xi problems
OK, thanks for the update