Code: Select all
[nagios@nagios scripts]$ /usr/local/nagiosxi/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=n@gweb' -O nagiosql.login--2017-02-08 11:12:03-- 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”
[ <=> ] 37,626 --.-K/s in 0.04s
2017-02-08 11:12:04 (992 KB/s) - “nagiosql.login” saved [37626]
LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
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=n@gweb' -O nagiosql.login--2017-02-08 11:12:05-- 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”
[ <=> ] 37,626 --.-K/s in 0.02s
2017-02-08 11:12:05 (1.50 MB/s) - “nagiosql.login” saved [37626]
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
--2017-02-08 11:12: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.export.monitoring”
[ <=> ] 21,683 --.-K/s in 0.01s
2017-02-08 11:12:07 (1.60 MB/s) - “nagiosql.export.monitoring” saved [21683]
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...
Warning: Duplicate definition found for service '/storage6 Disk Usage' on host 'digitalobj.cjh.org' (config file '/usr/local/nagios/etc/services/digitalojb.cjh.org.cfg', starting on line 62)
Warning: Duplicate definition found for service 'SQL Server' on host 'cfjh08.cfjh.net' (config file '/usr/local/nagios/etc/services/cfjh08.cfjh.net.cfg', starting on line 172)
Warning: Duplicate definition found for service 'Messages Pending Routing' on host 'cfjh16.cfjh.net' (config file '/usr/local/nagios/etc/services/cfjh16.cfjh.net.cfg', starting on line 145)
Warning: Duplicate definition found for service 'Uptime' on host 'mediaserver.cfjh.net' (config file '/usr/local/nagios/etc/services/mediaserver.cfjh.net.cfg', starting on line 142)
Warning: Duplicate definition found for service 'Ping' on host 'mediaserver.cfjh.net' (config file '/usr/local/nagios/etc/services/mediaserver.cfjh.net.cfg', starting on line 112)
Warning: Duplicate definition found for service 'Memory Usage' on host 'mediaserver.cfjh.net' (config file '/usr/local/nagios/etc/services/mediaserver.cfjh.net.cfg', starting on line 80)
Warning: Duplicate definition found for service 'Drive C: Disk Usage' on host 'mediaserver.cfjh.net' (config file '/usr/local/nagios/etc/services/mediaserver.cfjh.net.cfg', starting on line 48)
Warning: Duplicate definition found for service 'CPU Usage' on host 'mediaserver.cfjh.net' (config file '/usr/local/nagios/etc/services/mediaserver.cfjh.net.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Domain Expiration' on host 'cjh.org' (config file '/usr/local/nagios/etc/services/ajhs.org.cfg', starting on line 80)
Warning: Duplicate definition found for service 'Domain Expiration' on host 'cfjh.net' (config file '/usr/local/nagios/etc/services/cfjh.net.cfg', starting on line 16)
Warning: Duplicate definition found for service 'Domain Expiration' on host 'jewishcommons.org' (config file '/usr/local/nagios/etc/services/ajhs.org.cfg', starting on line 80)
Warning: Duplicate definition found for service '/usr Disk Usage' on host 'ilstest.cjh.org' (config file '/usr/local/nagios/etc/services/All linux servers _usr.cfg', starting on line 16)
Warning: Duplicate definition found for service '/var Disk Usage' on host 'ilstest.cjh.org' (config file '/usr/local/nagios/etc/services/All linux servers _var.cfg', starting on line 16)
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Warning: Service 'Domain Expiration jewsinamerica.org' on host 'ajhs.org' has no check time period defined!
Warning: Service 'Domain Expiration' on host 'cfjh.net' has a notification interval less than its check interval! Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
Warning: Service 'Domain Expiration' on host 'cjh.org' has a notification interval less than its check interval! Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
Warning: Service 'Domain Expiration' on host 'jewishcommons.org' has a notification interval less than its check interval! Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
Checked 580 services.
Checked 50 hosts.
Checked 5 host groups.
Checked 2 service groups.
Checked 5 contacts.
Checked 3 contact groups.
Checked 138 commands.
Checked 10 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 50 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 10 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 4
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
[root@nagios ~]# ls -al /usr/local/nagiosxi/scripts/
total 688
drwxr-xr-x 2 nagios nagios 4096 Feb 8 11:08 .
drwxr-xr-x 10 nagios nagios 4096 Feb 24 2015 ..
-rwxr-x--- 1 nagios nagios 5673 Jan 30 09:38 backup_xi.sh
-rwxr-x--- 1 nagios nagios 1664 Jan 30 09:38 change_timezone.sh
-rw-r----- 1 nagios nagios 3030 Jan 30 09:38 contact_notification_handler.php
-rwxr-x--- 1 nagios nagios 660 Jan 30 09:38 export_nagiosql.sh
-rw-r--r-- 1 nagios nagios 58 Jan 30 09:38 .gitignore
-rwxr-x--- 1 nagios nagios 261 Jan 30 09:38 handle_nagioscore_event.php
-rw-r----- 1 nagios nagios 3318 Jan 30 09:38 handle_nagioscore.inc.php
-rwxr-x--- 1 nagios nagios 262 Jan 30 09:38 handle_nagioscore_notification.p hp
-rwxr-x--- 1 nagios nagios 425 Jan 30 09:38 import_nagiosql.sh
-rwxr-x--- 1 nagios nagios 908 Jan 30 09:38 import_xiconfig.php
-rwxr-x--- 1 nagios nagios 93 Jan 30 09:38 kill_rrdtool.sh
-rwxr-x--- 1 nagios nagios 2303 Jan 30 09:38 manage_services.sh
-rwxrwxr-x 1 nagios nagios 161 Feb 8 11:08 nagiosql.cookies
-rwxrwxr-x 1 nagios nagios 283701 Jan 30 09:38 nagiosql_defaults.sql
-rwxrwxr-x 1 nagios nagios 895 Jan 30 09:38 nagiosql_delete_contact.php
-rwxrwxr-x 1 nagios nagios 39878 Aug 26 15:57 nagiosql.delete.host
-rwxrwxr-x 1 nagios nagios 1937 Jan 30 09:38 nagiosql_delete_host.php
-rwxrwxr-x 1 nagios nagios 497 Jan 30 09:38 nagiosql_delete_object.sh
-rwxrwxr-x 1 nagios nagios 47676 Nov 4 15:58 nagiosql.delete.service
-rwxrwxr-x 1 nagios nagios 2766 Jan 30 09:38 nagiosql_delete_service.php
-rwxrwxr-x 1 nagios nagios 896 Jan 30 09:38 nagiosql_delete_timeperiod.php
-rwxrwxr-x 1 nagios nagios 1272 Jan 30 09:38 nagiosql_exportall.php
-rwxrwxr-x 1 nagios nagios 21683 Feb 8 11:08 nagiosql.export.monitoring
-rwxrwxr-x 1 nagios nagios 1296 Jan 30 09:38 nagiosql_importall.php
-rwxrwxr-x 1 nagios nagios 38407 Jan 31 11:27 nagiosql.import.monitoring
-rwxrwxr-x 1 nagios nagios 37626 Feb 8 11:08 nagiosql.login
-rwxrwxr-x 1 nagios nagios 1681 Jan 30 09:38 nagiosql_login.php
-rwxrwxr-x 1 nagios nagios 2247 Jan 30 09:38 nagiosql_snapshot.sh
-rwxrwxr-x 1 nagios nagios 200 Jan 30 09:38 nagiosql_trim_backups.sh
-rw-r----- 1 nagios nagios 366 Jan 30 09:38 nagiosxi_dbtype.php
-rwxr-x--- 1 nagios nagios 408 Jan 30 09:38 nom_create_nagioscore_checkpoint _cond.sh
-rwxr-x--- 1 nagios nagios 961 Jan 30 09:38 nom_create_nagioscore_checkpoint .sh
-rwxr-x--- 1 nagios nagios 774 Jan 30 09:38 nom_create_nagioscore_errorpoint .sh
-rwxr-x--- 1 nagios nagios 760 Jan 30 09:38 nom_restore_nagioscore_checkpoin t.sh
-rwxr-x--- 1 nagios nagios 802 Jan 30 09:38 nom_restore_nagioscore_checkpoin t_specific.sh
-rwxr-x--- 1 nagios nagios 2893 Jan 30 09:38 nom_trim_nagioscore_checkpoints. sh
-rwxr-x--- 1 nagios nagios 4621 Jan 30 09:38 parse_core_eventlog.php
-rwxr-x--- 1 nagios nagios 6019 Jan 30 09:38 patch_ndoutils.php
-rwxr-x--- 1 nagios nagios 588 Jan 30 09:38 reconfigure_nagios.sh
-rwxr-x--- 1 nagios nagios 1378 Jan 30 09:38 repair_databases.sh
-rwxr-x--- 1 nagios nagios 3315 Jan 30 09:38 repairmysql.sh
-rwxr-x--- 1 nagios nagios 6798 Apr 29 2015 reset_config_perms
-rw-r----- 1 nagios nagios 280 Apr 29 2015 reset_config_perms.c
-rwsr-xr-x 1 root nagios 1010 Jan 30 09:38 reset_config_perms.sh
-rwxr-x--- 1 nagios nagios 1538 Jan 30 09:38 reset_nagiosadmin_password.php
-rwxr-x--- 1 nagios nagios 1591 Jan 30 09:38 restart_nagios_with_export.sh
-rwxr-x--- 1 nagios nagios 3460 Jan 30 09:38 restore_defaults.sh
-rwxr-x--- 1 nagios nagios 9031 Jan 30 09:38 restore_xi.sh
-rwxr-x--- 1 nagios nagios 1847 Jan 30 09:38 send_to_auditlog.php
-rw-r----- 1 nagios nagios 2702 Jan 30 09:38 uninstall_xi.sh
-rwxr-x--- 1 nagios nagios 1207 Jan 30 09:38 unlock_user_account.php
-rwxr-x--- 1 nagios nagios 2681 Jan 30 09:38 upgrade_to_latest.sh