Nagios XI errors [importnagiosql]
Re: Nagios XI errors [importnagiosql]
Is your copy of RHEL registered with the RHN (Redhat Network)?
Re: Nagios XI errors [importnagiosql]
No, it isn't registered.
Re: Nagios XI errors [importnagiosql]
OK, you'll need to register that copy of RHEL with the RHN in order to get the install to work. The install scripts utilize the Redhat repositories in order to download the necessary packages for the install.
If you need a free server-class OS, use CentOS. XI is fully supported on that as well.
If you need a free server-class OS, use CentOS. XI is fully supported on that as well.
-
- Posts: 8
- Joined: Tue Jan 18, 2011 3:09 pm
Re: Nagios XI errors [importnagiosql]
I am also experiencing this error when using the E script however my RH is registered. Here is the output from get-os-info
x86_64
redhat
5Server.5
Seems most of the cfg files are not on the filesystem.
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or directory
Error processing object config files!
x86_64
redhat
5Server.5
Seems most of the cfg files are not on the filesystem.
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or directory
Error processing object config files!
Re: Nagios XI errors [importnagiosql]
Did you run the install scripts from the /tmp directory? You'll get a similar error if you run the scripts from the /root directory.
-
- Posts: 8
- Joined: Tue Jan 18, 2011 3:09 pm
Re: Nagios XI errors [importnagiosql]
Yes, I did run from /tmp/nagiosxi
I did a re-install but this time I installed nagios core first followed by nagiosxi install. It seemed to work ok this time however I did have to change a few permissions on the /usr/local/nagiosxi directory and the /var/lib/php/session directory in order to get the GUI to work. Now able to log into Nagiosxi GUI but now I get this
Running /usr/local/nagiosxi/scripts/reset_config_perms does not fix my problem plus the configs listed do not exist.
I did a re-install but this time I installed nagios core first followed by nagiosxi install. It seemed to work ok this time however I did have to change a few permissions on the /usr/local/nagiosxi directory and the /var/lib/php/session directory in order to get the GUI to work. Now able to log into Nagiosxi GUI but now I get this
Code: Select all
The following configuration files have incorrect permissions:
•/usr/local/nagios/etc/commands.cfg (OWNER=root, GROUP=root, PERMS=u---------)
•/usr/local/nagios/etc/contactgroups.cfg (OWNER=root, GROUP=root, PERMS=u---------)
•/usr/local/nagios/etc/contacts.cfg (OWNER=root, GROUP=root, PERMS=u---------)
•/usr/local/nagios/etc/contacttemplates.cfg (OWNER=root, GROUP=root, PERMS=u---------)
•/usr/local/nagios/etc/hostdependencies.cfg (OWNER=root, GROUP=root, PERMS=u---------)
•/usr/local/nagios/etc/hostescalations.cfg (OWNER=root, GROUP=root, PERMS=u---------)
•/usr/local/nagios/etc/hostextinfo.cfg (OWNER=root, GROUP=root, PERMS=u---------)
•/usr/local/nagios/etc/hostgroups.cfg (OWNER=root, GROUP=root, PERMS=u---------)
•/usr/local/nagios/etc/hosttemplates.cfg (OWNER=root, GROUP=root, PERMS=u---------)
•/usr/local/nagios/etc/servicedependencies.cfg (OWNER=root, GROUP=root, PERMS=u---------)
•/usr/local/nagios/etc/serviceescalations.cfg (OWNER=root, GROUP=root, PERMS=u---------)
•/usr/local/nagios/etc/serviceextinfo.cfg (OWNER=root, GROUP=root, PERMS=u---------)
•/usr/local/nagios/etc/servicegroups.cfg (OWNER=root, GROUP=root, PERMS=u---------)
•/usr/local/nagios/etc/servicetemplates.cfg (OWNER=root, GROUP=root, PERMS=u---------)
•/usr/local/nagios/etc/timeperiods.cfg (OWNER=root, GROUP=root, PERMS=u---------)
Each of these config files needs to be writable by the apache and nagios users. To fix this problem, follow these steps:
•Login to your Nagios XI server via SSH as the root user
•Execute the following commands:
◦/usr/local/nagiosxi/scripts/reset_config_perms
-
- Posts: 8
- Joined: Tue Jan 18, 2011 3:09 pm
Re: Nagios XI errors [importnagiosql]
Is that the way the install should happen? Install Nagios Core/Nagios Core plugins/NagiosXI?
Thanks
Thanks
Re: Nagios XI errors [importnagiosql]
The XI installer scripts will install Nagios Core on their own. If you install Core manually it will probably cause complications.
Do you have gnome installed?
Are you using a proxy on your machine?
You'll want to remove the Core installation, then try the install scripts again. When you run the E-nagiosql script, run it like so:
And then show us the output from that file (provided things are still broken).
Do you have gnome installed?
Are you using a proxy on your machine?
You'll want to remove the Core installation, then try the install scripts again. When you run the E-nagiosql script, run it like so:
Code: Select all
./E-nagiosql | tee nagiosql_debug.txt
-
- Posts: 8
- Joined: Tue Jan 18, 2011 3:09 pm
Re: Nagios XI errors [importnagiosql]
Hi, thanks for your help. After running a fresh install with gname installed I am still having the issue. Below is the output from the tee.
Thanks
Code: Select all
Starting httpd:
/tmp/nagiosxi/nagiosxi/basedir/scripts /tmp/nagiosxi
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi
&tfPassword=n@gweb' -O nagiosql.loginIMPORTING CONFIG FILES...Array
(
[0] => nagiosadmin.cfg
)
IMPORTING /usr/local/nagios/etc/import/nagiosadmin.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios
/etc/import/nagiosadmin.cfg' -O nagiosql.import.monitoring
RESETTING PERMS
SETUID ROOT OK
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi
&tfPassword=n@gweb' -O nagiosql.loginCMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeMonitoring=Go' -O nagiosql.export.monitorin
g
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeAdditional=Go' -O nagiosql.export.additiona
l
OUTPUT:
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or directory
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
RET: 254
/usr/local/nagiosxi/nom/checkpoints/nagioscore/errors /tmp/nagiosxi/nagiosxi/basedir/scripts
/tmp/nagiosxi/nagiosxi/basedir/scripts
NO NOM SNAPSHOT FOUND!
/tmp/nagiosxi
Re: Nagios XI errors [importnagiosql]
Oh, you certainly don't need to have gnome installed, in fact it can be preferable to not have it installed. The main thing to check if you're running gnome is if your "service" command works. You can check it with.
Hmm, that output is missing the data that I was looking for. Can you copy and paste the output from your terminal after running that script. I'm looking to see if the http request went through successfully or if there was an error code.
Can you also verify that wget is installed on your system, I know Fedora 13 didnt' come with it by default.
Code: Select all
service httpd status
Can you also verify that wget is installed on your system, I know Fedora 13 didnt' come with it by default.