add new macro _homeurl_
This commit is contained in:
parent
e5c0440d0b
commit
e7b14143ed
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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'},
|
||||
|
|
Loading…
Reference in New Issue