SAM_START(3) Corosync Cluster Engine Programmer's Manual SAM_START(3)NAME
sam_start - Start health checking
SYNOPSIS
#include <corosync/sam.h>
cs_error_t sam_start (void);
DESCRIPTION
The sam_start function is used to start health checking of application. After calling this function, the active process needs to send
healthchecks within the registered time interval by calling sam_hc_send(3). If event driven healthchecking is configured by calling
sam_register(3), an internal thread will be created and send health check confirmations four times per time_interval.
Application must be registered by calling sam_register(3) before this function can be called.
An application can always stop health checking by calling the sam_stop(3) function.
RETURN VALUE
This call return CS_OK value if successful, otherwise and error is returned.
ERRORS
CS_ERR_BAD_HANDLE
component was not registered by calling sam_register(3) function.
SEE ALSO sam_hc_send(3), sam_stop(3), sam_register(3), sam_hc_callback_register(3)corosync Man Page 12/01/2009 SAM_START(3)
Check Out this Related Man Page
SAM_STOP(3) Corosync Cluster Engine Programmer's Manual SAM_STOP(3)NAME
sam_stop - Stop health checking
SYNOPSIS
#include <corosync/sam.h>
cs_error_t sam_stop (void);
DESCRIPTION
The sam_stop function is used to stop health checking of an active process. After calling this function, the application no longer should
send helathchecks. In the case of event driven healthchecking, the healthchecking thread will be stopped.
A process can always start health checking again by calling sam_start(3) function.
RETURN VALUE
This call return CS_OK value if successful, otherwise and error is returned.
ERRORS
CS_ERR_BAD_HANDLE
health checking was not started by calling sam_start(3) function.
SEE ALSO sam_start(3)
CS_ERR_TRY_AGAIN Resource temporarily unavailable
CS_ERR_INVALID_PARAM Invalid argument
CS_ERR_ACCESS Permission denied
CS_ERR_LIBRARY The connection failed
CS_ERR_INTERRUPT System call inturrupted by a signal
CS_ERR_NOT_SUPPORTED The requested protocol/functuality not supported
CS_ERR_MESSAGE_ERROR Incorrect auth message received
CS_ERR_NO_MEMORY Not enough memory to completed the requested task
corosync Man Page 12/01/2009 SAM_STOP(3)
Hi there,
I'm a newbie to using Solaris. I need to test an existing application that is monitoring applications/processes of its health and state. My task is to see if the application is doing the monitoring correctly. Everything is very new to me... please suggest some ideas of how I can... (2 Replies)
Hi,
I was trying to find from the function which is called by some other function but is it possiable by the calling funcation that who is calling me? For example
int function1()
{
// do something
return 0 ;
}
char function2()
{
// do something
function1() ; // is... (9 Replies)
Hi All,
I would like to know if there is a downloadable AIX health check script available from IBM that would print a report of a servers health status.
I've been working on a number of Sun Solaris servers and Sun provide a sun checkup script which can give you an ORI figure as well as a list... (3 Replies)
Dear all,
There wasn't any monitoring on our server except on the filesystem.
Therefore, I was wondering anything i should do on a daily basis to check on the server's status, health, hardware, or any other thing as a disaster prevention? Also, what command i should use to do that?
... (2 Replies)
Hi,
I have a server type(A group of AIX,HP-UX and Linux servers running with different appn) in which i need to do health check(memory,cpu,h/w etc). I am planning to automate the same. Please help me out in writing the same.
Thanks
Renjesh Raju (9 Replies)
Hi All,
I have created a server health checkup for 22 diferent ips and want to run my script from a single host server -->conduct health chekup on various servers--> Capture the deviations--> Get back all the deviations to the host server where the script was initiated.
Ive checkd out ssh... (3 Replies)
Hi folks
Howto do quick remote health check for SAP systems on UNIX commandline? To see if a SAP system is down or in maintenace mode (no login).
I am searching something like "tnsping"/Oracle for SAP systems. (2 Replies)
I am constantly getting request to run reports on our AIX server for system health (cpu, io, memory, etc) when users experience performance issues. We are using SolarWinds to monitor system health and it works great for cpu and disk space; however, I cant seem to get memory and io to work... (5 Replies)
Hi Experts,
I want to check health of hp-ux box.
Basically I want to check if there are possibilities of network/memory/cpu bottleneck?
Are there are any commands available other than glance in hp-ux for the same? (11 Replies)
Hello guys
I am about to write a script that is based on "The Linux Administration Handbook" The exercise is as follows:
Write a shell script to help monitor the health of the /etc/passwd file.
Find entries that have UID0
Find entries that have no password (needs /etc/shadow)
Find any... (4 Replies)
hi guys i hope you can help me with this situation.
i have 2 lpar with aix 7.1 and oracle 11gr2 in grid mode.
when i start nmon to check the current system health i notice that page fault are over 3000/s. than i have opened a case with ibm and they say that the problem is not paging nor... (10 Replies)
Hi,
I have iPlanet 7.0 process running on Solaris system
SunOS mymac15.10 Generic_150400-59 sun4v sparc sun4v.
The link here suggests to use the below command to get process runtime details / health inorder to understand if the iPlanet process is hung or good.
/usr/bin/ps -o "pid ppid... (4 Replies)
I am middle of writing health check scripts, can you pls share commands on how I can get cpu and Mem of top consuming process info at the moment?
Also can u suggest ideas on what all I can look for as a part do health check on red hat Linux server?
I searched on site before posting, but... (2 Replies)