Hello Praveen,

Appreciate for all the help!

I have a new issue when, I copied the amfpm from one working machine to the
another where opensaf was installed. When tried, amfpm -h it gives the
below error on the new machine. I have tried from both /usr/local/sbin and
/usr/sbin. /usr/sbin works fine for me though.

[root@PL-4 dev]# amfpm -h
/usr/local/sbin/amfpm: line 99: cd:
/home/dev/opensaf-4.3.0/osaf/tools/safamf/amfpm: No such file or directory
gcc: amfpm-amf_pm.o: No such file or directory

1. How and where do we get this, amfpm? Or is it needs to be locally
compiled in every machine where opensaf is installed? Why it looks for gcc
on the new machine when it works fine on a old machine? Can it be
automatically generated when we generate the rpms? I dont see any
instructions in README.

2. I have active monitor failed issue in this new machine where the help
command is failing. But both help and active monitoring works fine in the
old machine. In the face of active monitor issue, how do we figure
out whether this is because of the amfpm issue or the PID file path issue?
Can we get more logs specifying this exact cause. Otherwise debugging with
these two variables is tricky.

3. Has the amfpm usage in 4.4 version changed to lt-amfpm in the amstart
and amstop command configuration? I got confused with the -h print from the
new version 4.4. What are the changes in 4.4 version then?

Thanks
Dev



On Tue, May 27, 2014 at 11:39 PM, praveen malviya <
[email protected]> wrote:

>  There is option in amfpm to give PID file path:
> amfpm -h
>
> -f, --file=FILE      Path to pidfile
>
> Thanks,
> Praveen
>
>
>
> On 28-May-14 12:04 PM, opensaf dev wrote:
>
> Thanks a lot Praveen. It worked except one case where I have a constraint
> on the PID file location. I am using a PID file location other then
> /var/run under the particular user /var/run/UserX/x.pid. In this case I
> have the active monitor failed issue after couple of seconds the component
> being instantiated.
>
>  Is there a way we can get rid of this?
>
>  Thanks
> Dev
>
>
> On Wed, May 21, 2014 at 9:36 PM, praveen malviya <
> [email protected]> wrote:
>
>> Hi,
>> For passive monitoring configuration looks like this:
>>
>>  <attr>
>> <name>saAmfCtRelPathAmStartCmd</name>
>>                         <value>amfpm</value>
>>                 </attr>
>>                 <attr>
>> <name>saAmfCtDefAmStartCmdArgv</name>
>>                         <value>-a -r comprestart</value>
>>                 </attr>
>>                 <attr>
>> <name>saAmfCtRelPathAmStopCmd</name>
>>                         <value>amfpm</value>
>>                 </attr>
>>                 <attr>
>> <name>saAmfCtDefAmStopCmdArgv</name>
>>                         <value>-o</value>
>>                 </attr>
>>
>> Please check PID file path and amfpm should be a link to
>> /usr/local/sbin/amfpm in the path given in node bundle.
>> Please check the amfpm -help for more
>>
>> usage: amfpm --start | --stop [OPTIONS] [DN]
>>
>> Start/stop AMF passive monitoring of an AMF component.
>>
>> -a, --start          Start passive monitoring
>> -f, --file=FILE      Path to pidfile
>> -o, --stop           Stop passive monitoring
>> -p, --pid=PID        PID
>> -r, --recrec=RECREC  Recommended recovery
>>
>> Valid recommended recovery names:
>>    norec (default), comprestart, compfailover, nodeswitchover
>>    nodefailover, nodefailfast, clusterreset, apprestart, containerrestart
>>
>> If no DN is specified, the environment variable SA_AMF_COMPONENT_NAME is
>> used.
>> If no pidfile or PID is specified, the pidfile name is
>> /var/run/<basename>.pid
>> basename is the RDN attribute value of the DN.
>> for example DN "safComp=snmpd,safSu=1,safSg=2N,safApp=net-snmp" gives
>> basename snmpd
>> The command will wait forever for the pidfile to appear in the file
>> system.
>> AMF timeouts (e.g. saAmfCtDefClcCliTimeout) solves the "forever" problem.
>>
>> Thanks,
>> Praveen
>>
>>
>> On 22-May-14 9:28 AM, opensaf dev wrote:
>>
>>>  Hi,
>>>
>>> I am trying to create a non-sa-aware component for a third party daemon
>>> like snmpd example using amfpm. However, as soon as the SI is being
>>> assigned active, I am getting the below error.
>>>
>>>  *"Component faulted due to ''activeMonitorFailed".* I tried to get more
>>>
>>> logs but with info level on for the amfnd only the above line was
>>> displayed.
>>>
>>> Anybody has faced similar issues, anything obvious missed or what can be
>>> the potential causes for this error.
>>>
>>> Appreciate for any help.
>>>
>>> Thanks
>>> Dev
>>>
>>> ------------------------------------------------------------------------------
>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>> Get unparalleled scalability from the best Selenium testing platform
>>> available
>>> Simple to use. Nothing to install. Get started now for free."
>>> http://p.sf.net/sfu/SauceLabs
>>> _______________________________________________
>>> Opensaf-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/opensaf-users
>>>
>>
>>
>
>
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Opensaf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-users

Reply via email to