Page 2 of 2

Re: Apply config error, no snapshot error to view

Posted: Tue Mar 12, 2013 4:04 pm
by slansing
You had no output to error_log?

Can you ll that directory?:

Code: Select all

ll -la /var/log/httpd/

Re: Apply config error, no snapshot error to view

Posted: Tue Mar 12, 2013 4:07 pm
by r.jaynes
slansing wrote:You had no output to error_log?

Can you ll that directory?:

Code: Select all

ll -la /var/log/httpd/
Correct. ll output:

Code: Select all

[root@monitor local]# ll -la /var/log/httpd/
total 70888
drwx------. 2 root root     4096 Mar 10 03:48 .
drwxr-xr-x. 9 root root     4096 Mar 10 03:48 ..
-rw-r--r--  1 root root 17692060 Mar 12 16:04 access_log
-rw-r--r--  1 root root  1496195 Jun 29  2012 access_log-20120629
-rw-r--r--  1 root root   637961 Jan 31 13:05 access_log-20130131
-rw-r--r--  1 root root  3108157 Mar  6 20:11 access_log-20130306
-rw-r--r--  1 root root 48756616 Mar 10 03:48 access_log-20130310
-rw-r--r--  1 root root      791 Mar 12 15:10 error_log
-rw-r--r--  1 root root   540682 Jun 29  2012 error_log-20120629
-rw-r--r--  1 root root   206285 Jan 31 13:06 error_log-20130131
-rw-r--r--  1 root root    58694 Mar  6 20:11 error_log-20130306
-rw-r--r--  1 root root    12023 Mar 10 03:48 error_log-20130310
-rw-r--r--  1 root root        0 Aug 22  2012 ssl_access_log
-rw-r--r--  1 root root      711 Mar 12 15:10 ssl_error_log
-rw-r--r--  1 root root     7698 Mar  6 19:43 ssl_error_log-20130306
-rw-r--r--  1 root root     1659 Mar  7 09:22 ssl_error_log-20130310
-rw-r--r--  1 root root        0 Aug 22  2012 ssl_request_log
Here is what is currently in error_log (since it's so small)

Code: Select all

[Sun Mar 10 03:48:06 2013] [notice] Digest: generating secret for digest authentication ...
[Sun Mar 10 03:48:06 2013] [notice] Digest: done
[Sun Mar 10 03:48:06 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
sh: warning: setlocale: LC_ALL: cannot change locale (en)
[Tue Mar 12 15:09:56 2013] [notice] caught SIGTERM, shutting down
[Tue Mar 12 15:10:07 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Mar 12 15:10:07 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Mar 12 15:10:07 2013] [notice] Digest: done
[Tue Mar 12 15:10:07 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations

Re: Apply config error, no snapshot error to view

Posted: Tue Mar 12, 2013 4:14 pm
by lmiltchev
Please, follow the steps outlined here, and post the "reconfig.txt" and "cmd.txt" files. Thanks!

Re: Apply config error, no snapshot error to view

Posted: Tue Mar 12, 2013 4:24 pm
by r.jaynes
lmiltchev wrote:Please, follow the steps outlined here, and post the "reconfig.txt" and "cmd.txt" files. Thanks!
The problem may stem from the fact our previous nagiosxi install was 32 bit, and the new one is 64 bit? Both instances were from VMware OVF's. There are messages about "bad ELF interpreter" in both .txt files.

reconfig.txt

Code: Select all

URL: http://localhost/nagiosql/index.php
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=zuluxray' -O nagiosql.login--2013-03-12 16:19:23--  http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/admin.php [following]
--2013-03-12 16:19:23--  http://localhost/nagiosql/admin.php
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: ânagiosql.loginâ

     0K .....                                                 100%  225M=0s

2013-03-12 16:19:23 (225 MB/s) - ânagiosql.loginâ

LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosql/admin/import.php
Array
(
)
./export_nagiosql.sh: ./reset_config_perms: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
RESETTING CONFIG PERMS FAILED!\n
Again, bad ELF interpreter in the cmd.txt output

Code: Select all

PROCESSED 0 COMMANDS

APPLYING NAGIOSCORE CONFIG...
CMDLINE=cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh
URL: http://localhost/nagiosql/index.php
CMDLINE
--2013-03-12 16:20:26--  http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/admin.php [following]
--2013-03-12 16:20:26--  http://localhost/nagiosql/admin.php
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: `nagiosql.login'

     0K .....                                                 100%  253M=0s

2013-03-12 16:20:26 (253 MB/s) - `nagiosql.login' saved [5286/5286]

/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=zuluxray' -O nagiosql.loginLOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosql/admin/import.php
Array
(
    [0] => cp2.megagate.com.cfg
)
IMPORTING /usr/local/nagios/etc/import/cp2.megagate.com.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/cp2.megagate.com.cfg' -O nagiosql.import.monitoring
--2013-03-12 16:20:26--  http://localhost/nagiosql/admin/import.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `nagiosql.import.monitoring'

     0K .......... .......... .......... .......... .......... 98.8M
    50K .                                                       911K=0.002s

2013-03-12 16:20:26 (24.5 MB/s) - `nagiosql.import.monitoring' saved [52653]

./export_nagiosql.sh: ./reset_config_perms: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
RESETTING CONFIG PERMS FAILED!\n
OUTPUT=RESETTING CONFIG PERMS FAILED!\n
RETURNCODE=4
..

Re: Apply config error, no snapshot error to view

Posted: Tue Mar 12, 2013 4:36 pm
by lmiltchev
If you still have the /tmp/nagiosxi install directory do the following:

Code: Select all

cd /tmp/nagiosxi
rm -f installed.subcomponents
./A-subcomponents
./build-perms-bin
If you have already deleted the /tmp/nagiosxi install directory do the following:

Code: Select all

cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/xi-2011-latest.tar.gz
tar xzf xi-2011-latest.tar.gz
cd /tmp/nagiosxi
touch installed.mrtg
./A-subcomponents
./build-perms-bin

Re: Apply config error, no snapshot error to view

Posted: Tue Mar 12, 2013 4:41 pm
by abrist
r.jaynes wrote:The problem may stem from the fact our previous nagiosxi install was 32 bit, and the new one is 64 bit? Both instances were from VMware OVF's. There are messages about "bad ELF interpreter" in both .txt files.
This is most definitely the problem. ELF errors are almost always associated with changes in architecture. You may have issues with rrds as well. Ludmil's suggestion should fix up a few problems, but you may have more. Let us know.

Re: Apply config error, no snapshot error to view

Posted: Tue Mar 12, 2013 4:50 pm
by r.jaynes
I had to touch installed.timezone for A-subcomponents to run, but got it going. Everything appears to have gone OK. I have rerun the commands for reconfig.txt and cmd.txt. During the "submit" for cmd.txt, the config actually applied this time.

reconfig.txt

Code: Select all

[root@monitor scripts]# cat reconfig.txt
URL: http://localhost/nagiosql/index.php
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=zuluxray' -O nagiosql.login--2013-03-12 16:45:19--  http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/admin.php [following]
--2013-03-12 16:45:19--  http://localhost/nagiosql/admin.php
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: ânagiosql.loginâ



2013-03-12 16:45:19 (262 MB/s) - ânagiosql.loginâ

LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosql/admin/import.php
Array
(
    [0] => commands.cfg
    [1] => contacts.cfg
    [2] => localhost.cfg
    [3] => templates.cfg
    [4] => timeperiods.cfg
    [5] => xicommands.cfg
    [6] => xiobjects.cfg
    [7] => xitemplates.cfg
    [8] => xiwzardtemplates.cfg
)
IMPORTING /usr/local/nagios/etc/import/commands.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/commands.cfg' -O nagiosql.import.monitoring
--2013-03-12 16:45:19--  http://localhost/nagiosql/admin/import.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ


    50K .......                                                3.76M=0.002s

2013-03-12 16:45:20 (25.7 MB/s) - ânagiosql.import.monitoringâ

IMPORTING /usr/local/nagios/etc/import/contacts.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/contacts.cfg' -O nagiosql.import.monitoring
--2013-03-12 16:45:20--  http://localhost/nagiosql/admin/import.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ


    50K ..                                                     1.41M=0.002s

2013-03-12 16:45:20 (24.7 MB/s) - ânagiosql.import.monitoringâ

IMPORTING /usr/local/nagios/etc/import/localhost.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/localhost.cfg' -O nagiosql.import.monitoring
--2013-03-12 16:45:20--  http://localhost/nagiosql/admin/import.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ


    50K ...                                                    1.82M=0.002s

2013-03-12 16:45:20 (25.1 MB/s) - ânagiosql.import.monitoringâ

IMPORTING /usr/local/nagios/etc/import/templates.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/templates.cfg' -O nagiosql.import.monitoring
--2013-03-12 16:45:20--  http://localhost/nagiosql/admin/import.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ


    50K ..                                                     1.54M=0.002s

2013-03-12 16:45:20 (23.9 MB/s) - ânagiosql.import.monitoringâ

IMPORTING /usr/local/nagios/etc/import/timeperiods.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/timeperiods.cfg' -O nagiosql.import.monitoring
--2013-03-12 16:45:20--  http://localhost/nagiosql/admin/import.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ


    50K ..                                                     1.46M=0.002s

2013-03-12 16:45:20 (24.5 MB/s) - ânagiosql.import.monitoringâ

IMPORTING /usr/local/nagios/etc/import/xicommands.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/xicommands.cfg' -O nagiosql.import.monitoring
--2013-03-12 16:45:20--  http://localhost/nagiosql/admin/import.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ


    50K ....                                                   2.82M=0.002s

2013-03-12 16:45:20 (26.8 MB/s) - ânagiosql.import.monitoringâ

IMPORTING /usr/local/nagios/etc/import/xiobjects.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/xiobjects.cfg' -O nagiosql.import.monitoring
--2013-03-12 16:45:20--  http://localhost/nagiosql/admin/import.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ


    50K .                                                      1.01M=0.002s

2013-03-12 16:45:20 (24.1 MB/s) - ânagiosql.import.monitoringâ

IMPORTING /usr/local/nagios/etc/import/xitemplates.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/xitemplates.cfg' -O nagiosql.import.monitoring
--2013-03-12 16:45:20--  http://localhost/nagiosql/admin/import.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ


    50K .                                                      1.01M=0.002s

2013-03-12 16:45:20 (25.7 MB/s) - ânagiosql.import.monitoringâ

IMPORTING /usr/local/nagios/etc/import/xiwzardtemplates.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/xiwzardtemplates.cfg' -O nagiosql.import.monitoring
--2013-03-12 16:45:20--  http://localhost/nagiosql/admin/import.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ


    50K ......                                                 3.34M=0.002s

2013-03-12 16:45:20 (25.2 MB/s) - ânagiosql.import.monitoringâ

RESETTING PERMS
SETUID ROOT OK
URL: http://localhost/nagiosql/index.php
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=zuluxray' -O nagiosql.login--2013-03-12 16:45:21--  http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/admin.php [following]
--2013-03-12 16:45:21--  http://localhost/nagiosql/admin.php
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: ânagiosql.loginâ



2013-03-12 16:45:21 (291 MB/s) - ânagiosql.loginâ

LOGIN SUCCESSFUL!
URL: http://localhost/nagiosql/admin/verify.php
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
--2013-03-12 16:45:21--  http://localhost/nagiosql/admin/verify.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7096 (6.9K) [text/html]
Saving to: ânagiosql.export.monitoringâ



2013-03-12 16:45:23 (270 MB/s) - ânagiosql.export.monitoringâ

WRITE CONFIGS SUCCESSFUL!
--2013-03-12 16:45:23--  http://localhost/nagiosql/admin/verify.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7400 (7.2K) [text/html]
Saving to: ânagiosql.export.additionalâ



2013-03-12 16:45:23 (294 MB/s) - ânagiosql.export.additionalâ

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.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
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/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'...
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'...
Warning: Duplicate definition found for timeperiod 'xi_timeperiod_24x7' (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 173)
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 174.
   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 /usr/local/nagiosxi/scripts
tar: Removing leading `/' from member names
/usr/local/nagiosxi/scripts
LATEST NOM SNAPSHOT: /usr/local/nagiosxi/nom/checkpoints/nagioscore/1363083303.tar.gz
/ /usr/local/nagiosxi/scripts
RESTORING NOM SNAPSHOT : /usr/local/nagiosxi/nom/checkpoints/nagioscore/1363083303.tar.gz
/usr/local/nagiosxi/scripts
RESETTING PERMS
SETUID ROOT OK
cmd.txt

Code: Select all

[root@monitor scripts]# cat cmd.txt
.........
PROCESSED 0 COMMANDS
AGIOSCORE CONFIG...
CMDLINE=cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh
URL: http://localhost/nagiosql/index.php
CMDLINE
--2013-03-12 16:47:14--  http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/admin.php [following]
--2013-03-12 16:47:14--  http://localhost/nagiosql/admin.php
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: `nagiosql.login'

     0K .....                                                 100%  244M=0s

2013-03-12 16:47:14 (244 MB/s) - `nagiosql.login' saved [5286/5286]

/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=zuluxray' -O nagiosql.loginLOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosql/admin/import.php
Array
(
    [0] => cp2.megagate.com.cfg
)
IMPORTING /usr/local/nagios/etc/import/cp2.megagate.com.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/cp2.megagate.com.cfg' -O nagiosql.import.monitoring
--2013-03-12 16:47:14--  http://localhost/nagiosql/admin/import.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `nagiosql.import.monitoring'

     0K .......... .......... .......... .......... .......... 86.6M
    50K .......... .......... ...                              2.47M=0.01s

2013-03-12 16:47:15 (7.19 MB/s) - `nagiosql.import.monitoring' saved [75775]

RESETTING PERMS
SETUID ROOT OK
URL: http://localhost/nagiosql/index.php
CMDLINE
--2013-03-12 16:47:15--  http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/admin.php [following]
--2013-03-12 16:47:15--  http://localhost/nagiosql/admin.php
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: `nagiosql.login'

     0K .....                                                 100%  255M=0s

2013-03-12 16:47:15 (255 MB/s) - `nagiosql.login' saved [5286/5286]

/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=zuluxray' -O nagiosql.loginLOGIN SUCCESSFUL!
URL: http://localhost/nagiosql/admin/verify.php
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
--2013-03-12 16:47:15--  http://localhost/nagiosql/admin/verify.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7096 (6.9K) [text/html]
Saving to: `nagiosql.export.monitoring'

     0K ......                                                100%  251M=0s

2013-03-12 16:47:18 (251 MB/s) - `nagiosql.export.monitoring' saved [7096/7096]

WRITE CONFIGS SUCCESSFUL!
--2013-03-12 16:47:18--  http://localhost/nagiosql/admin/verify.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7400 (7.2K) [text/html]
Saving to: `nagiosql.export.additional'

     0K .......                                               100%  254M=0s

2013-03-12 16:47:18 (254 MB/s) - `nagiosql.export.additional' saved [7400/7400]

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.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
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/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'...
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 file '/usr/local/nagios/etc/hosts/loki.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MG-ME-873-WPINET.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Office of Chapter 13 3120.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/OMX5A Gulfport.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/10.2.131.21.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Hattiesburg Telepak Internet.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/APC-RR102.10-A12.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Hattiesburg ATT OC3.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/AMX1A MUX.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/49N Tower CBW.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Corp MetroE 1534 SW.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Ivey MetroE 1534 SW ATT Uplink.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/SQL3.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/janus.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/vh1.iv.virtual.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/CLEC2-Billing.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/2600 HBG Main Eth Side.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/monitor.iv.virtual.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/West MetroE 1534 SW.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/GPT7609.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/AcmeSBC-2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/SQL1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Customer-EaglesTrail.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MG-ME-873-WESLEY.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Webmon.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/1NETII.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MG-ME-873-WPWAN.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/thor.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Jackson Level 3 100MB Ethernet.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/OptimistPark-CBW.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/cp2.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Temperature Monitor.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/vh2.iv.virtual.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MG-ME-873-FGH.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/JetStor1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/mail.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/ADS2A DS3 InBand MGMT.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/JXN7206.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/sbc.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/vh3.iv.virtual.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/IveyVPN.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/AMX8A MUX.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/cms.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MG-ME-873-FGH-CPE.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Ross Building Backhaul.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Ross Building Voltage.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Ivey MetroE 1534 SW.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/LRL7206.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Wireshark-Ziggy.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Kevin Pack DSL.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/SQL2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Eagles Trail 2851 Router.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/2600 HBG Main T1 Side.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/DC Power Plant.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MegaServer.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Lrl MetroE 1534 SW.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Site132SQL.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/WPSM-vPD01.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/SynCraft Timing System.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/ra.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/APC-RR102.11-A14.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/cp1.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/smtp.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/ftp2.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/Main MetroE 1534 SW.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/loki.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/APC-RR102-10-A12.cfg'...
Processing object config file '/usr/local/nagios/etc/services/MG-ME-873-WPINET.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Office of Chapter 13 3120.cfg'...
Processing object config file '/usr/local/nagios/etc/services/OMX5A Gulfport.cfg'...
Processing object config file '/usr/local/nagios/etc/services/10.2.131.21.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Hattiesburg Telepak Internet.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Hattiesburg ATT OC3.cfg'...
Processing object config file '/usr/local/nagios/etc/services/AMX1A MUX.cfg'...
Processing object config file '/usr/local/nagios/etc/services/49N Tower CBW.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Corp MetroE 1534 SW.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Ivey MetroE 1534 SW ATT Uplink.cfg'...
Processing object config file '/usr/local/nagios/etc/services/SQL3.cfg'...
Processing object config file '/usr/local/nagios/etc/services/janus.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/vh1.iv.virtual.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/CLEC2-Billing.cfg'...
Processing object config file '/usr/local/nagios/etc/services/2600 HBG Main Eth Side.cfg'...
Processing object config file '/usr/local/nagios/etc/services/monitor.iv.virtual.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/West MetroE 1534 SW.cfg'...
Processing object config file '/usr/local/nagios/etc/services/208.24.218.11.cfg'...
Processing object config file '/usr/local/nagios/etc/services/GPT7609.cfg'...
Processing object config file '/usr/local/nagios/etc/services/AcmeSBC-2.cfg'...
Processing object config file '/usr/local/nagios/etc/services/SQL1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Customer-EaglesTrail.cfg'...
Processing object config file '/usr/local/nagios/etc/services/MG-ME-873-WESLEY.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Webmon.cfg'...
Processing object config file '/usr/local/nagios/etc/services/1NETII.cfg'...
Processing object config file '/usr/local/nagios/etc/services/MG-ME-873-WPWAN.cfg'...
Processing object config file '/usr/local/nagios/etc/services/thor.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Jackson Level 3 100MB Ethernet.cfg'...
Processing object config file '/usr/local/nagios/etc/services/OptimistPark-CBW.cfg'...
Processing object config file '/usr/local/nagios/etc/services/cp2.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Temperature Monitor.cfg'...
Processing object config file '/usr/local/nagios/etc/services/vh2.iv.virtual.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/MG-ME-873-FGH.cfg'...
Processing object config file '/usr/local/nagios/etc/services/JetStor1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/mail.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/ADS2A DS3 InBand MGMT.cfg'...
Processing object config file '/usr/local/nagios/etc/services/JXN7206.cfg'...
Processing object config file '/usr/local/nagios/etc/services/sbc.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/vh3.iv.virtual.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/IveyVPN.cfg'...
Processing object config file '/usr/local/nagios/etc/services/AMX8A MUX.cfg'...
Processing object config file '/usr/local/nagios/etc/services/cms.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/MG-ME-873-FGH-CPE.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Ross Building Backhaul.cfg'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Ross Building Voltage.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Ivey MetroE 1534 SW.cfg'...
Processing object config file '/usr/local/nagios/etc/services/LRL7206.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Wireshark-Ziggy.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Kevin Pack DSL.cfg'...
Processing object config file '/usr/local/nagios/etc/services/SQL2.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Eagles Trail 2851 Router.cfg'...
Processing object config file '/usr/local/nagios/etc/services/2600 HBG Main T1 Side.cfg'...
Processing object config file '/usr/local/nagios/etc/services/DC Power Plant.cfg'...
Processing object config file '/usr/local/nagios/etc/services/MegaServer.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Lrl MetroE 1534 SW.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Site132SQL.cfg'...
Processing object config file '/usr/local/nagios/etc/services/WPSM-vPD01.cfg'...
Processing object config file '/usr/local/nagios/etc/services/SynCraft Timing System.cfg'...
Processing object config file '/usr/local/nagios/etc/services/ra.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/APC-RR102.11-A14.cfg'...
Processing object config file '/usr/local/nagios/etc/services/cp1.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/smtp.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/ftp2.megagate.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/Main MetroE 1534 SW.cfg'...
Warning: Duplicate definition found for service 'SSH' on host 'localhost' (config file '/usr/local/nagios/etc/services/CLEC2-Billing.cfg', starting on line 32)
Warning: Duplicate definition found for service 'SMTP' on host 'cp2.megagate.com' (config file '/usr/local/nagios/etc/services/mail.megagate.com.cfg', starting on line 76)
Warning: Duplicate definition found for service 'SSH' on host 'cp2.megagate.com' (config file '/usr/local/nagios/etc/services/mail.megagate.com.cfg', starting on line 92)
Warning: Duplicate definition found for service 'SSH' on host 'localhost' (config file '/usr/local/nagios/etc/services/mail.megagate.com.cfg', starting on line 92)
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Warning: Service 'Battery Voltage' on host '49N Tower CBW' has no check time period defined!
Warning: Service 'Temperature' on host '49N Tower CBW' has no check time period defined!
Warning: Service 'Data NIC 1' on host 'JetStor1' has no check time period defined!
Warning: Service 'Data NIC 2' on host 'JetStor1' has no check time period defined!
Warning: Service 'Data NIC 3' on host 'JetStor1' has no check time period defined!
Warning: Service 'Data NIC 4' on host 'JetStor1' has no check time period defined!
Warning: Service 'Drive E: SQL Data Disk Usage' on host 'Site132SQL' has no default contacts or contactgroups defined!
Warning: Service 'Drive F: Backup USB' on host 'Site132SQL' has no default contacts or contactgroups defined!
Warning: Service 'Drive G: SQL Archive' on host 'Site132SQL' has no default contacts or contactgroups defined!
Warning: Service 'JetStor1-LUN1 Usage' on host 'monitor.iv.virtual.megagate.com' has no check time period defined!
Warning: Service 'JetStor1-LUN2 Usage' on host 'monitor.iv.virtual.megagate.com' has no check time period defined!
Warning: Service 'JetStor2-LUN1 Usage' on host 'monitor.iv.virtual.megagate.com' has no check time period defined!
Warning: Service 'JetStor2-LUN2 Usage' on host 'monitor.iv.virtual.megagate.com' has no check time period defined!
Warning: Service 'Ping' on host 'vh1.iv.virtual.megagate.com' has no check time period defined!
Warning: Service 'Ping' on host 'vh1.iv.virtual.megagate.com' has no notification time period defined!
Warning: Service 'Ping' on host 'vh2.iv.virtual.megagate.com' has no check time period defined!
Warning: Service 'Ping' on host 'vh2.iv.virtual.megagate.com' has no notification time period defined!
Warning: Service 'Ping' on host 'vh3.iv.virtual.megagate.com' has no check time period defined!
Warning: Service 'Ping' on host 'vh3.iv.virtual.megagate.com' has no notification time period defined!
        Checked 261 services.
Checking hosts...
        Checked 66 hosts.
Checking host groups...
        Checked 7 host groups.
Checking service groups...
        Checked 7 service groups.
Checking contacts...
        Checked 13 contacts.
Checking contact groups...
        Checked 3 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 118 commands.
Checking time periods...
        Checked 17 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 19
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...done.
Stopping nagios: .done.
Starting nagios: done.
OUTPUT=Starting nagios: done.
RETURNCODE=0
....

Re: Apply config error, no snapshot error to view

Posted: Tue Mar 12, 2013 4:55 pm
by lmiltchev
I will keep this open for a few more days. Please, let us know if you have any more issues.

P.S.
I expect you will have issues with RRDs... You may have to follow this post:

http://support.nagios.com/wiki/index.ph ... Install.3F

Note: Keep im mind, it would be very easy to run out of disk space... depending on how large your setup is.

Re: Apply config error, no snapshot error to view

Posted: Tue Mar 12, 2013 4:59 pm
by r.jaynes
Thanks for the info, and we used that guide to migrate our RRD a few days ago. My solution to running out of disk space was to tar/gzip the *rrd.xml file before hand, and then just add an extra step to untar/ungzip on the new server during processing.

Thanks for help the guys!

Re: Apply config error, no snapshot error to view

Posted: Wed Mar 13, 2013 10:19 am
by slansing
Great! Closing as resolved.