Not able to view anything in import config
Not able to view anything in import config
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.
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
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
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.
"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.
Re: Not able to view anything in import config
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.
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
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.
Re: Not able to view anything in import config
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
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
Can you also show the permissions on the cfgprep folder itself?
Code: Select all
ls -ld /usr/local/nagios/etc/cfgprepBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Not able to view anything in import config
tmproot@usa0300lv886>ls -ld /usr/local/nagios/etc/cfgprep
drwxrwxr-x 3 apache nagios 4096 Feb 18 13:08 /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
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 /usrRe: Not able to view anything in import config
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
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
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.While trying to do import config files.It is showing nothing.