influx is tested and works
This commit is contained in:
		
							parent
							
								
									85a86e7592
								
							
						
					
					
						commit
						9f5c7f942c
					
				
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							|  | @ -370,7 +370,7 @@ | |||
|           "measurement": "clients", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "SELECT last(\"ip\") AS \"Address\", last(\"note\") AS \"Note\", last(\"network\") AS \"Network\" FROM \"clients\" WHERE (\"is_wired\" = 'false' AND \"ap_mac\" =~ /^$AP$/) AND $timeFilter GROUP BY \"mac\", \"oui\", \"channel\", \"radio\", \"name\", \"ap_mac\"", | ||||
|           "query": "SELECT last(\"ip\") AS \"Address\", last(\"note\") AS \"Note\", last(\"network\") AS \"Network\" FROM \"clients\" WHERE (\"is_wired\" = 'false' AND \"ap_mac\" =~ /^${AP:regex}$/) AND $timeFilter GROUP BY \"mac\", \"oui\", \"channel\", \"radio\", \"name\", \"ap_mac\"", | ||||
|           "rawQuery": false, | ||||
|           "refId": "A", | ||||
|           "resultFormat": "table", | ||||
|  | @ -470,7 +470,7 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -702,7 +702,7 @@ | |||
|           "measurement": "clients", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "SELECT last(\"ip\") AS \"Address\", last(\"note\") AS \"Note\", last(\"network\") AS \"Network\" FROM \"clients\" WHERE (\"is_wired\" != 'false' AND \"name\" =~ /^$Client$/ AND \"site_name\" =~ /${Site:regex}$/) AND $timeFilter GROUP BY \"sw_port\", \"mac\", \"oui\", \"use_fixedip\", \"name\"", | ||||
|           "query": "SELECT last(\"ip\") AS \"Address\", last(\"note\") AS \"Note\", last(\"network\") AS \"Network\" FROM \"clients\" WHERE (\"is_wired\" != 'false' AND \"name\" =~ /^${Client:regex}$/ AND \"site_name\" =~ /${Site:regex}$/) AND $timeFilter GROUP BY \"sw_port\", \"mac\", \"oui\", \"use_fixedip\", \"name\"", | ||||
|           "rawQuery": false, | ||||
|           "refId": "A", | ||||
|           "resultFormat": "table", | ||||
|  | @ -790,13 +790,13 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wired$/" | ||||
|               "value": "/^${Wired:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "sw_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -861,7 +861,7 @@ | |||
|           "measurement": "clients", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND (\"site_name\" =~ /${Site:regex}$/ AND \"name\" =~ /^$Wired$/ AND sw_name =~ /$Switch$/ ) GROUP BY \"hostname\"", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND (\"site_name\" =~ /${Site:regex}$/ AND \"name\" =~ /^${Wired:regex}$/ AND sw_name =~ /${Switch:regex}$/ ) GROUP BY \"hostname\"", | ||||
|           "rawQuery": true, | ||||
|           "refId": "A", | ||||
|           "resultFormat": "time_series", | ||||
|  | @ -904,7 +904,7 @@ | |||
|           "hide": false, | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND (\"site_name\" =~ /${Site:regex}$/ AND \"name\" =~ /^$Wireless$/ AND ap_name =~ /$AP$/ ) GROUP BY \"channel\"", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND (\"site_name\" =~ /${Site:regex}$/ AND \"name\" =~ /^${Wireless:regex}$/ AND ap_name =~ /${AP:regex}$/ ) GROUP BY \"channel\"", | ||||
|           "rawQuery": true, | ||||
|           "refId": "B", | ||||
|           "resultFormat": "time_series", | ||||
|  | @ -986,7 +986,7 @@ | |||
|           "measurement": "clients", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "SELECT count(distinct(\"hostname\")) FROM \"clients\" WHERE  $timeFilter  AND \"ap_name\" =~ /$AP$/ AND \"site_name\" =~ /${Site:regex}$/  AND \"name\" =~ /^$Wireless$/ GROUP BY radio_proto", | ||||
|           "query": "SELECT count(distinct(\"hostname\")) FROM \"clients\" WHERE  $timeFilter  AND \"ap_name\" =~ /${AP:regex}$/ AND \"site_name\" =~ /${Site:regex}$/  AND \"name\" =~ /^${Wireless:regex}$/ GROUP BY radio_proto", | ||||
|           "rawQuery": true, | ||||
|           "refId": "A", | ||||
|           "resultFormat": "time_series", | ||||
|  | @ -1074,7 +1074,7 @@ | |||
|           "measurement": "clients", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND site_name =~ /${Site:regex}$/ AND ((\"name\" =~ /^$Wireless$/ AND \"ap_name\" =~ /^$AP$/) OR (\"name\" =~ /^$Wired$/ AND \"sw_name\" =~ /$Switch$/ )) GROUP BY \"oui\"", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND site_name =~ /${Site:regex}$/ AND ((\"name\" =~ /^${Wireless:regex}$/ AND \"ap_name\" =~ /^${AP:regex}$/) OR (\"name\" =~ /^${Wired:regex}$/ AND \"sw_name\" =~ /${Switch:regex}$/ )) GROUP BY \"oui\"", | ||||
|           "rawQuery": true, | ||||
|           "refId": "A", | ||||
|           "resultFormat": "time_series", | ||||
|  | @ -1160,7 +1160,7 @@ | |||
|           "measurement": "clients", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND site_name =~ /${Site:regex}$/ AND ((\"name\" =~ /^$Wireless$/ AND \"ap_name\" =~ /^$AP$/) OR (\"name\" =~ /^$Wired$/ AND \"sw_name\" =~ /$Switch$/ )) GROUP BY \"os_class\", \"os_name\", \"dev_cat\", \"dev_family\", \"dev_id\"", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND site_name =~ /${Site:regex}$/ AND ((\"name\" =~ /^${Wireless:regex}$/ AND \"ap_name\" =~ /^${AP:regex}$/) OR (\"name\" =~ /^${Wired:regex}$/ AND \"sw_name\" =~ /${Switch:regex}$/ )) GROUP BY \"os_class\", \"os_name\", \"dev_cat\", \"dev_family\", \"dev_id\"", | ||||
|           "rawQuery": true, | ||||
|           "refId": "A", | ||||
|           "resultFormat": "time_series", | ||||
|  | @ -1282,7 +1282,7 @@ | |||
|           "measurement": "clients", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "SELECT derivative(sum(\"wired-rx_bytes\"), 1s) AS \"Rx\", derivative(sum(\"wired-tx_bytes\"), 1s) AS \"Tx\" FROM \"clients\" WHERE (\"name\" !~ /^amazon-|camera|cam$/ AND \"name\" =~ /^$Wired$/ AND \"site_name\" =~ /^${Site:regex}$/ AND \"sw_name\" =~ /^$Switch$/) AND $timeFilter GROUP BY time($__interval),\"name\",\"mac\"fill(none)", | ||||
|           "query": "SELECT derivative(sum(\"wired-rx_bytes\"), 1s) AS \"Rx\", derivative(sum(\"wired-tx_bytes\"), 1s) AS \"Tx\" FROM \"clients\" WHERE (\"name\" !~ /^amazon-|camera|cam$/ AND \"name\" =~ /^${Wired:regex}$/ AND \"site_name\" =~ /^${Site:regex}$/ AND \"sw_name\" =~ /^${Switch:regex}$/) AND $timeFilter GROUP BY time($__interval),\"name\",\"mac\"fill(none)", | ||||
|           "rawQuery": false, | ||||
|           "refId": "A", | ||||
|           "resultFormat": "time_series", | ||||
|  | @ -1346,7 +1346,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wired$/" | ||||
|               "value": "/^${Wired:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -1358,7 +1358,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "sw_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -1560,13 +1560,13 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -1713,7 +1713,7 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -1725,7 +1725,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -1880,7 +1880,7 @@ | |||
|           "measurement": "clients", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "SELECT \"ip\" FROM \"clients\" WHERE \"use_fixedip\" != 'true' AND \"name\" =~ /^$Client$/ AND (\"ap_name\" =~ /^$AP$/ OR \"sw_name\" =~ /$Switch$/) AND \"site_name\" =~ /^${Site:regex}$/ AND $timeFilter GROUP BY \"name\"", | ||||
|           "query": "SELECT \"ip\" FROM \"clients\" WHERE \"use_fixedip\" != 'true' AND \"name\" =~ /^${Client:regex}$/ AND (\"ap_name\" =~ /^${AP:regex}$/ OR \"sw_name\" =~ /${Switch:regex}$/) AND \"site_name\" =~ /^${Site:regex}$/ AND $timeFilter GROUP BY \"name\"", | ||||
|           "rawQuery": false, | ||||
|           "refId": "A", | ||||
|           "resultFormat": "time_series", | ||||
|  | @ -1898,13 +1898,13 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -1934,7 +1934,7 @@ | |||
|           "measurement": "clients", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "SELECT \"ip\" FROM \"clients\" WHERE \"use_fixedip\" != 'true' AND \"name\" =~ /^$Client$/ AND (\"ap_name\" =~ /^$AP$/ OR \"sw_name\" =~ /$Switch$/) AND \"site_name\" =~ /^${Site:regex}$/ AND $timeFilter GROUP BY \"name\"", | ||||
|           "query": "SELECT \"ip\" FROM \"clients\" WHERE \"use_fixedip\" != 'true' AND \"name\" =~ /^${Client:regex}$/ AND (\"ap_name\" =~ /^${AP:regex}$/ OR \"sw_name\" =~ /${Switch:regex}$/) AND \"site_name\" =~ /^${Site:regex}$/ AND $timeFilter GROUP BY \"name\"", | ||||
|           "rawQuery": false, | ||||
|           "refId": "B", | ||||
|           "resultFormat": "time_series", | ||||
|  | @ -1952,13 +1952,13 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wired$/" | ||||
|               "value": "/^${Wired:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "sw_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -2179,13 +2179,13 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wired$/" | ||||
|               "value": "/^${Wired:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "sw_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -2291,7 +2291,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -2303,7 +2303,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -2426,7 +2426,7 @@ | |||
|           "measurement": "clients", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "SELECT non_negative_derivative(sum(\"wired-rx_bytes\"), 1s) AS \"Rx\", non_negative_derivative(sum(\"wired-tx_bytes\"), 1s) AS \"Tx\" FROM \"clients\" WHERE \"name\" =~ /camera|cam$/ AND \"site_name\" =~ /^${Site:regex}$/ AND (\"sw_name\" =~ /^$Switch$/ OR \"ap_name\" =~ /^$AP$/) AND $timeFilter GROUP BY time($__interval), \"name\", \"mac\"", | ||||
|           "query": "SELECT non_negative_derivative(sum(\"wired-rx_bytes\"), 1s) AS \"Rx\", non_negative_derivative(sum(\"wired-tx_bytes\"), 1s) AS \"Tx\" FROM \"clients\" WHERE \"name\" =~ /camera|cam$/ AND \"site_name\" =~ /^${Site:regex}$/ AND (\"sw_name\" =~ /^${Switch:regex}$/ OR \"ap_name\" =~ /^${AP:regex}$/) AND $timeFilter GROUP BY time($__interval), \"name\", \"mac\"", | ||||
|           "rawQuery": true, | ||||
|           "refId": "A", | ||||
|           "resultFormat": "time_series", | ||||
|  | @ -2496,13 +2496,13 @@ | |||
|               "condition": "AND", | ||||
|               "key": "sw_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "OR", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -2639,13 +2639,13 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -2789,13 +2789,13 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -2938,13 +2938,13 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -3086,13 +3086,13 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -3241,13 +3241,13 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -3390,13 +3390,13 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -3546,13 +3546,13 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -3696,13 +3696,13 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -3845,13 +3845,13 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -3995,13 +3995,13 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -4146,13 +4146,13 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -4301,13 +4301,13 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Wireless$/" | ||||
|               "value": "/^${Wireless:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -4396,14 +4396,14 @@ | |||
|         "allValue": null, | ||||
|         "current": {}, | ||||
|         "datasource": "${DS_UNIFI_POLLER}", | ||||
|         "definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"site_name\"  WHERE source =~ /^$Controller$/ ", | ||||
|         "definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"site_name\"  WHERE source =~ /^${Controller:regex}$/ ", | ||||
|         "hide": 0, | ||||
|         "includeAll": true, | ||||
|         "label": null, | ||||
|         "multi": true, | ||||
|         "name": "Site", | ||||
|         "options": [], | ||||
|         "query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"site_name\"  WHERE source =~ /^$Controller$/ ", | ||||
|         "query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"site_name\"  WHERE source =~ /^${Controller:regex}$/ ", | ||||
|         "refresh": 1, | ||||
|         "regex": "", | ||||
|         "skipUrlSync": false, | ||||
|  | @ -4462,14 +4462,14 @@ | |||
|         "allValue": ".*", | ||||
|         "current": {}, | ||||
|         "datasource": "${DS_UNIFI_POLLER}", | ||||
|         "definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^${Site:regex}$/ AND ap_name =~ /^$AP$/ AND is_wired=false", | ||||
|         "definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^${Site:regex}$/ AND ap_name =~ /^${AP:regex}$/ AND is_wired=false", | ||||
|         "hide": 0, | ||||
|         "includeAll": true, | ||||
|         "label": null, | ||||
|         "multi": true, | ||||
|         "name": "Wireless", | ||||
|         "options": [], | ||||
|         "query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^${Site:regex}$/ AND ap_name =~ /^$AP$/ AND is_wired=false", | ||||
|         "query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^${Site:regex}$/ AND ap_name =~ /^${AP:regex}$/ AND is_wired=false", | ||||
|         "refresh": 1, | ||||
|         "regex": "", | ||||
|         "skipUrlSync": false, | ||||
|  | @ -4484,14 +4484,14 @@ | |||
|         "allValue": ".*", | ||||
|         "current": {}, | ||||
|         "datasource": "${DS_UNIFI_POLLER}", | ||||
|         "definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^${Site:regex}$/ AND sw_name =~ /^$Switch$/ AND is_wired=true", | ||||
|         "definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^${Site:regex}$/ AND sw_name =~ /^${Switch:regex}$/ AND is_wired=true", | ||||
|         "hide": 0, | ||||
|         "includeAll": true, | ||||
|         "label": null, | ||||
|         "multi": true, | ||||
|         "name": "Wired", | ||||
|         "options": [], | ||||
|         "query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^${Site:regex}$/ AND sw_name =~ /^$Switch$/ AND is_wired=true", | ||||
|         "query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^${Site:regex}$/ AND sw_name =~ /^${Switch:regex}$/ AND is_wired=true", | ||||
|         "refresh": 1, | ||||
|         "regex": "", | ||||
|         "skipUrlSync": false, | ||||
|  |  | |||
|  | @ -219,7 +219,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -334,7 +334,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -449,7 +449,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -564,7 +564,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -751,7 +751,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -857,7 +857,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -972,7 +972,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -1087,7 +1087,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -1202,7 +1202,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -1317,7 +1317,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -1432,7 +1432,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -1547,7 +1547,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -1702,7 +1702,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -1887,7 +1887,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -1993,7 +1993,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -2109,7 +2109,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 } | ||||
|               ] | ||||
|             } | ||||
|  | @ -2218,7 +2218,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 } | ||||
|               ] | ||||
|             } | ||||
|  | @ -2327,7 +2327,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 } | ||||
|               ] | ||||
|             } | ||||
|  | @ -2436,7 +2436,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 } | ||||
|               ] | ||||
|             } | ||||
|  | @ -2545,7 +2545,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -2660,7 +2660,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -2860,7 +2860,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -2963,7 +2963,7 @@ | |||
|               "measurement": "subsystems", | ||||
|               "orderByTime": "ASC", | ||||
|               "policy": "default", | ||||
|               "query": "SELECT max(\"rx_bytes-r\") AS \"Bytes RX\", max(\"tx_bytes-r\") AS \"Bytes TX\" FROM \"subsystems\" WHERE (\"site_name\" =~ /^$site$/) AND $timeFilter GROUP BY time($__interval), \"subsystem\" fill(null)", | ||||
|               "query": "SELECT max(\"rx_bytes-r\") AS \"Bytes RX\", max(\"tx_bytes-r\") AS \"Bytes TX\" FROM \"subsystems\" WHERE (\"site_name\" =~ /^${Site:regex}$/) AND $timeFilter GROUP BY time($__interval), \"subsystem\" fill(null)", | ||||
|               "rawQuery": true, | ||||
|               "refId": "A", | ||||
|               "resultFormat": "time_series", | ||||
|  | @ -3009,7 +3009,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 } | ||||
|               ] | ||||
|             } | ||||
|  | @ -3018,7 +3018,7 @@ | |||
|           "timeFrom": null, | ||||
|           "timeRegions": [], | ||||
|           "timeShift": null, | ||||
|           "title": "Site $site Data Transfer", | ||||
|           "title": "Site ${Site:regex} Data Transfer", | ||||
|           "tooltip": { | ||||
|             "shared": true, | ||||
|             "sort": 2, | ||||
|  | @ -3199,7 +3199,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 } | ||||
|               ] | ||||
|             } | ||||
|  | @ -3208,7 +3208,7 @@ | |||
|           "timeFrom": null, | ||||
|           "timeRegions": [], | ||||
|           "timeShift": null, | ||||
|           "title": "Site $site Client Counts", | ||||
|           "title": "Site ${Site:regex} Client Counts", | ||||
|           "tooltip": { | ||||
|             "shared": true, | ||||
|             "sort": 2, | ||||
|  | @ -3383,7 +3383,7 @@ | |||
|                 { | ||||
|                   "key": "site_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$site$/" | ||||
|                   "value": "/^${Site:regex}$/" | ||||
|                 } | ||||
|               ] | ||||
|             } | ||||
|  | @ -3432,7 +3432,7 @@ | |||
|         } | ||||
|       ], | ||||
|       "repeat": "site", | ||||
|       "title": "Site: $site", | ||||
|       "title": "Site: ${Site:regex}", | ||||
|       "type": "row" | ||||
|     } | ||||
|   ], | ||||
|  | @ -3470,14 +3470,14 @@ | |||
|         "allValue": null, | ||||
|         "current": {}, | ||||
|         "datasource": "${DS_UNIFI_POLLER}", | ||||
|         "definition": "show tag values from \"subsystems\" with key=\"site_name\" WHERE source =~ /^$Controller$/ ", | ||||
|         "definition": "show tag values from \"subsystems\" with key=\"site_name\" WHERE source =~ /^${Controller:regex}$/ ", | ||||
|         "hide": 2, | ||||
|         "includeAll": true, | ||||
|         "label": "", | ||||
|         "multi": false, | ||||
|         "name": "site", | ||||
|         "name": "Site", | ||||
|         "options": [], | ||||
|         "query": "show tag values from \"subsystems\" with key=\"site_name\" WHERE source =~ /^$Controller$/ ", | ||||
|         "query": "show tag values from \"subsystems\" with key=\"site_name\" WHERE source =~ /^${Controller:regex}$/ ", | ||||
|         "refresh": 1, | ||||
|         "regex": "", | ||||
|         "skipUrlSync": false, | ||||
|  |  | |||
|  | @ -186,7 +186,7 @@ | |||
|           "measurement": "uap", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE $timeFilter AND ap_name =~ /$AP$/ AND site_name =~ /${Site:regex}$/ GROUP BY \"channel\"", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE $timeFilter AND ap_name =~ /${AP:regex}$/ AND site_name =~ /${Site:regex}$/ GROUP BY \"channel\"", | ||||
|           "rawQuery": true, | ||||
|           "refId": "B", | ||||
|           "resultFormat": "time_series", | ||||
|  | @ -265,7 +265,7 @@ | |||
|           "measurement": "clients", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE ($timeFilter  AND  ap_name =~ /$AP$/ AND site_name =~ /${Site:regex}$/) GROUP BY \"radio_proto\", \"ap_name\"", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE ($timeFilter  AND  ap_name =~ /${AP:regex}$/ AND site_name =~ /${Site:regex}$/) GROUP BY \"radio_proto\", \"ap_name\"", | ||||
|           "rawQuery": true, | ||||
|           "refId": "A", | ||||
|           "resultFormat": "time_series", | ||||
|  | @ -348,7 +348,7 @@ | |||
|           "measurement": "clients", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE $timeFilter AND ap_name =~ /$AP$/ AND site_name =~ /${Site:regex}$/ GROUP BY \"oui\"", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE $timeFilter AND ap_name =~ /${AP:regex}$/ AND site_name =~ /${Site:regex}$/ GROUP BY \"oui\"", | ||||
|           "rawQuery": true, | ||||
|           "refId": "A", | ||||
|           "resultFormat": "time_series", | ||||
|  | @ -460,7 +460,7 @@ | |||
|           "measurement": "uap_radios", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE ($timeFilter AND ap_name =~ /$AP$/ AND site_name =~ /${Site:regex}$/)", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE ($timeFilter AND ap_name =~ /${AP:regex}$/ AND site_name =~ /${Site:regex}$/)", | ||||
|           "rawQuery": true, | ||||
|           "refId": "A", | ||||
|           "resultFormat": "time_series", | ||||
|  | @ -588,7 +588,7 @@ | |||
|           "measurement": "clients", | ||||
|           "orderByTime": "ASC", | ||||
|           "policy": "default", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE ($timeFilter AND ap_name =~ /$AP$/ AND site_name =~ /${Site:regex}$/ AND is_guest = \"true\")", | ||||
|           "query": "select count(distinct(hostname)) FROM \"clients\" WHERE ($timeFilter AND ap_name =~ /${AP:regex}$/ AND site_name =~ /${Site:regex}$/ AND is_guest = \"true\")", | ||||
|           "rawQuery": true, | ||||
|           "refId": "A", | ||||
|           "resultFormat": "time_series", | ||||
|  | @ -1150,7 +1150,7 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -1679,7 +1679,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -1763,7 +1763,7 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -1892,7 +1892,7 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -2062,7 +2062,7 @@ | |||
|             { | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -2214,7 +2214,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -2390,7 +2390,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -2550,7 +2550,7 @@ | |||
|             { | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -2630,7 +2630,7 @@ | |||
|             { | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -2784,7 +2784,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -2924,7 +2924,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "ap_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -3067,7 +3067,7 @@ | |||
|             { | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -3224,7 +3224,7 @@ | |||
|             { | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -3420,7 +3420,7 @@ | |||
|             { | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -3615,7 +3615,7 @@ | |||
|             { | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -3817,7 +3817,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -4013,7 +4013,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -4196,7 +4196,7 @@ | |||
|             { | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -4393,7 +4393,7 @@ | |||
|             { | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -4741,7 +4741,7 @@ | |||
|             { | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -5083,7 +5083,7 @@ | |||
|             { | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$AP$/" | ||||
|               "value": "/^${AP:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -5181,14 +5181,14 @@ | |||
|         "allValue": null, | ||||
|         "current": {}, | ||||
|         "datasource": "${DS_UNIFI_POLLER}", | ||||
|         "definition": "show tag values from \"uap\" with key=\"site_name\" where source =~ /$Controller$/", | ||||
|         "definition": "show tag values from \"uap\" with key=\"site_name\" where source =~ /${Controller:regex}$/", | ||||
|         "hide": 0, | ||||
|         "includeAll": true, | ||||
|         "label": "", | ||||
|         "multi": true, | ||||
|         "name": "Site", | ||||
|         "options": [], | ||||
|         "query": "show tag values from \"uap\" with key=\"site_name\" where source =~ /$Controller$/", | ||||
|         "query": "show tag values from \"uap\" with key=\"site_name\" where source =~ /${Controller:regex}$/", | ||||
|         "refresh": 1, | ||||
|         "regex": "", | ||||
|         "skipUrlSync": false, | ||||
|  |  | |||
|  | @ -4201,14 +4201,14 @@ | |||
|         "allValue": null, | ||||
|         "current": {}, | ||||
|         "datasource": "${DS_UNIFI_POLLER}", | ||||
|         "definition": "show tag values from \"usg\" with key=\"site_name\" where source =~ /$Controller$/", | ||||
|         "definition": "show tag values from \"usg\" with key=\"site_name\" where source =~ /${Controller:regex}$/", | ||||
|         "hide": 0, | ||||
|         "includeAll": true, | ||||
|         "label": "", | ||||
|         "multi": true, | ||||
|         "name": "Site", | ||||
|         "options": [], | ||||
|         "query": "show tag values from \"usg\" with key=\"site_name\" where source =~ /$Controller$/", | ||||
|         "query": "show tag values from \"usg\" with key=\"site_name\" where source =~ /${Controller:regex}$/", | ||||
|         "refresh": 1, | ||||
|         "regex": "", | ||||
|         "skipUrlSync": false, | ||||
|  |  | |||
|  | @ -573,7 +573,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|  | @ -641,7 +641,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|  | @ -756,7 +756,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|  | @ -854,7 +854,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -1012,7 +1012,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|  | @ -1073,7 +1073,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|  | @ -1134,7 +1134,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -1324,7 +1324,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|  | @ -1385,7 +1385,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|  | @ -1446,7 +1446,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -1603,7 +1603,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|  | @ -1664,7 +1664,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|  | @ -1725,7 +1725,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -1918,7 +1918,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             }, | ||||
|             { | ||||
|               "condition": "AND", | ||||
|  | @ -2521,7 +2521,7 @@ | |||
|               "condition": "AND", | ||||
|               "key": "device_name", | ||||
|               "operator": "=~", | ||||
|               "value": "/^$Switch$/" | ||||
|               "value": "/^${Switch:regex}$/" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|  | @ -2999,7 +2999,7 @@ | |||
|                   "condition": "AND", | ||||
|                   "key": "device_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$Switch$/" | ||||
|                   "value": "/^${Switch:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -3166,7 +3166,7 @@ | |||
|                   "condition": "AND", | ||||
|                   "key": "device_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$Switch$/" | ||||
|                   "value": "/^${Switch:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -3391,7 +3391,7 @@ | |||
|                   "condition": "AND", | ||||
|                   "key": "device_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$Switch$/" | ||||
|                   "value": "/^${Switch:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -3641,7 +3641,7 @@ | |||
|                   "condition": "AND", | ||||
|                   "key": "device_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$Switch$/" | ||||
|                   "value": "/^${Switch:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -3843,7 +3843,7 @@ | |||
|                   "condition": "AND", | ||||
|                   "key": "device_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$Switch$/" | ||||
|                   "value": "/^${Switch:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -4003,7 +4003,7 @@ | |||
|                   "condition": "AND", | ||||
|                   "key": "device_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$Switch$/" | ||||
|                   "value": "/^${Switch:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -4163,7 +4163,7 @@ | |||
|                   "condition": "AND", | ||||
|                   "key": "device_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$Switch$/" | ||||
|                   "value": "/^${Switch:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -4323,7 +4323,7 @@ | |||
|                   "condition": "AND", | ||||
|                   "key": "device_name", | ||||
|                   "operator": "=~", | ||||
|                   "value": "/^$Switch$/" | ||||
|                   "value": "/^${Switch:regex}$/" | ||||
|                 }, | ||||
|                 { | ||||
|                   "condition": "AND", | ||||
|  | @ -4417,14 +4417,14 @@ | |||
|         "allValue": "", | ||||
|         "current": {}, | ||||
|         "datasource": "${DS_UNIFI_POLLER}", | ||||
|         "definition": "show tag values from \"usw_ports\" with key=\"site_name\" WHERE source =~ /^$Controller$/ ", | ||||
|         "definition": "show tag values from \"usw_ports\" with key=\"site_name\" WHERE source =~ /^${Controller:regex}$/ ", | ||||
|         "hide": 0, | ||||
|         "includeAll": true, | ||||
|         "label": null, | ||||
|         "multi": true, | ||||
|         "name": "Site", | ||||
|         "options": [], | ||||
|         "query": "show tag values from \"usw_ports\" with key=\"site_name\" WHERE source =~ /^$Controller$/ ", | ||||
|         "query": "show tag values from \"usw_ports\" with key=\"site_name\" WHERE source =~ /^${Controller:regex}$/ ", | ||||
|         "refresh": 1, | ||||
|         "regex": "", | ||||
|         "skipUrlSync": false, | ||||
|  | @ -4481,14 +4481,14 @@ | |||
|         "allValue": "", | ||||
|         "current": {}, | ||||
|         "datasource": "${DS_UNIFI_POLLER}", | ||||
|         "definition": "show tag values from \"usw_ports\" with key=\"device_name\" where site_name =~ /^${Site:regex}$/ AND type=~/^$Devices$/", | ||||
|         "definition": "show tag values from \"usw_ports\" with key=\"device_name\" where site_name =~ /^${Site:regex}$/ AND type =~ /^${Devices:regex}$/", | ||||
|         "hide": 0, | ||||
|         "includeAll": true, | ||||
|         "label": null, | ||||
|         "multi": true, | ||||
|         "name": "Switch", | ||||
|         "options": [], | ||||
|         "query": "show tag values from \"usw_ports\" with key=\"device_name\" where site_name =~ /^${Site:regex}$/ AND type=~/^$Devices$/", | ||||
|         "query": "show tag values from \"usw_ports\" with key=\"device_name\" where site_name =~ /^${Site:regex}$/ AND type =~ /^${Devices:regex}$/", | ||||
|         "refresh": 1, | ||||
|         "regex": "", | ||||
|         "skipUrlSync": false, | ||||
|  | @ -4503,14 +4503,14 @@ | |||
|         "allValue": ".*", | ||||
|         "current": {}, | ||||
|         "datasource": "${DS_UNIFI_POLLER}", | ||||
|         "definition": "show tag values from \"usw_ports\" with key=\"port_id\" where device_name =~ /^$Switch$/ AND site_name =~ /^${Site:regex}$/", | ||||
|         "definition": "show tag values from \"usw_ports\" with key=\"port_id\" where device_name =~ /^${Switch:regex}$/ AND site_name =~ /^${Site:regex}$/", | ||||
|         "hide": 0, | ||||
|         "includeAll": true, | ||||
|         "label": null, | ||||
|         "multi": true, | ||||
|         "name": "Port", | ||||
|         "options": [], | ||||
|         "query": "show tag values from \"usw_ports\" with key=\"port_id\" where device_name =~ /^$Switch$/ AND site_name =~ /^${Site:regex}$/", | ||||
|         "query": "show tag values from \"usw_ports\" with key=\"port_id\" where device_name =~ /^${Switch:regex}$/ AND site_name =~ /^${Site:regex}$/", | ||||
|         "refresh": 1, | ||||
|         "regex": "", | ||||
|         "skipUrlSync": false, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue