SAM_HC_SEND(3) Corosync Cluster Engine Programmer's Manual SAM_HC_SEND(3)NAME
sam_hc_send - Send health check confirmation
SYNOPSIS
#include <corosync/sam.h>
cs_error_t sam_hc_send (void);
DESCRIPTION
The sam_hc_send function is used to send healthcheck confirmation from the applicatoin. This function should be called reguarly when con-
figured for application driven healthchecking, otherwise recovery actoin will be taken.
When using event driven healthchecking, this function should not be used.
RETURN VALUE
This call return CS_OK value if successful, otherwise and error is returned.
ERRORS
CS_ERR_BAD_HANDLE
health checking is not in running state (sam_start(3) has not been executed) or function is called after stop/finalization of SAM.
SEE ALSO sam_start(3), sam_stop(3), sam_hc_callback_register(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_HC_SEND(3)
Check Out this Related Man Page
SAM_HC_CALLBACK_REGISTER(3) Corosync Cluster Engine Programmer's Manual SAM_HC_CALLBACK_REGISTER(3)NAME
sam_hc_callback_register - Register health check callback
SYNOPSIS
#include <corosync/sam.h>
cs_error_t sam_hc_callback_register (sam_hc_callback_t cb);
DESCRIPTION
The sam_hc_callback_register function is used to register a user provided healthcheck callback. After calling of this function, the SAM is
switched from application driven healthchecking to event driven healthchecking. In this mode, sam_hc_send(3) does not need to be executed.
The parameter cb is callback function of type sam_hc_callback_t defined as:
typedef int (*sam_hc_callback_t)(void);
This function will be regulargly called and must return 0 if the process is functioning normally, or -1 if the process is executing abnor-
mally. When -1 is returned, the SAM server execute the registered recovery policy.
A value of NULL can be passed into this function to switch into application driven healthchecking. cb to NULL.
RETURN VALUE
This call return CS_OK value if successful, otherwise and error is returned.
ERRORS
CS_ERR_BAD_HANDLE
SAM was not initialized and registered or health checking is in running state
CS_ERR_LIBRARY
internal library call failed. This can occur during fork() or pipe () system calls and the errno variable can be read to retrieve
more information.
SEE ALSO sam_start(3), sam_stop(3), sam_hc_send(3), sam_register(3),
corosync Man Page 12/01/2009 SAM_HC_CALLBACK_REGISTER(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 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)
hi all, and pludi:
as command hpasmcli for linux server to check health, any such a same command to check hp server using windows server 2003 OS health ? (0 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)
need a script to check the health of a session server database. It must read the data base and send an alert if the database is unavailable. If its unavailable, we will want to bring down the database listener to force failover.
can u guyz help me in doing this. what information do i need... (1 Reply)