The idea is: there is such a file:
Interworking - unspecified,127,1,2016/04/06 17:40,EMPTY,RNC1 Call rejected,21,2,2016/04/06 17:40,EMPTY,RNC1 Call rejected,21,2,2016/04/06 17:40,EMPTY,RNC2 User alerting - no answer,19,176,2016/04/06 17:40,EMPTY,RNC3 No circuit/channel available,34,2,2016/04/06 17:40,EMPTY,RNC4 Call rejected,21,6,2016/04/06 17:40,EMPTY,RNC5
It is necessary to calculate the sum of the values of the third variable from the lines in which the second variable is X (For example, 21). Further, when the maximum value of the third variable exceeds the specified value (for example, it should not exceed 10), all the lines involved in the calculation are sent to the administrator by e-mail.