@benjaminsmith
# chage -l nagios
Last password change : Nov 05, 2012
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
# su - nagios
# cd /usr/local/nagiosxi/scripts
# ./reconfigure_nagios.sh
--- reset_config_perms.sh ------------
> Setting CCM script permissions
> Setting script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
/bin/chmod: cannot access `/usr/local/nagios/share/perfdata/CALIX_BLADE_OCCMTRNCR02SHN/_HOST_.xml.25958': No such file or directory
/bin/chmod: cannot access `/usr/local/nagios/share/perfdata/CALIX_VLHLL_01_01/_HOST_.xml.25958': No such file or directory
/bin/chmod: cannot access `/usr/local/nagios/share/perfdata/GRLDMENRR04/_HOST_.xml.25958': No such file or directory
/bin/chmod: cannot access `/usr/local/nagios/share/perfdata/CALIX_MCLCH_01_01/_HOST_.xml.25958': No such file or directory
> Setting NOM checkpoint user:group permissions
> + Setting Nagios Core corelog.newobjects user:group permissions
> + Setting CCM configuration file user:group permissions
> + Setting Recurring Downtime file user:group permissions
> + Setting BPI configuration file user:group permissions
--------------------------------------
--- ccm_import.php -------------------
> Setting import directory: /usr/local/nagios/etc/import/
> Importing config files into the CCM
No files to import
--------------------------------------
--- ccm_export.php -------------------
> Writing CCM configuration to Nagios files
PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491
Finished writing out configuraton
--------------------------------------
--------------------------------------
> Verifying configuration with Nagios Core
> Output:
Nagios Core 4.4.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-08-16
License: GPL
Website:
https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'Ping' on host 'FRNTMENRR01' (config file '/usr/local/nagios/etc/services/FRNTMENRR01.cfg', starting on line 523)
Warning: Duplicate definition found for service 'TenGigabitEthernet3/4 ACCESS TO NETFLIX-C004 BB-795C Status' on host 'VKRSIPCRR02' (config file '/usr/local/nagios/etc/services/VKRSIPCRR02.cfg', starting on line 1518)
Warning: Duplicate definition found for service 'TenGigabitEthernet3/4 ACCESS TO NETFLIX-C004 BB-795C Bandwidth' on host 'VKRSIPCRR02' (config file '/usr/local/nagios/etc/services/VKRSIPCRR02.cfg', starting on line 1486)
Warning: Duplicate definition found for service 'Ping' on host 'VKRSIPCRR02' (config file '/usr/local/nagios/etc/services/VKRSIPCRR02.cfg', starting on line 1064)
Warning: Duplicate definition found for service 'Ping' on host 'VKRSIPCRR02' (config file '/usr/local/nagios/etc/services/VKRSIPCRR02.cfg', starting on line 1049)
Warning: Duplicate definition found for service 'Ping' on host 'VKRSIPCRR02' (config file '/usr/local/nagios/etc/services/VKRSIPCRR02.cfg', starting on line 1033)
Warning: Duplicate definition found for service 'Ping' on host 'VKRSIPCRR02' (config file '/usr/local/nagios/etc/services/VKRSIPCRR02.cfg', starting on line 1018)
Warning: Duplicate definition found for service 'Ping' on host 'VKRSIPCRR02' (config file '/usr/local/nagios/etc/services/VKRSIPCRR02.cfg', starting on line 1003)
Warning: Duplicate definition found for service 'Ping' on host 'VKRSIPCRR02' (config file '/usr/local/nagios/etc/services/VKRSIPCRR02.cfg', starting on line 988)
Warning: Duplicate definition found for service 'Ping' on host 'VKRSIPCRR02' (config file '/usr/local/nagios/etc/services/VKRSIPCRR02.cfg', starting on line 972)
Warning: Duplicate definition found for service 'Ping' on host 'VKRSIPCRR02' (config file '/usr/local/nagios/etc/services/VKRSIPCRR02.cfg', starting on line 955)
Warning: Duplicate definition found for service 'Ping' on host 'MCKLMENRR01' (config file '/usr/local/nagios/etc/services/ MCKLMENRR01.cfg', starting on line 32)
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Warning: Service 'Ping' on host 'CALIX_SHRWD_01_08' has no default contacts or contactgroups defined!
Warning: Service 'Intercity Industrial - 8073516371 - Bandwidth' on host 'E720_COURT_01' has no default contacts or contactgroups defined!
Warning: Service 'PON 1-1-1 - BANNG-01 - BT600A - Bandwidth' on host 'E720_COURT_01' has no default contacts or contactgroups defined!
Warning: Service 'PON 1-1-2 - BANNG-02 - BT600B - Bandwidth' on host 'E720_COURT_01' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'E720_COURT_01' has no default contacts or contactgroups defined!
Warning: Service 'Halfway Motors Mazda - 8073513372 - Bandwidth' on host 'E720_LITHIUM_01' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'E720_LITHIUM_01' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'E720_NEEBING_01' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'E720_SHUNIAH_01' has no default contacts or contactgroups defined!
Warning: Service 'Dave Meunier - 8073512026 - Bandwidth' on host 'E720_VICKERS_01' has no default contacts or contactgroups defined!
Warning: Service 'MacIvor Scrimshaw LLP - 8073509755 - Bandwidth' on host 'E720_VICKERS_01' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'E720_VICKERS_01' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'E72_FANSHAW_01' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'E72_FANSHAW_02' has no default contacts or contactgroups defined!
Warning: Service 'Ping' on host 'VKRSIPCVR01' has no default contacts or contactgroups defined!
Checked 5803 services.
Warning: Host 'BlakeSco_HWY61_IP10' has no default contacts or contactgroups defined!
Warning: Host 'CALIX_SHRWD_01_08' has no default contacts or contactgroups defined!
Warning: Host 'Cloud_Lk_Hub_IP10' has no default contacts or contactgroups defined!
Warning: Host 'Community_Intola_IP10' has no default contacts or contactgroups defined!
Warning: Host 'Crooks_Hub_IP10' has no default contacts or contactgroups defined!
Warning: Host 'E720_COURT_01' has no default contacts or contactgroups defined!
Warning: Host 'E720_LITHIUM_01' has no default contacts or contactgroups defined!
Warning: Host 'E720_NEEBING_01' has no default contacts or contactgroups defined!
Warning: Host 'E720_SHUNIAH_01' has no default contacts or contactgroups defined!
Warning: Host 'E720_VICKERS_01' has no default contacts or contactgroups defined!
Warning: Host 'E72_FANSHAW_01' has no default contacts or contactgroups defined!
Warning: Host 'E72_FANSHAW_02' has no default contacts or contactgroups defined!
Warning: Host 'Hwy527_Wardrope_IP10' has no default contacts or contactgroups defined!
Warning: Host 'Intola_Community_IP10' has no default contacts or contactgroups defined!
Warning: Host 'Jumbo_Shuniah_IP10' has no default contacts or contactgroups defined!
Warning: Host 'Pigeon_Crooks_IP10' has no default contacts or contactgroups defined!
Warning: Host 'Rogers Loon_Hub_IP10' has no default contacts or contactgroups defined!
Warning: Host 'Rogers Wardrope_Hub_IP10' has no default contacts or contactgroups defined!
Warning: Host 'S.Gillies_Whitefish_IP10' has no default contacts or contactgroups defined!
Warning: Host 'Shuniah_Jumbo_IP10' has no default contacts or contactgroups defined!
Warning: Host 'SilverLk_LoonLk_IP10' has no default contacts or contactgroups defined!
Warning: Host 'VKRSIPCVR01' has no default contacts or contactgroups defined!
Warning: Host 'Whitefish_S.Gillies_IP10' has no default contacts or contactgroups defined!
Checked 1526 hosts.
Checked 8 host groups.
Checked 6 service groups.
Checked 47 contacts.
Checked 6 contact groups.
Checked 154 commands.
Checked 52 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1526 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 52 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 38
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
> Return Code: 0
--------------------------------------
Stopping nagios: ...done.
Starting nagios: done.