Subversion Repositories ALCASAR

Rev

Rev 2510 | Rev 2597 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
2470 richard 1
sqlcounter dailycounter {
2
	sql_module_instance = sql
3
	counter_name = Daily-Session-Time
4
	check_name = Max-Daily-Session
5
	reply_name = Session-Timeout
6
	key = User-Name
7
	reset = daily
8
	$INCLUDE ${modconfdir}/sql/counter/mysql/${.:instance}.conf
9
}
10
 
11
sqlcounter monthlycounter {
12
	sql_module_instance = sql
13
	counter_name = Monthly-Session-Time
14
	check_name = Max-Monthly-Session
15
	reply_name = Session-Timeout
16
	key = User-Name
17
	reset = monthly
18
	$INCLUDE ${modconfdir}/sql/counter/mysql/${.:instance}.conf
19
}
20
 
21
sqlcounter noresetcounter {
22
	sql_module_instance = sql
23
	counter_name = Max-All-Session-Time
24
	check_name = Max-All-Session
25
	key = User-Name
26
	reset = never
27
	$INCLUDE ${modconfdir}/sql/counter/mysql/${.:instance}.conf
28
}
2510 tom.houday 29
 
30
sqlcounter expire_on_login {
31
	sql_module_instance = sql
32
	counter_name = Alcasar-Expire-After-Initial-Login
33
	check_name = Alcasar-Expire-After
34
	key = User-Name
35
	reset = never
36
	$INCLUDE ${modconfdir}/sql/counter/mysql/${.:instance}.conf
37
}
2513 tom.houday 38
 
39
sqlcounter counterCoovaChilliMaxTotalOctetsDaily {
40
	sql_module_instance = sql
41
	counter_name = CoovaChilli-Max-Total-Octets-Daily
42
	check_name = CoovaChilli-Max-Total-Octets-Daily
43
	counter_type = data
44
	reply_name = CoovaChilli-Max-Total-Octets
45
	sqlmod-inst = sql
46
	key = User-Name
47
	reset = daily
48
	query = "SELECT IFNULL((SUM(AcctInputOctets + AcctOutputOctets)),0) FROM radacct WHERE username='%{${key}}' AND UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime > '%%b'"
49
}
50
 
51
sqlcounter counterCoovaChilliMaxTotalOctetsMonthly {
52
	sql_module_instance = sql
53
	counter_name = CoovaChilli-Max-Total-Octets-Monthly
54
	check_name = CoovaChilli-Max-Total-Octets-Monthly
55
	counter_type = data
56
	reply_name = CoovaChilli-Max-Total-Octets
57
	sqlmod-inst = sql
58
	key = User-Name
59
	reset = monthly
60
	query = "SELECT IFNULL((SUM(AcctInputOctets + AcctOutputOctets)),0)FROM radacct WHERE username='%{${key}}' AND UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime > '%%b'"
61
}