Page 1 of 1
Apply Configuration recurring
Posted: Wed Aug 05, 2015 1:39 pm
by rkilinski
Hello,
To start, I am using the 64-bit VMware ova application running Nagios XI 2014R2.6.
We have changed domain names and the proxy server that directs old DNS names to the new AD server is being retired. I am renaming my servers in the CCM web interface. To save myself time and troubleshooting hours, I simply removed the old services and host from the configuration. I opened the services, hosts, and checked the /usr/local/nagios/etc/services and /usr/local/nagios/etc/hosts folder to confirm all has been deleted.
I re-create the entry using the Monitoring Wizard --> Windows Server and go through the steps. In the wizard, I add a service to monitor which has a space in it (ArcGIS Manager) along with the CPU/Disk usage/etc... When applying the config, I get all green checks and it seems to have taken (.cfg files have been created and host/services show up in the CCM). However; the status of the new host and all of its services say: Not Applied (in red) and a note stating: Changes detected! Apply Configuration for new changes to take effect. Well, I click apply configuration till the cows come home and nothing changes. I use different browsers, reboot the Nagios VM and still the same.
Please advise or let me know what other helpful information you may need.
Thank you for your time!
Re: Apply Configuration recurring
Posted: Wed Aug 05, 2015 3:49 pm
by tgriep
Can you run this tail command and then apply the configuration and post the output from the tail command here?
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Re: Apply Configuration recurring
Posted: Wed Aug 05, 2015 3:57 pm
by rkilinski
Thank you for the quick reply. Here is the requested information: (Started it, logged into the web interface, navigated to the page and applied configuration)
Code: Select all
[root@nagiosenv services]# tail -f /usr/local/nagiosxi/var/cmdsubsys.log
.....................................................
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.
PROCESSED 0 COMMANDS
ntials
Updating password for user nagiosadmin
OUTPUT=
RETURNCODE=0
.................................tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
PROCESSED 1 COMMANDS
/components/ccm/
CMDLINE
--2015-08-05 20:53:11-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”
0K .......... 676K=0.01s
2015-08-05 20:53:12 (676 KB/s) - “nagiosql.login” saved [10377]
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=hn96m6' -O nagiosql.loginLOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
RESETTING PERMS
SETUID ROOT OK
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
--2015-08-05 20:53:12-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”
0K .......... 829K=0.01s
2015-08-05 20:53:12 (829 KB/s) - “nagiosql.login” saved [10377]
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=hn96m6' -O nagiosql.loginLOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2015-08-05 20:53:13-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.export.monitoring”
0K .......... ... 35.6K=0.4s
2015-08-05 20:53:13 (35.6 KB/s) - “nagiosql.export.monitoring” saved [13391]
WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 55 services.
Warning: Host 'gissde01.rcc_nt.rti.org' has no default contacts or contactgroups defined!
Checked 9 hosts.
Checked 2 host groups.
Checked 0 service groups.
Warning: Service recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify critical and/or warning options as well
Checked 9 contacts.
Checked 3 contact groups.
Checked 117 commands.
Checked 11 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 9 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 11 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 2
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
OUTPUT=Starting nagios: done.
RETURNCODE=0
Re: Apply Configuration recurring
Posted: Wed Aug 05, 2015 4:47 pm
by tgriep
Can you run the following and post it?
Re: Apply Configuration recurring
Posted: Thu Aug 06, 2015 8:01 am
by rkilinski
Here it is:
Code: Select all
[root@nagiosenv ~]# tail -75 /var/log/mysqld.log
140821 20:47:50 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
140821 21:33:07 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140821 21:33:07 InnoDB: Initializing buffer pool, size = 8.0M
140821 21:33:07 InnoDB: Completed initialization of buffer pool
140821 21:33:07 InnoDB: Started; log sequence number 0 44233
140821 21:33:07 [Note] Event Scheduler: Loaded 0 events
140821 21:33:07 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.71' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
141226 13:50:44 [Note] /usr/libexec/mysqld: Normal shutdown
141226 13:50:44 [Note] Event Scheduler: Purging the queue. 0 events
141226 13:50:47 InnoDB: Starting shutdown...
141226 13:50:52 InnoDB: Shutdown completed; log sequence number 0 44233
141226 13:50:52 [Note] /usr/libexec/mysqld: Shutdown complete
141226 13:50:52 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
141226 19:02:50 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
141226 19:02:50 InnoDB: Initializing buffer pool, size = 8.0M
141226 19:02:50 InnoDB: Completed initialization of buffer pool
141226 19:02:50 InnoDB: Started; log sequence number 0 44233
141226 19:02:50 [Note] Event Scheduler: Loaded 0 events
141226 19:02:50 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.71' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
150528 20:54:38 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150528 20:54:38 InnoDB: Initializing buffer pool, size = 8.0M
150528 20:54:38 InnoDB: Completed initialization of buffer pool
150528 20:54:38 InnoDB: Started; log sequence number 0 44233
150528 20:54:38 [Note] Event Scheduler: Loaded 0 events
150528 20:54:38 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.71' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
150617 19:43:29 [Note] /usr/libexec/mysqld: Normal shutdown
150617 19:43:29 [Note] Event Scheduler: Purging the queue. 0 events
150617 19:43:30 InnoDB: Starting shutdown...
150617 19:43:32 InnoDB: Shutdown completed; log sequence number 0 44233
150617 19:43:32 [Note] /usr/libexec/mysqld: Shutdown complete
150617 19:43:32 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
150617 19:43:33 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150617 19:43:33 InnoDB: Initializing buffer pool, size = 8.0M
150617 19:43:33 InnoDB: Completed initialization of buffer pool
150617 19:43:33 InnoDB: Started; log sequence number 0 44233
150617 19:43:33 [Note] Event Scheduler: Loaded 0 events
150617 19:43:33 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.73' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
150617 19:50:50 [Note] /usr/libexec/mysqld: Normal shutdown
150617 19:50:50 [Note] Event Scheduler: Purging the queue. 0 events
150617 19:50:50 InnoDB: Starting shutdown...
150617 19:50:53 InnoDB: Shutdown completed; log sequence number 0 44233
150617 19:50:53 [Note] /usr/libexec/mysqld: Shutdown complete
150617 19:50:53 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
150617 19:51:19 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150617 19:51:20 InnoDB: Initializing buffer pool, size = 8.0M
150617 19:51:20 InnoDB: Completed initialization of buffer pool
150617 19:51:20 InnoDB: Started; log sequence number 0 44233
150617 19:51:20 [Note] Event Scheduler: Loaded 0 events
150617 19:51:20 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.73' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
150805 14:18:00 [Note] /usr/libexec/mysqld: Normal shutdown
150805 14:18:00 [Note] Event Scheduler: Purging the queue. 0 events
150805 14:18:00 InnoDB: Starting shutdown...
150805 14:18:04 InnoDB: Shutdown completed; log sequence number 0 44233
150805 14:18:04 [Note] /usr/libexec/mysqld: Shutdown complete
150805 14:18:04 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
150805 14:18:28 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150805 14:18:29 InnoDB: Initializing buffer pool, size = 8.0M
150805 14:18:29 InnoDB: Completed initialization of buffer pool
150805 14:18:29 InnoDB: Started; log sequence number 0 44233
150805 14:18:29 [Note] Event Scheduler: Loaded 0 events
150805 14:18:29 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.73' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
Re: Apply Configuration recurring
Posted: Thu Aug 06, 2015 9:41 am
by lmiltchev
Is the PHP and system time out of sync? To verify, go to Admin->System Profile and review the "Date/Time" section. If this is the case, fix the time discrepancy by following the steps, outlined in the document below:
https://assets.nagios.com/downloads/nag ... m_Time.pdf
then try applying configuration again. Did this fix your issue?
Re: Apply Configuration recurring
Posted: Mon Aug 10, 2015 9:48 am
by rkilinski
This worked for me. The PHP time and the System time were 4 hours off (NY). After applying the changes & restarting the service as the document suggested, I applied configurations and they all took!
Thank you for your time and efforts!
Re: Apply Configuration recurring
Posted: Mon Aug 10, 2015 9:58 am
by hsmith
Glad to hear it worked, I am going to close this thread.
Thank you!