Nagios config snapshots acting strange

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Nagios config snapshots acting strange

Post by andrewatmacys »

I've attempted to apply some configs earlier today, with failures, but it seems Nagios is operating a few hours in the future....

I've got two snapshots that seem successful that have run at 4:05 pm today, and it is currently 11:33 am. Anybody have any idea what's happening? I'm attaching screenshots as well, and can provide a profile when requested. Maybe I just need to find a DeLorean....
You do not have the required permissions to view the files attached to this post.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: Nagios config snapshots acting strange

Post by andrewatmacys »

I'm also not seeing the failures to apply at all in this list, which seems a little odd.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios config snapshots acting strange

Post by tgriep »

In the XI GUI, can you go to the Admin > System Profile menu.
Click on the View System Info button and verify that the Date/Time settings are OK and match each other?
Date/Time
PHP Timezone: US/Central
PHP Time: Mon, 05 Nov 2018 14:15:22 -0600
System Time: Mon, 05 Nov 2018 14:15:22 -0600
If the PHP time and System Time do not match, you will have to go through this document to update the systems time.

https://assets.nagios.com/downloads/nag ... m_Time.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: Nagios config snapshots acting strange

Post by andrewatmacys »

They indeed did not match! Now, for the second part of that, would the time discrepancy cause the failed snapshots not to show up in the list?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios config snapshots acting strange

Post by tgriep »

With the time out of sync, the system may not even have created the erred snapshots so they would not show up in the menu.
Be sure to check out our Knowledgebase for helpful articles and solutions!
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: Nagios config snapshots acting strange

Post by andrewatmacys »

Thanks, I'm attempting to apply a config now, so we'll see what happens. Might have to wait until the time passes on the last successful configs.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios config snapshots acting strange

Post by tgriep »

Let us know if you have any further questions or that is started to function again.
Be sure to check out our Knowledgebase for helpful articles and solutions!
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: Nagios config snapshots acting strange

Post by andrewatmacys »

The time issue is indeed fixed, but the problem with the config snapshot not even showing up is still there. The problem may stem from the error I'm getting, which is referencing hosts that don't exist in Nagios. I'm attaching a couple screenshots to show you more of what I'm talking about.

As you can see, the config did not apply, but it's not even showing up in the list of config snapshots. I can provide a system profile if desired.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios config snapshots acting strange

Post by tgriep »

Can you login to the Nagios server in a shell, run the following commands and post the output here?

Code: Select all

su - nagios
cd /usr/local/nagiosxi/scripts/
./reconfigure_nagios.sh
This is the command line version of the Apply Config and if there are any errors, they should be displayed and we can troubleshoot them.
Be sure to check out our Knowledgebase for helpful articles and solutions!
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: Nagios config snapshots acting strange

Post by andrewatmacys »

Here's what that returned, I exited because it was going on forever with the sleeping.

URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://loca lhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'subm it=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=*password*nagiosql.login--2018-11-07 11:20:01-- http://localhost/nagiosxi /includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.login’

[ <=> ] 39,254 --.-K/s in 0.02s

2018-11-07 11:20:01 (2.46 MB/s) - ‘nagiosql.login’ saved [39254]

LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...
Another reconfigure process is still running, sleeping...


Possible that the "other" reconfigure process is out there somewhere causing these issues?
Locked