From: Jamie C. <jca...@we...> - 2008-05-05 18:08:08
|
On May 5, 2008, at 1:53 AM, "Frank Van Damme" <fra...@gm...> wrote: > On Thu, May 1, 2008 at 12:14 AM, Jamie Cameron <jca...@we...> > wrote: >> On 30/Apr/2008 00:59 Frank Van Damme wrote .. >>> Thanks. The function now gives results as expeced when I try it >>> isolated from Webmin; however in the web gui the resource is still >>> indicated "down". Anything else I have to do besides restarting >>> Webmin >>> or refreshing modules? >> >> What that function does is compare the output of the ifconfig >> command with the IPs of the heartbeat services defined. If you run >> a command like : >> >> ifconfig | grep "inet addr:" >> >> does it find the IPs of your services? > > Yes. > > I found the problem though: the argument passed to the function in > edit_res.cgi is an array of ip's *with the netmask added*, like > 10.1.2.3/24. The regex on line 205 should filter this out: > > $ip =~ s/\///; > > It obviously doesn't and should be changed to > > $ip =~ s/\/.*//; > > The heartbeat module now shows my resource as Up. > > Thanks! I will include that fix in the next Webmin release. |