Page 1 of 2
Not able to view anything in import config
Posted: Mon Feb 18, 2013 11:25 am
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.
Re: Not able to view anything in import config
Posted: Mon Feb 18, 2013 11:47 am
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
Re: Not able to view anything in import config
Posted: Mon Feb 18, 2013 12:04 pm
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.
Re: Not able to view anything in import config
Posted: Mon Feb 18, 2013 12:12 pm
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.
Re: Not able to view anything in import config
Posted: Mon Feb 18, 2013 12:15 pm
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
Re: Not able to view anything in import config
Posted: Mon Feb 18, 2013 12:25 pm
by lmiltchev
Can you also show the permissions on the cfgprep folder itself?
Code: Select all
ls -ld /usr/local/nagios/etc/cfgprep
Re: Not able to view anything in import config
Posted: Mon Feb 18, 2013 1:29 pm
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
Re: Not able to view anything in import config
Posted: Mon Feb 18, 2013 1:34 pm
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
Re: Not able to view anything in import config
Posted: Mon Feb 18, 2013 2:32 pm
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
Re: Not able to view anything in import config
Posted: Mon Feb 18, 2013 2:48 pm
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.