<div dir="ltr">Hi Marek,<div><br></div><div>The agent I wrote is too much specific for me.</div><div>There is no use outside of it.</div><div>And it basically as simple as Resource Agent.</div></div><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 18, 2015 at 5:45 PM, Marek "marx" Grac <span dir="ltr"><<a 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 bgcolor="#FFFFFF" text="#000000">
Hi,<span class=""><br>
<br>
<br>
<div>On 03/11/2015 10:39 AM, Kostiantyn
Ponomarenko wrote:<br>
</div>
<blockquote 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></span>
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<span class="HOEnZb"><font color="#888888"><br>
<br>
m,</font></span><div><div class="h5"><br>
<br>
<br>
<br>
<br>
<blockquote type="cite">
<div class="gmail_extra"><br clear="all">
<div>
<div>
<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 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>
<div><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 href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a 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 href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a>
<a href="http://clusterlabs.org/mailman/listinfo/users" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a>
</pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div><br></div>