2.0b3 init script broken (patch)

frank ratty at they.org
Wed Apr 13 00:14:25 CEST 2005


Most of the vars in the init script were changed from b2->b3 to be more 
descriptive. But NagiosCGI -> NagiosCGIDir only got changed in the 
declaration part of the script and not in the function that uses it.

-frank


--- daemon-init.in-old	2005-04-12 14:59:31.000000000 -0700
+++ daemon-init.in	2005-04-12 14:58:59.000000000 -0700
@@ -38,8 +38,8 @@ status_nagios ()
  	fi

  	NagiosPID=`head -n 1 $NagiosRunFile`
-	if test -x $NagiosCGI/daemonchk.cgi; then
-		if $NagiosCGI/daemonchk.cgi -l $NagiosRunFile; then
+	if test -x $NagiosCGIDir/daemonchk.cgi; then
+		if $NagiosCGIDir/daemonchk.cgi -l $NagiosRunFile; then
  		        return 0
  		else
  			return 1


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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