zabbix-agent2/src/zabbix_server/service/service_actions.c
/******************************************************************************
 *                                                                            *
 * Function: service_update_match_condition                                   *
 *                                                                            *
 * Purpose: match service update by the specified condition                   *
 *                                                                            *
 ******************************************************************************/
service_update_match_condition

Purpose: match service update by the specified condition
service_update_match_condition Purpose : match service update by the specified condition
static const char	*service_update_match_condition(const zbx_service_update_t *update,
		const zbx_service_action_condition_t *condition)
{
	int	ret;
	switch (condition->conditiontype)
	{
		case CONDITION_TYPE_SERVICE:
			ret = condition_match_service(condition, update);
			break;
		case CONDITION_TYPE_SERVICE_NAME:
			ret = condition_match_service_name(condition, update);
			break;
		case CONDITION_TYPE_EVENT_TAG:
			ret = condition_match_service_tag(condition, update);
			break;
		case CONDITION_TYPE_EVENT_TAG_VALUE:
			ret = condition_match_service_tag_value(condition, update);
			break;
		default:
			THIS_SHOULD_NEVER_HAPPEN;
			ret = FAIL;
	}
	return SUCCEED == ret ? "1" : "0";
}
static const char * service_update_match_condition ( const zbx_service_update_t * update , const zbx_service_action_condition_t * condition ) { int ret ; switch ( condition -> conditiontype ) { case CONDITION_TYPE_SERVICE : ret = condition_match_service ( condition , update ) ; break ; case CONDITION_TYPE_SERVICE_NAME : ret = condition_match_service_name ( condition , update ) ; break ; case CONDITION_TYPE_EVENT_TAG : ret = condition_match_service_tag ( condition , update ) ; break ; case CONDITION_TYPE_EVENT_TAG_VALUE : ret = condition_match_service_tag_value ( condition , update ) ; break ; default : THIS_SHOULD_NEVER_HAPPEN ; ret = FAIL ; } return SUCCEED == ret ? " " : " " ; }
Function: service_update_match_condition                                   
                                                                            
 Purpose: match service update by the specified condition
Function : service_update_match_condition Purpose : match service update by the specified condition