Page 2 of 2

Re: Configuration .... not verified?

Posted: Fri Nov 30, 2012 8:47 am
by scottwilkerson
change this

Code: Select all

// allow for different http port for subsystem calls
$cfg['port_number'] = false;
to this

Code: Select all

// allow for different http port for subsystem calls
$cfg['port_number'] = 100;

Re: Configuration .... not verified?

Posted: Mon Dec 03, 2012 12:17 am
by nagiostest
hmm i do not have those lines in my /usr/local/nagiosxi/html/config.inc.php

Re: Configuration .... not verified?

Posted: Mon Dec 03, 2012 12:20 pm
by lmiltchev
You can just add these lines. Let us know if this fixes your problem.

Re: Configuration .... not verified?

Posted: Tue Dec 04, 2012 8:51 pm
by nagiostest
changes made to the file, added the $cfg['port_number']=100;
restarted nagios but still not working

Re: Configuration .... not verified?

Posted: Tue Dec 04, 2012 9:01 pm
by nagiostest
One thing i realsied is that it reverts to old snapshot. I have deleted some hosts which caused the error, i did a service nagios restart, then when i apply configuration, the config files came back and same error pops out
edit :
For example, i get this error when i run the apply configuration ( it keeps running non stop ) then thru the xi's console, when i run a service check i would have these errors - which i already deleted the host and services' configuration files. A look at the snapshot also tells me the same error, which i think i had deleted.
So in other words nagios just revert me back to my error configuration.
Error: Could not find any host matching '10.10.7.88' (config file '/usr/local/nagios/etc/services/10.10.7.88.cfg', starting on line 81)
Error: Could not expand hostgroups and/or hosts specified in service (config file '/usr/local/nagios/etc/services/10.10.7.88.cfg', starting on line 81)
Error processing object config files!

Re: Configuration .... not verified?

Posted: Tue Dec 04, 2012 9:36 pm
by nagiostest
I think is somewhat similar to my past experience
http://support.nagios.com/forum/viewtop ... f=6&t=8332
This time however i am able to from the web ui, check that the configurations have no errors and restart from the web ui.

Re: Configuration .... not verified?

Posted: Wed Dec 05, 2012 12:10 pm
by mguthrie
Can you run the following commands once more and repost the output?

Code: Select all

  cd /tmp
    tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> cmd.txt

Re: Configuration .... not verified?

Posted: Wed Dec 05, 2012 11:09 pm
by nagiostest
mguthrie wrote:Can you run the following commands once more and repost the output?

Code: Select all

  cd /tmp
    tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> cmd.txt

Re: Configuration .... not verified?

Posted: Thu Dec 06, 2012 10:32 am
by mguthrie
I"m seeing a couple of interesting things here that maybe you can shed some light on. It looks like it may be trying to perpetually import several configuration files in /usr/local/nagios/etc/import. Can you take a look at these files and see if these are the culprits that you're looking for?

Also, it's showing these permission error messages:

Code: Select all

RESTORING NOM SNAPSHOT : /usr/local/nagiosxi/nom/checkpoints/nagioscore/1354728063.tar.gz
tar: usr/local/nagios/etc/static: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/static: Cannot change mode to rwsrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/services: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/services: Cannot change mode to rwsrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp/pages: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp/pages: Cannot change mode to rwxrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp/check_commands: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp/check_commands: Cannot change mode to rwxrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp: Cannot change mode to rwxrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/objects: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/objects: Cannot change mode to rwxrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/eventhandler: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/eventhandler: Cannot change mode to rwxrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/import: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/import: Cannot change mode to rwsrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/hosts: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/hosts: Cannot change mode to rwsrwsr-x: Operation not permitted
tar: usr/local/nagios/etc: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc: Cannot change mode to rwsrwsr-x: Operation not permitted
tar: Exiting with failure status due to previous errors
Have you made any system level changes recently that might account for these errors?

Can you post the output from the following 2 commands?

Code: Select all

ll /usr/local/nagios/etc
ll /usr/local/nagiosxi/scripts