Page 1 of 1

Problem After Activating Memcached in Nagiosxi

Posted: Wed Oct 19, 2011 7:36 am
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?

Re: Problem After Activating Memcahed in Nagiosxi

Posted: Wed Oct 19, 2011 10:27 am
by nscott
Are you behind a proxy or NAT?

Re: Problem After Activating Memcahed in Nagiosxi

Posted: Wed Oct 19, 2011 10:34 am
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

Re: Problem After Activating Memcached in Nagiosxi

Posted: Wed Oct 19, 2011 4:55 pm
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?

Re: Problem After Activating Memcached in Nagiosxi

Posted: Thu Oct 20, 2011 10:25 am
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

Re: Problem After Activating Memcached in Nagiosxi

Posted: Thu Oct 20, 2011 4:51 pm
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.

Re: Problem After Activating Memcached in Nagiosxi

Posted: Thu Oct 20, 2011 4:54 pm
by thave
Thanks a lot

Re: Problem After Activating Memcached in Nagiosxi

Posted: Fri Oct 21, 2011 1:34 pm
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

Re: Problem After Activating Memcached in Nagiosxi

Posted: Fri Oct 21, 2011 2:18 pm
by thave
Thanks for looking. I'll track the changes regarding this bug.

Re: Problem After Activating Memcached in Nagiosxi

Posted: Fri Oct 21, 2011 2:57 pm
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.