Host check timing

David Dyer-Bennet dd-b at dd-b.net
Fri Mar 19 17:36:00 CET 2010


On Thu, March 18, 2010 10:42, Marc Powell wrote:

> If you need to have more control over that then I'd suggest upgrading to
> nagios-3. Host check logic was greatly improved and more in line with how
> service checks are done.

Upgrading to 3 is being problematic.

I built 3.2.1 with default options except for specifying user nagios. 
I've updated my config to pass check-config.  I've put in the init.d
script.  And when I start it, I get

[1268949181] Nagios 3.2.1 starting... (PID=5575)
[1268949181] Local time is Thu Mar 18 16:53:01 CDT 2010
[1268949181] LOG VERSION: 2.0
[1268949181] Failed to obtain lock on file /var/run/nagios.pid: Permission
denied
[1268949181] Bailing out due to errors encountered while attempting to
daemonize...

I can't see why it's trying to access /var/run/nagios.pid; everything else
it's doing is in /usr/local/nagios.  I stepped through the startup steps
in the init.d script, and that error is being logged when it tries to
start the main nagios executable; it's not in the script itself.  I'm sure
it's my new executable; I removed the RPM install, and in stepping through
I typed the path by hand, definitely the new nagios executable.

I would guess that was "localstatedir" in config; but if so, the default
prefix is /usr/local, so it shouldn't end up accessing /var/run.  But I
don't see the actual config stuff that produces /var/run at all.  I
haven't looked into the source yet -- but I don't really think I should
have to to get it to build and run with default locations, either!

-- 
David Dyer-Bennet, dd-b at dd-b.net; http://dd-b.net/
Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/
Photos: http://dd-b.net/photography/gallery/
Dragaera: http://dragaera.info


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list