SM_STAT - Check Status
- struct sm_name { string mon_name<SM_MAXSTRLEN>; };
- struct sm_stat_res { res res_stat; int state; };
- sm_stat_res SM_STAT(struct sm_name) = 1;
This procedure tests to see whether the NSM agrees to monitor the given host.
Implementations should not rely on this procedure being operative. In many current implementations of the NSM it will always return a "STAT_FAIL" status.
When the procedure returns, "sm_stat_res.sm_stat" will be set to one of the following values:
- STAT_SUCC
- The NSM will monitor the given host. "sm_stat_res.state" contains the state of the NSM.
- STAT_FAIL
- The NSM is not be able to monitor the host.
Contents | Next section | Index |