<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
<br>
<div class="moz-cite-prefix">On 03/11/2015 10:39 AM, Kostiantyn
Ponomarenko wrote:<br>
</div>
<blockquote
cite="mid:CAEnTH0f1HAskMO3JoDcFCXwJGcyA0BWyxDUnD=Jz-dF7Q8pfEw@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>Thank you for your reply.</div>
<div>I realized that I wasn't clear in my question.</div>
<div>I wrote a fence agent by myself.</div>
<div>And I am in doubts what is the best way to make logging in
that agent.</div>
<div>I like the way OCF resource agents do they logging, but it
doesn't work for fence agents - environment variables are
different.</div>
<div>I am about to just write/append ( >> ) to Corosync's
log file, because I don't have any other ideas ... .</div>
<div>Would be appreciated for any ideas.</div>
</div>
</blockquote>
<br>
Currently, fence agents logs to stderr and syslog. <br>
<br>
If you write a new fence agent, take a look at our fencing library
for python agents. It should be able to simplify your agent too.
ideally, sent me your fence agent, so we can add it to upstream<br>
<br>
m,<br>
<br>
<br>
<br>
<br>
<blockquote
cite="mid:CAEnTH0f1HAskMO3JoDcFCXwJGcyA0BWyxDUnD=Jz-dF7Q8pfEw@mail.gmail.com"
type="cite">
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature">
<div dir="ltr">Thank you,
<div>Kostya</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Wed, Mar 11, 2015 at 11:18 AM, Marek
"marx" Grac <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:mgrac@redhat.com" target="_blank">mgrac@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb">
<div class="h5"><br>
On 03/06/2015 03:12 PM, Kostiantyn Ponomarenko wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi guys,<br>
<br>
Is there a way to use Corosync's log file for fence
agent?<br>
I was going to use the same logging system as in
resource agents, but I found that fence agents have a
different set of environment variables.<br>
So this string doesn't work:<br>
: ${OCF_FUNCTIONS=${OCF_ROOT}/resource.d/heartbeat/.ocf-shellfuncs}<br>
<br>
Another question - is it possible to use OSF standart
for fence agents (I suppose it is not, but want to
ensure).<br>
<br>
What is the common practice for logging in fence
agents (where to write logs)?<br>
<br>
</blockquote>
</div>
</div>
Hi,<br>
<br>
for fence agents, there is possibility to set logging
directly. Add "debug=file" and "verbose=1" (or on command
line --debug-file=FILE --verbose)<br>
<br>
m,<br>
<br>
_______________________________________________<br>
Users mailing list: <a moz-do-not-send="true"
href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
<a moz-do-not-send="true"
href="http://clusterlabs.org/mailman/listinfo/users"
target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
<br>
Project Home: <a moz-do-not-send="true"
href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a moz-do-not-send="true"
href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf"
target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a moz-do-not-send="true"
href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a>
<a class="moz-txt-link-freetext" href="http://clusterlabs.org/mailman/listinfo/users">http://clusterlabs.org/mailman/listinfo/users</a>
Project Home: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="moz-txt-link-freetext" href="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</a>
</pre>
</blockquote>
<br>
</body>
</html>