not seeing files in cfgprep folder

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zahik
Posts: 17
Joined: Mon May 11, 2015 7:53 am

not seeing files in cfgprep folder

Post 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
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: not seeing files in cfgprep folder

Post 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?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
zahik
Posts: 17
Joined: Mon May 11, 2015 7:53 am

Re: not seeing files in cfgprep folder

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: not seeing files in cfgprep folder

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
zahik
Posts: 17
Joined: Mon May 11, 2015 7:53 am

Re: not seeing files in cfgprep folder

Post 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
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: not seeing files in cfgprep folder

Post 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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked