This fixes a variable substitution but, addressing issue #338.

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 1 year ago
parent 7258781712
commit 9ebe192306
  1. 8
      scancore-agents/scan-server/scan-server

@ -885,10 +885,10 @@ DELETED - Marks a server as no longer existing
# config change. # config change.
my $variables = { my $variables = {
server => $server_name, server => $server_name,
old_ram_in_use_short => $anvil->Convert->bytes_to_human_readable({'bytes' => $server_ram_in_use}), old_ram_in_use_short => $anvil->Convert->bytes_to_human_readable({'bytes' => $old_server_ram_in_use}),
old_ram_in_use_bytes => $anvil->Convert->add_commas({number => $server_ram_in_use}), old_ram_in_use_bytes => $anvil->Convert->add_commas({number => $old_server_ram_in_use}),
new_ram_in_use_short => $anvil->Convert->bytes_to_human_readable({'bytes' => $old_server_ram_in_use}), new_ram_in_use_short => $anvil->Convert->bytes_to_human_readable({'bytes' => $server_ram_in_use}),
new_ram_in_use_bytes => $anvil->Convert->add_commas({number => $old_server_ram_in_use}), new_ram_in_use_bytes => $anvil->Convert->add_commas({number => $server_ram_in_use}),
}; };
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, key => "scan_server_alert_0013", variables => $variables}); $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, key => "scan_server_alert_0013", variables => $variables});
$anvil->Alert->register({alert_level => "notice", message => "scan_server_alert_0013", variables => $variables, set_by => $THIS_FILE}); $anvil->Alert->register({alert_level => "notice", message => "scan_server_alert_0013", variables => $variables, set_by => $THIS_FILE});

Loading…
Cancel
Save