<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear all ha-list members,<br>
<br>
I am trying to setup two availability checks on application layer
using heartbeat and pacemaker.<br>
To be more concrete I need 1 resource agent (ra) for openHAB and 1
for Kamailio SIP Proxy.<br>
<br>
<b>My setup:<br>
</b>
<blockquote>+ Debian 7.9 + Heartbeat + Pacemaker + more<br>
+ 2 Node Cluster with Hot-Standby Failover<br>
+ Active Cluster with clusterip, ip-monitoring, working failover
and services<br>
+ Copied kamailio ra into /usr/lib/ocf/resource.d/heartbeat, chmod
755 and 'crm ra list ocf heartbeat' finds it<br>
</blockquote>
<b>The plan:</b><br>
<br>
<u>openHAB</u><br>
<blockquote>My idea was to let heartbeat check for the availabilty
of openHAB's website (jettybased) or check if the the process is
up and running.<br>
<br>
I did not find a fitting resource agent. Is there a general ra in
which you would just have to insert the process name 'openhab'?<br>
</blockquote>
<u>Kamailio</u><br>
<blockquote>My idea was to let an ra send a SIP-request to kamailio
and check, if it gets an answer AND if it is the correct one.<br>
<br>
It seems like the ra <a class="moz-txt-link-freetext"
href="https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/kamailio">https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/kamailio</a>
does exactly what I want,<br>
but I do not really understand it. Is it plug and play? Do I have
to change values inside the code like users, the complete
meta-data or else?<br>
<br>
When I try to insert this agent (no changes) into pacemaker using
'crm configure primitive kamailio ocf:heartbeat:kamailio' it says:<br>
<blockquote>lrmadmin[4629]: 2015/12/19_16:11:40 ERROR:
lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a
reply message of rmetadata with function get_ret_from_msg.<br>
ERROR: ocf:heartbeat:kamailio: could not parse meta-data:<br>
ERROR: ocf:heartbeat:kamailio: could not parse meta-data:<br>
ERROR: ocf:heartbeat:kamailio: no such resource agent<br>
</blockquote>
</blockquote>
<b>The question:</b><u><br>
<br>
</u>Maybe you could give me some hints on what to do next. Perhaps
one of you is even already using the kamailio ra successfully or
checking a non-apache website?<br>
If I simply have to insert all my cluster data into the kamailio ra,
it should not throw this error, should it? Could have used a readme
for this ra though...<br>
If you need any data, I will provide it asap!<br>
<br>
<b><br>
</b><b>Thanks a lot to all who read this mail!</b><br>
<br>
Sebish<br>
ha-newbie, but not noobie ;)<br>
</body>
</html>