From 4633578b039c4b985d3ad589378876cfae5e439b Mon Sep 17 00:00:00 2001 From: qgarnier Date: Thu, 4 Jul 2019 12:43:23 +0200 Subject: [PATCH] enh(snmp-traps): add centreontrapd @HOSTID@ macro (#7592) --- lib/perl/centreon/script/centreontrapd.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/perl/centreon/script/centreontrapd.pm b/lib/perl/centreon/script/centreontrapd.pm index 98b85cb78da..384ffb2bac3 100644 --- a/lib/perl/centreon/script/centreontrapd.pm +++ b/lib/perl/centreon/script/centreontrapd.pm @@ -875,6 +875,7 @@ sub substitute_centreon_var { my $str = $_[0]; $str =~ s/\@HOSTNAME\@/$self->{current_hostname}/g; + $str =~ s/\@HOSTID\@/$self->{current_host_id}/g; $str =~ s/\@HOSTADDRESS\@/$self->{current_ip}/g; $str =~ s/\@HOSTADDRESS2\@/$self->{trap_data}->{agent_dns_name}/g; $str =~ s/\@SERVICEDESC\@/$self->{current_service_desc}/g;