Code: Select all
[root@BRANAG0003 ~]# su nagios
[nagios@BRANAG0003 root]$ cd /usr/local/nagiosxi/scripts
[nagios@BRANAG0003 scripts]$ ./reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=TNuDjDZ3Z04M' -O nagiosql.login--2018-04-19 15:28:06-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”
[ <=> ] 30,983 --.-K/s in 0.02s
2018-04-19 15:28:06 (1.64 MB/s) - “nagiosql.login” saved [30983]
LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
[0] => braplm0003.am.nemak.net.cfg
[1] => bratia0001.am.nemak.net.cfg
[2] => bravas0001.am.nemak.net.cfg
[3] => bravas0002.am.nemak.net.cfg
[4] => bravas0004.am.nemak.net.cfg
[5] => bravas0005.am.nemak.net.cfg
[6] => bravwc0002.am.nemak.net.cfg
[7] => brawcs0001.am.nemak.net.cfg
[8] => kDlH9vrm.tmp.cfg
[9] => tDm29WIH.tmp.cfg
[10] => tTl7BNTT.tmp.cfg
[11] => u7nc28nc.tmp.cfg
[12] => uJ55vYL0.tmp.cfg
[13] => uMtCCVXA.tmp.cfg
[14] => vIGnD98N.tmp.cfg
[15] => vOddXUch.tmp.cfg
)
IMPORTING /usr/local/nagios/etc/import/braplm0003.am.nemak.net.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/braplm0003.am.nemak.net.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:07-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 44,483 --.-K/s in 0.01s
2018-04-19 15:28:07 (2.84 MB/s) - “nagiosql.import.monitoring” saved [44483]
IMPORTING /usr/local/nagios/etc/import/bratia0001.am.nemak.net.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/bratia0001.am.nemak.net.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:07-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 44,314 --.-K/s in 0.02s
2018-04-19 15:28:08 (1.91 MB/s) - “nagiosql.import.monitoring” saved [44314]
IMPORTING /usr/local/nagios/etc/import/bravas0001.am.nemak.net.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/bravas0001.am.nemak.net.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:08-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 44,176 --.-K/s in 0.02s
2018-04-19 15:28:08 (2.10 MB/s) - “nagiosql.import.monitoring” saved [44176]
IMPORTING /usr/local/nagios/etc/import/bravas0002.am.nemak.net.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/bravas0002.am.nemak.net.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:08-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 44,038 --.-K/s in 0.02s
2018-04-19 15:28:10 (1.72 MB/s) - “nagiosql.import.monitoring” saved [44038]
IMPORTING /usr/local/nagios/etc/import/bravas0004.am.nemak.net.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/bravas0004.am.nemak.net.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:10-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 43,900 --.-K/s in 0.02s
2018-04-19 15:28:10 (2.46 MB/s) - “nagiosql.import.monitoring” saved [43900]
IMPORTING /usr/local/nagios/etc/import/bravas0005.am.nemak.net.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/bravas0005.am.nemak.net.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:10-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 43,762 --.-K/s in 0.02s
2018-04-19 15:28:11 (2.12 MB/s) - “nagiosql.import.monitoring” saved [43762]
IMPORTING /usr/local/nagios/etc/import/bravwc0002.am.nemak.net.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/bravwc0002.am.nemak.net.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:11-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 43,624 --.-K/s in 0.02s
2018-04-19 15:28:11 (1.96 MB/s) - “nagiosql.import.monitoring” saved [43624]
IMPORTING /usr/local/nagios/etc/import/brawcs0001.am.nemak.net.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/brawcs0001.am.nemak.net.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:11-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 43,486 --.-K/s in 0.02s
2018-04-19 15:28:12 (2.11 MB/s) - “nagiosql.import.monitoring” saved [43486]
IMPORTING /usr/local/nagios/etc/import/kDlH9vrm.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/kDlH9vrm.tmp.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:12-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 43,348 --.-K/s in 0.02s
2018-04-19 15:28:12 (2.20 MB/s) - “nagiosql.import.monitoring” saved [43348]
IMPORTING /usr/local/nagios/etc/import/tDm29WIH.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/tDm29WIH.tmp.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:12-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 43,232 --.-K/s in 0.02s
2018-04-19 15:28:13 (2.28 MB/s) - “nagiosql.import.monitoring” saved [43232]
IMPORTING /usr/local/nagios/etc/import/tTl7BNTT.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/tTl7BNTT.tmp.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:13-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 43,116 --.-K/s in 0.02s
2018-04-19 15:28:13 (2.62 MB/s) - “nagiosql.import.monitoring” saved [43116]
IMPORTING /usr/local/nagios/etc/import/u7nc28nc.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/u7nc28nc.tmp.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:13-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 43,000 --.-K/s in 0.02s
2018-04-19 15:28:14 (2.05 MB/s) - “nagiosql.import.monitoring” saved [43000]
IMPORTING /usr/local/nagios/etc/import/uJ55vYL0.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/uJ55vYL0.tmp.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:14-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 42,884 --.-K/s in 0.02s
2018-04-19 15:28:15 (2.04 MB/s) - “nagiosql.import.monitoring” saved [42884]
IMPORTING /usr/local/nagios/etc/import/uMtCCVXA.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/uMtCCVXA.tmp.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:15-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 42,768 --.-K/s in 0.02s
2018-04-19 15:28:15 (1.88 MB/s) - “nagiosql.import.monitoring” saved [42768]
IMPORTING /usr/local/nagios/etc/import/vIGnD98N.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/vIGnD98N.tmp.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:15-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 42,652 --.-K/s in 0.02s
2018-04-19 15:28:16 (2.32 MB/s) - “nagiosql.import.monitoring” saved [42652]
IMPORTING /usr/local/nagios/etc/import/vOddXUch.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/vOddXUch.tmp.cfg' -O nagiosql.import.monitoring
--2018-04-19 15:28:16-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.import.monitoring”
[ <=> ] 42,536 --.-K/s in 0.02s
2018-04-19 15:28:16 (1.86 MB/s) - “nagiosql.import.monitoring” saved [42536]
RESETTING PERMS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=TNuDjDZ3Z04M' -O nagiosql.login--2018-04-19 15:28:17-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”
[ <=> ] 31,001 --.-K/s in 0.02s
2018-04-19 15:28:17 (1.67 MB/s) - “nagiosql.login” saved [31001]
LOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2018-04-19 15:28:17-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.export.monitoring”
[ <=> ] 33,048 --.-K/s in 0.01s
2018-04-19 15:28:30 (2.35 MB/s) - “nagiosql.export.monitoring” saved [33048]
WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 574 services.
Checked 65 hosts.
Checked 2 host groups.
Checked 0 service groups.
Error: Contact 'Felipe Bantim' has no service notification commands defined!
Error: Contact 'Felipe Bantim' has no host notification commands defined!
Warning: Service recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify critical and/or warning options as well
Checked 6 contacts.
Checked 2 contact groups.
Checked 124 commands.
Checked 11 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 65 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 11 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 1
Total Errors: 2
***> 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: 1
/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/1524149282.tar.gz
/ /usr/local/nagiosxi/scripts
RESTORING NOM SNAPSHOT : /usr/local/nagiosxi/nom/checkpoints/nagioscore/1524149282.tar.gz
tar: usr/local/nagios/etc/hosts: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/hosts: Cannot change mode to rwsrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp/pages: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp/pages: Cannot change mode to rwxrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp/check_commands: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp/check_commands: Cannot change mode to rwxrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp: Cannot change mode to rwxrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/import: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/import: Cannot change mode to rwsrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/services: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/services: Cannot change mode to rwsrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/static: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/static: Cannot change mode to rwsrwsr-x: Operation not permitted
tar: usr/local/nagios/etc: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc: Cannot change mode to rwsrwsr-x: Operation not permitted
tar: Exiting with failure status due to previous errors
/usr/local/nagiosxi/scripts
RESETTING PERMS