NagiosXI install fails at ImportNagiosQL
Posted: Mon May 02, 2011 12:08 pm
I just installed NagioXI on a fresh install of CentOS
It would seem like Nagios Core was not installed correctly as the conf files are not there.
I have my system info, the info i used for my proxy and the error i recieved as well as an ls from my nagios core etc folder
I am going to attempt to scp the conf files from the vmware image of Nagios that I have but I want to get the manual install to work.
1. CentOS 5.6
2. 64bit
3. Manual Install of XI
4. I am using a proxy, but i followed the wiki for wget and yum?
info from the Wiki
"In /etc/yum.conf :
proxy=http://someproxyserver:port/ # Shouldn't need to be quoted, remember the trailing slash
proxy_username=myname # The username you authenticate to your proxy with, if applicable
proxy_password=mypass # The password you provide to your proxy, if applicable
In /etc/wgetrc :
http_proxy=http://myname:mypass@someproxyserver:port/ # All in one string this time
no_proxy=localhost,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 # Hosts to exclude from proxying"
*Update to add service restarts per Sticky*
[root@na nagiosxi]# service mysqld restart
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]
[root@na nagiosxi]# service postgresql restart
Stopping postgresql service: [ OK ]
Starting postgresql service: [ OK ]
Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or directory
Error processing object config files!
ERROR: NagiosQL import appears to have failed - exiting. (Reason: Nagios Core configuration is invalid)
[root@na nagiosxi]# ls /usr/local/nagios/etc/
cgi.cfg hosts import nagios.cfg ndo2db.cfg ndomod.cfg nrpe.cfg nsca.cfg pnp resource.cfg send_nsca.cfg services static
It would seem like Nagios Core was not installed correctly as the conf files are not there.
I have my system info, the info i used for my proxy and the error i recieved as well as an ls from my nagios core etc folder
I am going to attempt to scp the conf files from the vmware image of Nagios that I have but I want to get the manual install to work.
1. CentOS 5.6
2. 64bit
3. Manual Install of XI
4. I am using a proxy, but i followed the wiki for wget and yum?
info from the Wiki
"In /etc/yum.conf :
proxy=http://someproxyserver:port/ # Shouldn't need to be quoted, remember the trailing slash
proxy_username=myname # The username you authenticate to your proxy with, if applicable
proxy_password=mypass # The password you provide to your proxy, if applicable
In /etc/wgetrc :
http_proxy=http://myname:mypass@someproxyserver:port/ # All in one string this time
no_proxy=localhost,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 # Hosts to exclude from proxying"
*Update to add service restarts per Sticky*
[root@na nagiosxi]# service mysqld restart
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]
[root@na nagiosxi]# service postgresql restart
Stopping postgresql service: [ OK ]
Starting postgresql service: [ OK ]
Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or directory
Error processing object config files!
ERROR: NagiosQL import appears to have failed - exiting. (Reason: Nagios Core configuration is invalid)
[root@na nagiosxi]# ls /usr/local/nagios/etc/
cgi.cfg hosts import nagios.cfg ndo2db.cfg ndomod.cfg nrpe.cfg nsca.cfg pnp resource.cfg send_nsca.cfg services static