Problem After Activating Memcached in Nagiosxi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
thave
Posts: 5
Joined: Fri Oct 14, 2011 7:50 am

Problem After Activating Memcached in Nagiosxi

Post by thave »

Hi All
My Nagiosxi appliance working fine in eval mode with SSL enabled. Today I installed memcahed and enabled it. Every thing works fine except cannot apply configuration changes Which is sitting at Waiting for configuration verification...... for ever. I followed the link to install memcache http://assets.nagios.com/downloads/nagi ... ios_XI.pdf.
Any thoughts?
Last edited by thave on Wed Oct 19, 2011 12:16 pm, edited 1 time in total.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Problem After Activating Memcahed in Nagiosxi

Post by nscott »

Are you behind a proxy or NAT?
Nicholas Scott
Former Nagios employee
thave
Posts: 5
Joined: Fri Oct 14, 2011 7:50 am

Re: Problem After Activating Memcahed in Nagiosxi

Post by thave »

No It's local memcache . Here is my config.inc.php for this memcache
// MEMCACHED SETUP
$cfg['memcached_enable']=true; // set to true to enable memcached support, false to disable it
$cfg['memcached_hosts']=array('127.0.0.1'); // addresses of one or more memcached servers
$cfg['memcached_port']=11211; // default memcached port
$cfg['memcached_compress']=false; // set to true to store items compressed
If I stop memcache the configs loading fine.
Thanks again
Thave
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem After Activating Memcached in Nagiosxi

Post by mguthrie »

What version of Nagios XI are you running?

Try running:

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh &> output.txt
Can you post the contents of output.txt?
thave
Posts: 5
Joined: Fri Oct 14, 2011 7:50 am

Re: Problem After Activating Memcached in Nagiosxi

Post by thave »

Here is my out put

Code: Select all

RL: 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=Password1' -O nagiosql.loginLOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL:/admin/import.php
Array
(
)
RESETTING PERMS
SETUID ROOT OK
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=Password1' -O nagiosql.loginLOGIN SUCCESSFUL!
URL: http://localhost/nagiosql/admin/verify.php
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies /verify.php --no-check-certificate --post-data 'writeMonitoring=Go' -O nagiosql.export.monitoring
WRITE CONFIGS SUCCESSFUL!
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies admin/verify.php --no-check-certificate --post-data 'writeAdditional=Go' -O nagiosql.export.additional
OUTPUT:
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Reading configuration data...
   Read main config file okay...
   Read object config files okay...
Checking host groups...
        Checked 14 host groups.
Checking service groups...
        Checked 13 service groups.
Checking contacts...
        Checked 8 contacts.
Checking contact groups...
        Checked 2 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 102 commands.
Checking time periods...
        Checked 14 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 568
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...done.
Stopping nagios: done.
Starting nagios: done.
RESETTING PERMS
SETUID ROOT OK
/usr/local/nagiosxi/nom/checkpoints/nagioscore /usr/local/nagiosxi/scripts
/usr/local/nagiosxi/scripts
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem After Activating Memcached in Nagiosxi

Post by mguthrie »

We'll do some testing on this. There have been a few subtle system-level changes for the latest versions of CentOS, so we're still finding some of them. We'll see if we can recreate this issue.
thave
Posts: 5
Joined: Fri Oct 14, 2011 7:50 am

Re: Problem After Activating Memcached in Nagiosxi

Post by thave »

Thanks a lot
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Problem After Activating Memcached in Nagiosxi

Post by yancy »

thave,

I was able to reproduce your error after enabling SSL and installing memcache. A bug report has been filed and assigned.

You can track the status here:
http://tracker.nagios.com/view.php?id=195

Thanks for bringing this bug to our attention.

-Yancy
thave
Posts: 5
Joined: Fri Oct 14, 2011 7:50 am

Re: Problem After Activating Memcached in Nagiosxi

Post by thave »

Thanks for looking. I'll track the changes regarding this bug.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem After Activating Memcached in Nagiosxi

Post by mguthrie »

After digging into this issue some more, I'm going to have you hold off on implementing memcached for a while. It's looking like the query caching causes some problems with some of the sub-system processes having fresh enough information (which also causes the Apply Config to stop responding). I'm going to discuss this with our lead developer when he gets back in town, but for now I might suggest looking at the ramdisk option, or also the option to offload mysql to a second server if performance is becoming an issue on your machine.
Locked