Skip to content

Commit 476d3a5

Browse files
authored
Merge pull request amousset#5 from peppelauro/patch-1
Allow the recognition of parametric keys
2 parents c4a881a + 60153ec commit 476d3a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/datasources/WeatherMapDataSource_zabbix.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function Init(&$map)
1818

1919
function Recognise($targetstring)
2020
{
21-
if(preg_match("/^zabbix:([-a-zA-Z0-9_\.\/\[\]]+):([-a-zA-Z0-9_\.\/\[\]]+):([-a-zA-Z0-9_\.\/\[\]]+):([-a-zA-Z0-9_\.\/\[\]]+)$/", $targetstring, $matches))
21+
if(preg_match("/^zabbix:([-a-zA-Z0-9_\.\/\[\]]+):([-a-zA-Z0-9_\.\/\[\]]+):([-a-zA-Z0-9_\.\/\[\],]+):([-a-zA-Z0-9_\.\/\[\],]+)$/", $targetstring, $matches))
2222
{
2323
return true;
2424
}
@@ -34,7 +34,7 @@ function ReadData($targetstring, &$map, &$item)
3434
$data[OUT] = null;
3535
$data_time = 0;
3636

37-
if(preg_match("/^zabbix:([-a-zA-Z0-9_\.\/\[\]]+):([-a-zA-Z0-9_\.\/\[\]]+):([-a-zA-Z0-9_\.\/\[\]]+):([-a-zA-Z0-9_\.\/\[\]]+)$/", $targetstring, $matches))
37+
if(preg_match("/^zabbix:([-a-zA-Z0-9_\.\/\[\]]+):([-a-zA-Z0-9_\.\/\[\],]+):([-a-zA-Z0-9_\.\/\[\]]+):([-a-zA-Z0-9_\.\/\[\],]+)$/", $targetstring, $matches))
3838
{
3939
$zabbix_uri = $map->get_hint('zabbix_uri');
4040

0 commit comments

Comments
 (0)