Hi,

monitorfile command line option for ldirectord seems to have the
same issue in parsing configuration option containing double quotes
as discussed in:
http://www.gossamer-threads.com/lists/linuxha/users/51507

I tried the following, which is just the same as what Simon
suggested for the same issue for checkcommand and fallbackcommand.

--- a/ldirectord/ldirectord.in  2008-09-02 07:11:43.000000000 +0900
+++ b/ldirectord/ldirectord.in  2008-11-07 14:45:18.902152000 +0900
@@ -1315,7 +1337,7 @@
                                        $vsrv{emailalertfreq} = $1;
                                } elsif  ($rcmd =~
/^emailalertstatus\s*=\s*(.*)/) {
                                        $vsrv{emailalertstatus} =
&parse_emailalertstatus($line, $1);
-                               } elsif  ($rcmd =~ /^monitorfile\s*=\s*(.*)/) {
+                               } elsif  ($rcmd =~
/^monitorfile\s*=\s*\"(.*)\"/ or $rcmd =~ /^monitorfile\s*=\s*(.*)/) {
                                        my $monitorfile = $1;
                                        unless (open(MONITORFILE,
">>$monitorfile") and close(MONITORFILE)) {
                                                &config_error($line,
"unable to open monitorfile $monitorfile: $!");


Would you consider to incorporate a fix for this?

Thanks,

- dxy
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to