Page 1 of 1
Importing config broken!!!
Posted: Mon Aug 18, 2014 11:44 am
by BanditBBS
We use the import folder for adding new hosts and services. When we apply config the file disappears but the data is not added to the database. If I use the import config files page and select the file it says imported successful but the data is again not added to the database.
This just started happening post 2014r1.4 update!
Re: Importing config broken!!!
Posted: Mon Aug 18, 2014 1:41 pm
by BanditBBS
Wow, some crazy stuff happening with the new CCM! I am testing, but you guys should try and use the import function(either the auto or manual) and also the delete function with the With Checked or clicking the X button. Try them when using old separate CCM login and with new combined.
I finally got it to import once I changed to separate logins and then I switched back to combined. Then I couldnt delete the item with the X, I had to check it and select "With Checked"
Is Trevor the beta tester or something?

Just kidding buddy!
Edit #1 : After further testing the import is working great now no matter what option is selected for the CCM login type. The delete is still not working though using the X
Re: Importing config broken!!!
Posted: Mon Aug 18, 2014 4:36 pm
by abrist
Odd. Delete (x) is working on my side.
What browser are you using?
Is your system date and mysql date similar:
Code: Select all
date
echo 'system date;' | mysql -pnagiosxi
If not, restart mysqld:
Re: Importing config broken!!!
Posted: Tue Aug 19, 2014 8:16 am
by BanditBBS
System and mysql time are within a second.
Testing I created a copy of a service and then tried clicking the X to delete and still not working. Any other ideas?
Capture.PNG
Click the X and get this and click OK but the service doesnt go away
Capture2.PNG
Re: Importing config broken!!!
Posted: Tue Aug 19, 2014 3:22 pm
by abrist
JS error? Can you try a different browser?
Re: Importing config broken!!!
Posted: Tue Aug 19, 2014 3:27 pm
by BanditBBS
No errors. Happening in both Chrome and IE.
I do see this in the http error log over and over:
Code: Select all
[Tue Aug 19 15:30:41 2014] [error] [client 10.160.1.10] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 195, referer: https://xxxx.xxxx.com/nagiosxi/includes/components/ccm/index.php
Re: Importing config broken!!!
Posted: Tue Aug 19, 2014 4:56 pm
by abrist
Well good sir. We may need to remote in for this as I cannot reproduce this in house (other than similar behavior due to javascript caching - clearing the cache fixed it). Could you open a ticket for this one so that we can remote in tomorrow?
Re: Importing config broken!!!
Posted: Thu Aug 21, 2014 8:52 am
by BanditBBS
For others that may search the forum - The issue is a bug that is already committed in the next version. It works fine in FF and wouldn't work in IE or Chrome. With the fix it'll work in all 3.
Lock this thread up
