Not able to view anything in import config

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Not able to view anything in import config

Post by ravish78 »

We have installed nagios XI on new server

Copied files from core to orig directory

Config prep tool from orig directory to cfgprep.
php /usr/local/nagiosxi/tools/xiprepimport.php orig/contacts.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/contactgroups.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/hosts.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/usa0300vm611.cfg

While trying to do import config files.It is showing nothing.

Can you please let us know where it went wrong.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Not able to view anything in import config

Post by abrist »

Have you taken a look at the importing core files into XI document? You should be able to import core configs from the XI interface.
http://assets.nagios.com/downloads/nagi ... nto_XI.pdf
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Not able to view anything in import config

Post by ravish78 »

Yes we are using the same process but the import config tool doesn't show up anything.

We have already setup nagios xi on couple of servers which is working fine.This issue is for another 2 new servers.We are not sure if it is due to nagios installation problem or anything else.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Not able to view anything in import config

Post by sreinhardt »

What permissions are applied on those files? You should be sure that the nagios user and group both have full read\write access to them.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Not able to view anything in import config

Post by ravish78 »

drwxrwxr-x 3 apache nagios 4096 Feb 18 10:58 cfgprep

tmproot@usa0300lv886>cd cfgprep
tmproot@usa0300lv886>ls -lrt
total 20
drwxrwsr-x 2 apache nagios 4096 Feb 18 10:57 orig
-rwxrwxr-x 1 apache nagios 503 Feb 18 10:58 contacts.cfg
-rwxrwxr-x 1 apache nagios 189 Feb 18 10:58 contactgroups.cfg
-rwxrwxr-x 1 apache nagios 306 Feb 18 10:58 hosts.cfg
-rwxrwxr-x 1 apache nagios 511 Feb 18 10:58 usa0300vm611.cfg
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not able to view anything in import config

Post by lmiltchev »

Can you also show the permissions on the cfgprep folder itself?

Code: Select all

ls -ld /usr/local/nagios/etc/cfgprep
Be sure to check out our Knowledgebase for helpful articles and solutions!
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Not able to view anything in import config

Post by ravish78 »

tmproot@usa0300lv886>ls -ld /usr/local/nagios/etc/cfgprep
drwxrwxr-x 3 apache nagios 4096 Feb 18 13:08 /usr/local/nagios/etc/cfgprep
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Not able to view anything in import config

Post by scottwilkerson »

It must be a permissions up the tree...

Code: Select all

ls -ld /usr/local/nagios/etc
ls -ld /usr/local/nagios
ls -ld /usr/local
ls -ld /usr
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Not able to view anything in import config

Post by ravish78 »

Corrected the permission of nagios directory in /usr/local/nagios from root to nagios but still no luck
drwxr-xr-x 8 nagios nagios 4096 Feb 6 16:24 /usr/local/nagios

Below is the output of commands

tmproot@usa0300lv886>ls -ld /usr/local/nagios/etc
drwxrwsr-x 8 apache nagios 4096 Feb 18 11:45 /usr/local/nagios/etc

tmproot@usa0300lv886>ls -ld /usr/local/nagios/
drwxr-xr-x 8 nagios nagios 4096 Feb 6 16:24 /usr/local/nagios/

tmproot@usa0300lv886>ls -ld /usr/local/
drwxr-xr-x. 16 root root 4096 Feb 7 09:01 /usr/local/

tmproot@usa0300lv886>ls -ld /usr
drwxr-xr-x. 15 root root 4096 Dec 12 17:21 /usr
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Not able to view anything in import config

Post by mguthrie »

While trying to do import config files.It is showing nothing.
Are you sure there's something actually wrong? The prep tool will run cleaning functions on the original files, and drop prepared config files in the current working directory. So if you have files that were copied into the cfgprep directory, then it probably worked just fine, and you can import them into the Core Config Manager.
Locked