After install can't connect

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
plauda
Posts: 5
Joined: Thu May 06, 2010 1:50 pm

After install can't connect

Post by plauda »

I've followed the installation guide for the trial version of nagios xi and every thing went well. After I run the installation script and try to connect to the web page I get to the first page with a link to access Nagios Xi. Following THAT link I get DB Connect Error and indeed, nagios is not running... the preflight checks show 6 erros and I have no idea what they might be immediately after a fresh install.

Any one seen this before?
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: After install can't connect

Post by tonyyarusso »

We'll need to get a little more information from you first to start diagnosing this.
1) What host OS? (with distribution, version, and architecture)
2) Please paste the preflight check error texts.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
plauda
Posts: 5
Joined: Thu May 06, 2010 1:50 pm

Re: After install can't connect

Post by plauda »

tonyyarusso wrote:We'll need to get a little more information from you first to start diagnosing this.
1) What host OS? (with distribution, version, and architecture)
2) Please paste the preflight check error texts.
Yes. My bad... The OS is stock RHEL 5.4 x86_64

Here is the preflight output:

./nagios -v /usr/local/nagios/etc/nagios.cfg

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/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
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.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: After install can't connect

Post by mmestnik »

We are attempting to duplicate your conditions. You should try a 32bit installation, I'm not sure if anyone has successfully installed XI under 64bit... Though it's not impossible.
plauda
Posts: 5
Joined: Thu May 06, 2010 1:50 pm

Re: After install can't connect

Post by plauda »

mmestnik wrote:We are attempting to duplicate your conditions. You should try a 32bit installation, I'm not sure if anyone has successfully installed XI under 64bit... Though it's not impossible.
So my options are to install on a 32-bit OS? I don't really see where I can download a 32-bit specific version from the site. We only have an x86_64 machine available to run this on.

Any thoughts?
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: After install can't connect

Post by tonyyarusso »

I'm running through an install on 64-bit CentOS 5.4 (no RHEL image around), so I'll see what comes up there and maybe that will give us a clue about whether that's an issue.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: After install can't connect

Post by tonyyarusso »

Oh, and no, there isn't a "32-bit version" or "64-bit version" of XI for download - architecture-specific components are compiled on your machine during the installation process.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
plauda
Posts: 5
Joined: Thu May 06, 2010 1:50 pm

Re: After install can't connect

Post by plauda »

tonyyarusso wrote:Oh, and no, there isn't a "32-bit version" or "64-bit version" of XI for download - architecture-specific components are compiled on your machine during the installation process.
Ok cool. I appreciate the help. If need be, is there a flag to the 'make' that we can set to enforce 32-bit compilation?
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: After install can't connect

Post by tonyyarusso »

If you'd like to be a beta tester of sorts, you can try the following, which worked for me on CentOS 5.4 64-bit:

Enable the EPEL repository:
rpm -Uvh http://download.fedora.redhat.com/pub/e ... noarch.rpm

Install RPM tools:
yum install rpmdevtools

Download the development pre-release of XI rather than 1.1H:
wget http://assets.nagios.com/downloads/nagi ... vel.tar.gz

Proceed with the installation as usual.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
plauda
Posts: 5
Joined: Thu May 06, 2010 1:50 pm

Re: After install can't connect

Post by plauda »

tonyyarusso wrote:If you'd like to be a beta tester of sorts, you can try the following, which worked for me on CentOS 5.4 64-bit:

Enable the EPEL repository:
rpm -Uvh http://download.fedora.redhat.com/pub/e ... noarch.rpm

Install RPM tools:
yum install rpmdevtools

Download the development pre-release of XI rather than 1.1H:
wget http://assets.nagios.com/downloads/nagi ... vel.tar.gz

Proceed with the installation as usual.
That could be good. I will do this tomorrow when I get in. I've got some other things to kick around here and then it's time to bail.

Thanks again.
Locked