Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sam_hc_send(3) [centos man page]

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_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)
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Testing Monitoring Application

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)
Discussion started by: laila63
2 Replies

2. UNIX for Dummies Questions & Answers

health checks

Hello Anyone please help me with a health check script on HP-UX. (1 Reply)
Discussion started by: mahlathini
1 Replies

3. AIX

AIX Health Check

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)
Discussion started by: backslash
3 Replies

4. Red Hat

hp support package issue

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)
Discussion started by: maxlee24
0 Replies

5. AIX

AIX Memory & DISK IO

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)
Discussion started by: gmendiola
5 Replies

6. HP-UX

HP-UX Health Check

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)
Discussion started by: sai_2507
11 Replies

7. Shell Programming and Scripting

Script to check the health of a database

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)
Discussion started by: remo999
1 Replies