zabbix-agent2/src/zabbix_server/actions.c
/******************************************************************************
 *                                                                            *
 * Function: is_escalation_event                                              *
 *                                                                            *
 * Purpose: to determine if event needs condition checks                      *
 *                                                                            *
 * Parameters: event - [IN] event to validate                                 *
 *                                                                            *
 * Return value: SUCCEED - escalations possible for event                     *
 *               FAIL    - escalations not possible for event                 *
 *                                                                            *
 ******************************************************************************/
is_escalation_event

Purpose: to determine if event needs condition checks

Parameters: event - [IN] event to validate

Return value: SUCCEED - escalations possible for event
FAIL    - escalations not possible for event
is_escalation_event Purpose : to determine if event needs condition checks Parameters : event - [ IN ] event to validate Return value : SUCCEED - escalations possible for event FAIL - escalations not possible for event
static int	is_escalation_event(const DB_EVENT *event)
{
	if (SUCCEED == is_recovery_event(event))
		return FAIL;
	if (0 != (event->flags & ZBX_FLAGS_DB_EVENT_NO_ACTION))
		return FAIL;
	if (0 == (event->flags & ZBX_FLAGS_DB_EVENT_CREATE))
		return FAIL;
	return SUCCEED;
}
static int is_escalation_event ( const DB_EVENT * event ) { if ( SUCCEED == is_recovery_event ( event ) ) return FAIL ; if ( 0 != ( event -> flags & ZBX_FLAGS_DB_EVENT_NO_ACTION ) ) return FAIL ; if ( 0 == ( event -> flags & ZBX_FLAGS_DB_EVENT_CREATE ) ) return FAIL ; return SUCCEED ; }
Function: is_escalation_event                                              
                                                                            
 Purpose: to determine if event needs condition checks                      
                                                                            
 Parameters: event - [IN] event to validate                                 
                                                                            
 Return value: SUCCEED - escalations possible for event                     
               FAIL    - escalations not possible for event
Function : is_escalation_event Purpose : to determine if event needs condition checks Parameters : event - [ IN ] event to validate Return value : SUCCEED - escalations possible for event FAIL - escalations not possible for event
/* OK events can't start escalations - skip them */