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?
Problem After Activating Memcached in Nagiosxi
Problem After Activating Memcached in Nagiosxi
Last edited by thave on Wed Oct 19, 2011 12:16 pm, edited 1 time in total.
Re: Problem After Activating Memcahed in Nagiosxi
Are you behind a proxy or NAT?
Nicholas Scott
Former Nagios employee
Former Nagios employee
Re: Problem After Activating Memcahed in Nagiosxi
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
// 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
What version of Nagios XI are you running?
Try running:
Can you post the contents of output.txt?
Try running:
Code: Select all
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh &> output.txtRe: Problem After Activating Memcached in Nagiosxi
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/scriptsRe: Problem After Activating Memcached in Nagiosxi
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
Thanks a lot
Re: Problem After Activating Memcached in Nagiosxi
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
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
Thanks for looking. I'll track the changes regarding this bug.
Re: Problem After Activating Memcached in Nagiosxi
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.