Page 1 of 1

not seeing files in cfgprep folder

Posted: Wed Feb 24, 2016 6:20 am
by zahik
not seeing files in cfgprep folder
i run the convert command got a cfg file but i don't see it in the ccm import page

used this article to recreate the folders
https://assets.nagios.com/downloads/nag ... p-Tool.pdf

the tool work great until few days i have imported over 500 hosts over time
but now i don't see the files ,i do see the rest of the files in the etc folder
checked permissions look ok

i have updated to latest version on xi

Re: not seeing files in cfgprep folder

Posted: Wed Feb 24, 2016 3:51 pm
by jolson
How far did you get in the import process, and what were you moving from/going to in terms of Nagios? Was this a Core -> XI migration? Which config files aren't showing up that you expected to see?

Re: not seeing files in cfgprep folder

Posted: Thu Feb 25, 2016 7:19 am
by zahik
hi the move is from core 3 to new XI
i used the import tool got the file created in the cfgprep folder , the file look o.k if i look in vim
the issue that when i going to the xi gui to import the file it just not there

original file is in /orig just like in the nagios xi document
file name:
slack_nagios.cfg

the result file is in:
/usr/local/nagios/etc/cfgprep
the original file is in:
/usr/local/nagios/etc/cfgprep/orig

the result file is in the
the config is a host+service from the old nagios (i have done this many time but now i can't see the file to import)

don't get any error ,because i don't see the file

thanks

Re: not seeing files in cfgprep folder

Posted: Thu Feb 25, 2016 3:16 pm
by lmiltchev
The issue is caused by the fact you have "nagios" in the file name... It's not allowed. You can use any other name - it doesn't matter what it is. You can even use "test".

Try:

Code: Select all

mv /usr/local/nagios/etc/cfgprep/slack_nagios.cfg /usr/local/nagios/etc/cfgprep/slack_test.cfg
Do you see the "slack_test.cfg" file under the "Configuration Import" page now?

Re: not seeing files in cfgprep folder

Posted: Mon Feb 29, 2016 4:32 am
by zahik
i don't believe this but u are correct after changing the name i do see the file
i was not even close ,i figert should be permission issue or something


thanks u very much :D
no nagios in the name of the import folder fixed this issue for me

Re: not seeing files in cfgprep folder

Posted: Mon Feb 29, 2016 10:58 am
by bwallace
Glad we were able to help. We'll lock this thread now and feel free to open another should you require assistance with anything else.