Configuration .... not verified?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Configuration .... not verified?

Post 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;
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nagiostest
Posts: 23
Joined: Wed Sep 19, 2012 10:58 pm

Re: Configuration .... not verified?

Post by nagiostest »

hmm i do not have those lines in my /usr/local/nagiosxi/html/config.inc.php
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Configuration .... not verified?

Post by lmiltchev »

You can just add these lines. Let us know if this fixes your problem.
Be sure to check out our Knowledgebase for helpful articles and solutions!
nagiostest
Posts: 23
Joined: Wed Sep 19, 2012 10:58 pm

Re: Configuration .... not verified?

Post by nagiostest »

changes made to the file, added the $cfg['port_number']=100;
restarted nagios but still not working
nagiostest
Posts: 23
Joined: Wed Sep 19, 2012 10:58 pm

Re: Configuration .... not verified?

Post 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!
nagiostest
Posts: 23
Joined: Wed Sep 19, 2012 10:58 pm

Re: Configuration .... not verified?

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Configuration .... not verified?

Post 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
nagiostest
Posts: 23
Joined: Wed Sep 19, 2012 10:58 pm

Re: Configuration .... not verified?

Post 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
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Configuration .... not verified?

Post 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
Locked