Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
W.W.
Posts: 17 Joined: Wed Apr 05, 2017 3:18 am
Post
by W.W. » Tue Jun 13, 2017 9:09 am
Dear all,
When I reboot nagios Core 4.1, I get this error
No lock file found in /usr/local/nagios/var/nagios.lock
nagios.lock does not exist and nagios -v don't return error.
So, I create it the manually and now when I do
service nagios status
I have the below output
Any help would be appreciated
lmiltchev
Former Nagios Staff
Posts: 13587 Joined: Mon May 23, 2011 12:15 pm
Post
by lmiltchev » Tue Jun 13, 2017 11:18 am
How did you install Nagios? What tutorial/guide did you follow? What is the OS/architecture of the system you installed Nagios on? Do you have SELinux running on this box? What is the output of the following command?
Be sure to check out our
Knowledgebase for helpful articles and solutions!
W.W.
Posts: 17 Joined: Wed Apr 05, 2017 3:18 am
Post
by W.W. » Wed Jun 14, 2017 2:16 am
Thank you for the reply.
I didn't make the installation, I don't know which tuto was use but it's a FAN installation on CentOS 6.9. SELinux is disabled
/etc/init.d/nagios configtest
Code: Select all
[root@- var]# /etc/init.d/nagios configtest
Nagios Core 4.1.0rc1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 02-18-2015
License: GPL
Website: http://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 878 services.
Checked 383 hosts.
Checked 14 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 37 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 383 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
Object precache file created:
/usr/local/nagios/var/objects.precache
W.W.
Posts: 17 Joined: Wed Apr 05, 2017 3:18 am
Post
by W.W. » Wed Jun 14, 2017 4:12 am
My problem was solved by switching off ndo2db, mysqld and httpd.
Can we close this post