add new macro _homeurl_

This commit is contained in:
daniel 2017-03-09 10:57:03 +01:00
parent e5c0440d0b
commit e7b14143ed
2 changed files with 4 additions and 0 deletions

View File

@ -167,6 +167,9 @@ sub pandora_get_sharedconfig ($$) {
$pa_config->{'replication_limit'} = pandora_get_tconfig_token ($dbh, 'replication_limit', 1000);
$pa_config->{'include_agents'} = pandora_get_tconfig_token ($dbh, 'include_agents', 0);
#Public url
$pa_config->{'public_url'} = pandora_get_tconfig_token ($dbh, 'public_url', 'http://localhost/pandora_console');
if ($pa_config->{'include_agents'} eq '') {
$pa_config->{'include_agents'} = 0;
}

View File

@ -985,6 +985,7 @@ sub pandora_execute_action ($$$$$$$$$;$) {
_timezone_ => strftime ("%Z", localtime()),
_data_ => $data,
_prevdata_ => undef,
_homeurl_ => $pa_config->{'public_url'},
_alert_name_ => $alert->{'name'},
_alert_description_ => $alert->{'description'},
_alert_threshold_ => $alert->{'time_threshold'},