Home > Failed To > Failed To Obtain Lock On File /var/run/nagios.pid

Failed To Obtain Lock On File /var/run/nagios.pid

Processing object config file '/etc/nagiosql/services/winserver.cfg'... rfelsburg View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by rfelsburg 07-21-2010, 03:49 AM #22 Spuddy Member Registered: Jul 2010 Posts: 83 Processing object config file '/etc/nagiosql/hosts/router-sandanski.cfg'... or kill -l [sigspec] done. Source

So we'd do:su - nagios -c "rm -f /var/lock/subsys/ndo2db"su - nagios -c "rm -f /usr/local/nagios/var/ndo.sock"su - nagios -c "touch /var/lock/subsys/ndo2db"su - nagios -c "touch /usr/local/nagios/var/ndo2db.lock"su - nagios -c "chown nagios:nagios /var/lock/subsys/ndo2db"su At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'. Though that is a bit unsecure and the group write permission on /var/run/ might not be set) Which resolves the issue and produces : [1278578245] Nagios 3.2.1 starting... (PID=12574) [1278578245] Local Browse other questions tagged linux centos nagios or ask your own question. great post to read

Processing object config file '/etc/nagiosql/services/NRPE.cfg'... Join Now For immediate help use Live now! As long as you point the lock_file option to a directory that nagios has access to create, modify and delete files then you should be good to go. I got a working installation with # systemctl restart nagios # systemctl status nagios # grep nagios /var/log/audit/audit.log|tail -1 |grep connectto|audit2allow -M nagios-patch4 # semodule -i nagios-patch4.pp # semanage fcontext -a

  1. Processing object config file '/etc/nagiosql/hosts/hqatlweb.cfg'...
  2. Processing object config file '/etc/nagiosql/hosts/dresxi3.cfg'...
  3. Lords 2010-10-08 22:20:29 CEST closing resolved/verified contribs bugs Comment 6 Charlie Brady 2010-09-16 15:16:59 CEST Resolving NOTABUG.
  4. If you are unable to reopen this bug, please file a new report against the current release.

Processing object config file '/etc/nagiosql/hosts/hqmqsrv.cfg'... Checking contact groups... Just posted the output and thanked you for your help. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.

Spuddy View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by Spuddy 07-20-2010, 05:58 PM #19 rfelsburg Member Registered: Nov 2008 Posts: 52 What's the point of repeating an email address in "The Envelope" and the "The Header"? I'm guessing the permissions got messed up on that somehow. http://h3x.no/2010/06/30/failed-to-obtain-lock-on-file-varrunnagios-pid-permission-denied Which this is not. –wzzrd May 31 '10 at 12:41 Yikes - I guess it will work in the sense that Nagios will start and stop, but man, too

Processing object config file '/etc/nagiosql/hosts/hqts3.cfg'... Processing object config file '/etc/nagiosql/hosts/dresxi2.cfg'... If you login with the nagios user you can write normally in /var/run with the original permission. –Pier May 31 '10 at 16:31 So it looks like when you Processing object config file '/etc/nagiosql/hosts/dresxi1.cfg'...

Processing object config file '/etc/nagiosql/hosts/hqrep2.cfg'... SELinux doesn't allow process with selinux context nagios_t to create a socket file in this directory when it has selinux type nagios_log_t: type=AVC msg=audit(1456183775.625:31268): avc: denied { create } for pid=14026 Processing object config file '/etc/nagiosql/serviceextinfo.cfg'... This helps ensure your disk space usage doesn't# get out of control when debugging.max_debug_file_size=1000000Let me know what other information i can provide you to help you to know the root cause

Checking service groups... http://1pxcare.com/failed-to/vmware-failed-to-lock-file.html As John Rabotnik suggested you can change where the lock file is written (and is what i did myself too) but when nagios will be updated the problem will come back Processing object config file '/etc/nagiosql/hosts/hqts4.cfg'... Jul 19 06:25:01 ODB2 rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="3125" x-info="http://www.rsyslog.com"] restart Jul 20 06:25:01 ODB2 kernel: imklog 3.18.6, log source = /proc/kmsg started.

Processing object config file '/etc/nagiosql/services/check_naf_tsum_VMWAREDS4.cfg'... Processing object config file '/etc/nagiosql/hosts/hqveeam.cfg'... Processing object config file '/etc/nagiosql/commands.cfg'... have a peek here Comment 7 Alessandro Selli 2016-07-14 09:08:31 EDT As of today, bug affects Fedora24, package nagios-4.0.8-2.fc24.x86_64.

Spuddy View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by Spuddy 07-20-2010, 06:02 PM #21 rfelsburg Member Registered: Nov 2008 Posts: 52 Checked 5 time periods. Read object config files okay...

Processing object config file '/etc/nagiosql/services/check_ups1.cfg'...

ls -l /var/run/nagios.pid ? Processing object config file '/etc/nagiosql/services/cftmain.cfg'... Please try the spec and patches which are contained in the source rpm file. Another useful test might be to run: (CODE) so you can see exactly what it's trying to do.

Processing object config file '/etc/nagiosql/services/check_naf_tsum_ORAVOL.cfg'... drwxr-xr-x root root cgi drwxr-xr-x root root Could you help me in solving this problem 0 Comment Question by:dedri Facebook Twitter LinkedIn https://www.experts-exchange.com/questions/27860438/nagios-is-not-starting-after-yum-update.htmlcopy LVL 3 Best Solution byjhheider (CODE) It's sounding like it can't write the PID file. Check This Out Processing object config file '/etc/nagiosql/hosts/bladeCenterTsum.cfg'...

Why do shampoo ingredient labels feature the the term "Aqua"? rfelsburg View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by rfelsburg 07-20-2010, 05:59 PM #20 Spuddy Member Registered: Jul 2010 Posts: 83 That's why i suggested a simple and fast workaround to change permission on the dir. –Pier May 31 '10 at 16:37 | show 1 more comment Your Answer draft saved Checking host escalations...

Recent . Advanced | Reports .