Hi,
#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.4.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2020-04-28
License: GPL
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 92 services.
Checked 10 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 2 contacts.
Checked 2 contact groups.
Checked 30 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 10 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 check
# rpm -qa | grep thruk
thruk-base-2.44.3-11112.1.x86_64
thruk-2.44.3-11112.1.x86_64
thruk-plugin-reporting-2.44.3-11112.1.x86_64
libthruk-2.44.2-0.x86_64
#
When i restart or reload nagios service I encounter using the below command
#systemctl reload nagios.service
prod: ERROR: 491: failed to connect - failed to connect to /usr/local/nagios/var/live.sock: Permission denied. (/usr/local/nagios/var/live.sock)
I have to run the below command to fix the issue.
#chown apache.apache /usr/local/nagios/var/live.sock
# cd /usr/local/nagios/
# ls -l
total 12
drwxr-xr-x 2 nagios nagios 87 Oct 14 13:48 bin
drwxrwxr-x 4 nagios nagios 180 Oct 14 14:04 etc
drwxr-xr-x 2 nagios nagios 6 Sep 30 13:31 include
drwxr-xr-x 3 nagios nagios 27 Oct 14 13:48 lib
drwxrwxr-x 3 nagios nagios 4096 Oct 12 08:42 libexec
drwxrwxr-x 2 nagios nagios 4096 Sep 30 13:03 sbin
drwxrwxr-x 15 nagios nagios 4096 Sep 30 13:31 share
drwxrwxr-x 5 nagios nagios 263 Oct 14 20:18 var
#
uid=1000(nagios) gid=1000(nagios) groups=1000(nagios),1001(nagcmd)
# id apache
uid=48(apache) gid=48(apache) groups=48(apache),1000(nagios),1001(nagcmd)
Any help will be highly appreciated. Thanks in advance.
Best Regards,
Kaushal