Nagios xi errors [importnagiosql]

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
usanet_ops
Posts: 8
Joined: Tue Jan 18, 2011 3:09 pm

Re: Nagios xi errors [importnagiosql]

Post by usanet_ops »

The service is working fine.

Code: Select all

service httpd status
httpd (pid  16292) is running...
Here is the output from the E script. It does appear to be connection and running the wget without issue however does not seem to be retrieving the data.

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.login--2011-01-21 17:50:16--  http://localhost/nagiosql/index.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.login'

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

2011-01-21 17:50:16 (0.00 B/s) - `nagiosql.login' saved [0/0]

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 --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/nagiosadmin.cfg' -O nagiosql.import.monitoring
--2011-01-21 17:50:16--  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

2011-01-21 17:50:16 (0.00 B/s) - `nagiosql.import.monitoring' saved [0/0]

SETUID ROOT OK
RESETTING PERMS
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.login--2011-01-21 17:50:17--  http://localhost/nagiosql/index.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.login'

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

2011-01-21 17:50:17 (0.00 B/s) - `nagiosql.login' saved [0/0]

CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeMonitoring=Go' -O nagiosql.export.monitoring
--2011-01-21 17:50:17--  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

2011-01-21 17:50:17 (0.00 B/s) - `nagiosql.export.monitoring' saved [0/0]

--2011-01-21 17:50:17--  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

2011-01-21 17:50:17 (0.00 B/s) - `nagiosql.export.additional' saved [0/0]

CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeAdditional=Go' -O nagiosql.export.additional
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
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
Thanks
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios xi errors [importnagiosql]

Post by mguthrie »

Hmm, I see that. Do you have any kind of special configurations on your machine that might prevent a wget request like that from going through? SSL? Special firewall rules? Proxies?

What happens when you try running one of those requests directory from the command line?
usanet_ops
Posts: 8
Joined: Tue Jan 18, 2011 3:09 pm

Re: Nagios xi errors [importnagiosql]

Post by usanet_ops »

Well, Looks like if I run the E script in /tmp/nagiosxi/nagiosxi/basedir/scripts the files exist.

Code: Select all

-rw-r--r-- 1 root root 10518 Jan 24 21:21 nagiosql.login--2011-01-24
-rw-r--r-- 1 root root  5259 Jan 24 21:22 nagiosql.login
-rw-r--r-- 1 root root  5259 Jan 24 21:22 nagiosql.import.monitoring
-rw-r--r-- 1 root root   153 Jan 24 21:22 nagiosql.cookies
-rw-r--r-- 1 root root  5259 Jan 24 21:22 nagiosql.export.monitoring
-rw-r--r-- 1 root root  5259 Jan 24 21:22 nagiosql.export.additional
So appears the real issue here is where are the *cfg files in /usr/local/nagios/etc?

Code: Select all

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/xiobjects.cfg'...
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/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!
Thanks
usanet_ops
Posts: 8
Joined: Tue Jan 18, 2011 3:09 pm

Re: Nagios xi errors [importnagiosql]

Post by usanet_ops »

I know you guys are very busy but I do want to get this evaluation version running as we are looking to purchase this product. Any help would be appreciated.
Thanks
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios xi errors [importnagiosql]

Post by mguthrie »

I think at this point your best bet to get this up and running quickly is to either start fresh with a clean install of either CentOS or RHEL (without gnome and registered with RHN), or a better and much quicker way would be to download our official CentOS VM with Nagiosxi pre-installed.
usanet_ops
Posts: 8
Joined: Tue Jan 18, 2011 3:09 pm

Re: Nagios xi errors [importnagiosql]

Post by usanet_ops »

I did ANOTHER fresh install this time and instead of downloading the standard xi I downloaded the Development version and guess what. It installed without issues. I must of installed the standard version 7 to 8 times with no luck. Anyway, long story short, I have xi up and running but with the development version of the software.
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: Nagios xi errors [importnagiosql]

Post by rdedon »

Glad to hear that there are no issues with this install. Do contact us again if you run into any problems.

Thanks!
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com