Version 4.3.4
Installed by yum (epel) via Puppet
At this time, I have only gotten as far as installing your software, with the default cfg files and monitoring the localhost
nagios -v /etc/nagios/nagios.cfg
Code: Select all
[root@sls-hwn nagios]# nagios -v nagios.cfg
Nagios Core 4.3.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2017-08-24
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 8 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight checkCode: Select all
[root@sls-hwn brt24574]# tail -f /var/log/nagios/nagios.log
[1546534210] wproc: Registry request: name=Core Worker 32242;pid=32242
[1546534210] wproc: Registry request: name=Core Worker 32239;pid=32239
[1546534210] wproc: Registry request: name=Core Worker 32240;pid=32240
[1546534210] Successfully launched command file worker with pid 32244
[1546534416] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;connect to address 127.0.0.1 and port 80: Connection refused
[1546534476] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;2;connect to address 127.0.0.1 and port 80: Connection refused
[1546534536] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;3;connect to address 127.0.0.1 and port 80: Connection refused
[1546534596] SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;4;connect to address 127.0.0.1 and port 80: Connection refused
[1546537810] Auto-save of retention data completed successfully.
[1546537896] SERVICE ALERT: localhost;HTTP;OK;HARD;4;HTTP OK: HTTP/1.1 200 OK - 1275 bytes in 0.003 second response timemain_config_file=/etc/nagios/nagios.cfg
I have looked at every post on this forum, plus others online related to this problem.
It looks like a permission error, so I temporarily changed permissions to 755 on all .dat files and .cfg files
Also, set the owner and group to nagios
Would you kindly help me troubleshoot this issue?
Thank you!