From nobody@FreeBSD.org  Mon Jun 22 12:48:49 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DA9CA106567D
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Jun 2009 12:48:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id AF2878FC21
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Jun 2009 12:48:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n5MCmnXr062103
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Jun 2009 12:48:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n5MCmmNn062102;
	Mon, 22 Jun 2009 12:48:48 GMT
	(envelope-from nobody)
Message-Id: <200906221248.n5MCmmNn062102@www.freebsd.org>
Date: Mon, 22 Jun 2009 12:48:48 GMT
From: Tony den Haan <tony@tuxick.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: nrpe2 rc script stop failing
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         135916
>Category:       ports
>Synopsis:       net-mgmt/nrpe2 rc script stop failing
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    wxs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 22 12:50:05 UTC 2009
>Closed-Date:    Mon Jun 29 22:37:06 UTC 2009
>Last-Modified:  Mon Jun 29 22:37:06 UTC 2009
>Originator:     Tony den Haan
>Release:        6.3
>Organization:
>Environment:
FreeBSD salsa.sp.nl 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #1: Thu Mar 20 16:15:32 CET 2008     root@gazpachoNEW.cherry.sp.nl:/usr/obj/usr/src/sys/GAZPACHO  i386
>Description:
#/usr/local/etc/rc.d/nrpe2 stop
nrpe2 not running? (check /var/spool/nagios/nrpe2.pid).

in /etc/rc.conf i only have nrpe2_enable="YES"

and in /usr/local/etc/nrpe2.cfg there is 

pid_file=/var/spool/nagios/nrpe2.pid

I see same problem on multiple systems.
>How-To-Repeat:
/usr/local/etc/rc.d/nrpe2 stop

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Jun 22 20:51:00 UTC 2009 
Responsible-Changed-Why:  
reassign to ports team. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135916 
Responsible-Changed-From-To: freebsd-ports-bugs->wxs 
Responsible-Changed-By: wxs 
Responsible-Changed-When: Tue Jun 23 03:26:08 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135916 
State-Changed-From-To: open->feedback 
State-Changed-By: wxs 
State-Changed-When: Sun Jun 28 13:59:38 UTC 2009 
State-Changed-Why:  
Pending maintainer patch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135916 

From: Wesley Shields <wxs@FreeBSD.org>
To: jarrod@netleader.com.au
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/135916: net-mgmt/nrpe2 rc script stop failing
Date: Sun, 28 Jun 2009 09:59:29 -0400

 ports/135916 was recently submitted for net-mgmt/nrpe2. The PR does not
 contain a patch but I am hoping that, as maintainer, you can come up
 with one. I'd be happy to commit whatever you come up with.
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/135916
 
 Thanks again for your work on these ports and your responsiveness to
 PRs.
 
 -- WXS

From: Jarrod Sayers <jarrod@netleader.com.au>
To: tony@tuxick.net, Wesley Shields <wxs@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/135916: net-mgmt/nrpe2 rc script stop failing
Date: Mon, 29 Jun 2009 06:50:31 +0930

 Hi Tony,
 
 This is a rather interesting one, as changes were made a while back to  
 resolve an error exactly like this by relocating it's .pid file into a  
 directory it could actually write to.  I'd be interested to know some  
 more details about your systems, such as what user nrpe2 runs as  
 (should be nagios) and what 'ls -al /var/spool/nagios' looks like.
 
 Another thing which may be helpful is confirming while it's running,  
 that the PID inside the .pid file matches what's running with a 'ps - 
 aux' and that the files last modified time-stamp matches the start  
 time of the process.  Are the other systems showing this error also  
 running 6.3-RELEASE?
 
 Jarrod.

From: Tony den Haan <tony@tuxick.net>
To: bug-followup@freebsd.org, tony@tuxick.net
Cc:  
Subject: Re: ports/135916: net-mgmt/nrpe2 rc script stop failing
Date: Mon, 29 Jun 2009 11:21:39 +0200

 Hi Jarrod,
 
 The new path thing was the clue, turned out updating from ports did not update 
 the rc script.
 Prolly user error then :)
 
 
 
 Tony
 
State-Changed-From-To: feedback->closed 
State-Changed-By: wxs 
State-Changed-When: Mon Jun 29 22:37:05 UTC 2009 
State-Changed-Why:  
User error. :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135916 
>Unformatted:
