Issues with NagiosXI install, especially at ./E-importnagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jon.bilderback
Posts: 52
Joined: Tue Aug 10, 2010 9:16 am

Issues with NagiosXI install, especially at ./E-importnagios

Post by jon.bilderback »

I had several issues installing NagiosXI, mainly having to do with dependencies such as mysql, postgresql, and mrtg not being installed on the server. I hope someone will modify the manual installation instructions to include the packages that need to be installed first.

When I ran the ./E* command, I am not connecting the the databases, and several of the .cfg files report errors.

Can someone please look at the output, and make a few suggestions?

Running RHEL 5.4 with all the updates.

Thanks

Code: Select all

[root@nagioshost nagiosxi]# ./E-importnagiosql 
Starting httpd: 
/tmp/nagiosxi/nagiosxi/basedir/scripts /tmp/nagiosxi
	DB Connect Error [nagiosxi]: Database connection failed 
ERROR CONNECTING TO DATABASES!
IMPORTING 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 --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/nagiosadmin.cfg' -O nagiosql.import.monitoring
--2010-08-12 14:07:33--  http://localhost/nagiosql/admin/import.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: `nagiosql.import.monitoring'

    [ <=>                                                                                         ] 0           --.-K/s   in 0s      

2010-08-12 14:07:33 (0.00 B/s) - `nagiosql.import.monitoring' saved [0/0]

SETUID ROOT OK
RESETTING PERMS
	DB Connect Error [nagiosxi]: Database connection failed 
ERROR CONNECTING TO DATABASES!
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --post-data 'writeMonitoring=Go' -O nagiosql.export.monitoring
--2010-08-12 14:07:33--  http://localhost/nagiosql/admin/verify.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: `nagiosql.export.monitoring'

    [ <=>                                                                                         ] 0           --.-K/s   in 0s      

2010-08-12 14:07:33 (0.00 B/s) - `nagiosql.export.monitoring' saved [0/0]

--2010-08-12 14:07:33--  http://localhost/nagiosql/admin/verify.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: `nagiosql.export.additional'

    [ <=>                                                                                         ] 0           --.-K/s   in 0s      

2010-08-12 14:07:33 (0.00 B/s) - `nagiosql.export.additional' saved [0/0]

CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --post-data 'writeAdditional=Go' -O nagiosql.export.additional
OUTPUT: 
Nagios Core 3.2.0
Copyright (c) 2009 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2009
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'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config directory '/usr/local/nagios/etc/services'...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Error: There are no services defined!
	Checked 0 services.
Checking hosts...
Error: There are no hosts defined!
	Checked 0 hosts.
Checking host groups...
	Checked 0 host groups.
Checking service groups...
	Checked 0 service groups.
Checking contacts...
Error: Service notification command 'xi_service_notification_handler' specified for contact 'xi_default_contact' is not defined anywhere!
Error: Host notification command 'xi_host_notification_handler' specified for contact 'xi_default_contact' is not defined anywhere!
	Checked 1 contacts.
Checking contact groups...
	Checked 0 contact groups.
Checking service escalations...
	Checked 0 service escalations.
Checking service dependencies...
	Checked 0 service dependencies.
Checking host escalations...
	Checked 0 host escalations.
Checking host dependencies...
	Checked 0 host dependencies.
Checking commands...
	Checked 0 commands.
Checking time periods...
	Checked 2 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Error: Global host event handler command 'xi_host_event_handler' is not defined anywhere!
Error: Global service event handler command 'xi_service_event_handler' is not defined anywhere!
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   6

***> One or more problems was encountered while running the pre-flight check...

     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
tar: Removing leading `/' from member names
/tmp/nagiosxi/nagiosxi/basedir/scripts
ls: /usr/local/nagiosxi/nom/checkpoints/nagioscore/*.gz: No such file or directory
NO NOM SNAPSHOT FOUND!
/tmp/nagiosxi
[root@nagioshost nagiosxi]# 
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Issues with NagiosXI install, especially at ./E-importnagios

Post by mguthrie »

Installation of those packages is included in the "prereqs" script. Are you installing this on a 64bit system? We recommend installing on 32bit systems because many of the necessary packages to not get built in a 64bit system.

Running "yum install update" before running the install may also help as well.
jon.bilderback
Posts: 52
Joined: Tue Aug 10, 2010 9:16 am

Re: Issues with NagiosXI install, especially at ./E-importnagios

Post by jon.bilderback »

Yes, this is a 64bit system.
Before I reload the system to 32bit, is there any path for this on 64bit?

Thanks
tim7ad
Posts: 2
Joined: Tue Aug 10, 2010 10:06 pm

Re: Issues with NagiosXI install, especially at ./E-importnagios

Post by tim7ad »

I am also having the same issues.

the ./1-prereqs scripts does run, and I can see that the script does install (or attempts) postgresql, mysql, and mrtg. However, it does not. I was able to get all of them installed, but, I had to install them manually, "yum install postgresql*" etc... So, the script nor the manual instructions work as advertised. As a footnote I thought maybe it was a 64-bit issue with postrgesql 8.1., so i rebuilt a system as before but used postgresql84 instead. The install actually went cleaner (no errors). But I ended up with the same results, regardless of postgresql version (8.1 or 8.4).

Yes, this is a 64-bit CentOS 5.5 system. I've read that it needs to be installed on a 32-bit system, but I'm actually trying to get it on a 64-bit system. It is a proof of concept and the 32-bit solution does me no good.

Can anyone list what packages are not working, or missing for 64-bit? All the posts I've read are vague.I do not see any 64-bit related errors, or complaints of missing packages/dependencies. While I had earlier problems with the databases they all have installed and are running now, postgres(postmaster), mysql, etc. How many processes should there be? I see several "postmaster"

The problem appears as jon.bilderback posted above. With ./E-importnagios.

What I can tell is that the *.cfg files in /usr/local/nagios/etc are not being exported. If I understand correctly the info is stored in the DB and the config files are supposed to be created when ./E-importnagios script is run. Is this accurate? However, Nagios core will not start complaining of config errors.If we copy the missing *.cfg files from a working nagios core system.. the nagios configuration errors go away and nagios core starts.

But NagiosXI will not. The web page is active (localhost/nagiosxi) but clicking nagiosxi returns the dreaded DB Connect Error [nagiosxi]: Database connection failed error.

Any ideas?

Thanks for the help.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Issues with NagiosXI install, especially at ./E-importnagios

Post by mguthrie »

I'll talk with the development team and see what we can do about the 64bit systems, this seems to be a growing need for our users. We'll maybe try and create a modified set of scripts for the 64bit systems or create a separate documentation for it. I'll do some hunting on the forum and see what I can find for suggestions on 64 bit installs.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Issues with NagiosXI install, especially at ./E-importnagios

Post by mmestnik »

Our past experience is that the essential components simply "don't build". This also explains why they are not in the repositories, the software needed to run XI fails to compile and is not 64bit clean.

Once these do build there is still a matter of getting them to run and then come the real fun... They have to work as intended.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Issues with NagiosXI install, especially at ./E-importnagios

Post by tonyyarusso »

The fix for 64-bit is in SVN for future releases.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked