Hitachi

For Linux(R) (x86) Systems HA Monitor Cluster Software


10.3 hamon_patrolstart (starts UAP monitoring)

Format

#include <HA_mon_uap.h>
long hamon_patrolstart(int signum,int *inf,void *opt);

Description

The hamon_patrolstart function issues a request to HA Monitor to start monitoring of the UAP.

For a UAP to be started, the program name specified in the name operand in the monitor-mode program environment definition must be set in the HAMON_UAPNAME environment variable.

If nouse is set in the HAMON_API_PATROL environment variable, the function returns with return code 0 without issuing a request to HA Monitor.

For details about the UAP environment variables, see 6.16.2 Specifying UAP environment variables.

Arguments whose values are to be set by the UAP

Arguments whose values are returned by HA Monitor

Return codes

Value

Meaning

0

HA Monitor will begin monitoring the UAP that issued this function.

-1

An error occurred. HA Monitor will not monitor the UAP that issued this function. If HA Monitor is already monitoring the UAP, it continues to monitor it. For details, see 10.5 List of detail codes below.

Notes