Hi,

I improved logging of the ping RA.

Now, when the ping command failed (rc=1), log is not output.
I want to output to the log which target failed.
When two or more targets exist (host_list="target1 target2 target3"), the 
failure target can be confirmed at once.
And, because the ping failure is not normal, the log level is more than warning.

I would like to hear any opinion.

Regards,
Yoshihiko SATO
diff -r fab8db4bbd27 extra/resources/ping
--- a/extra/resources/ping	Mon May 03 16:09:26 2010 +0200
+++ b/extra/resources/ping	Fri May 07 11:08:46 2010 +0900
@@ -233,7 +233,7 @@
 
 	case $rc in
 	    0) active=`expr $active + 1`;;
-	    1) : ocf_log debug "$host is inactive: $p_out";;
+	    1) ocf_log warn "$host is inactive: $p_out";;
 	    *) ocf_log err "Unexpected result for '$p_exe $p_args $OCF_RESKEY_options $host' $rc: $p_out";;
 	esac
     done
_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf

Reply via email to