Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
enh(snmp-traps): add centreontrapd @hostid@ macro (#7592)
Browse files Browse the repository at this point in the history
  • Loading branch information
garnier-quentin authored and lpinsivy committed Jul 4, 2019
1 parent 1b6b543 commit 4633578
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/perl/centreon/script/centreontrapd.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4633578

Please sign in to comment.