Change default template prefix to 'Template SNMP'
This commit is contained in:
parent
20bfdd8a70
commit
b95ca6b310
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
|
|
||||||
=pod
|
=pod
|
||||||
|
|
||||||
=head1 NAME
|
=head1 NAME
|
||||||
|
|
@ -833,7 +834,7 @@ if (!$oid_root || $oid_root->{ objectID } ne $opts->{ oid }) {
|
||||||
# Build a Zabbix template
|
# Build a Zabbix template
|
||||||
} else {
|
} else {
|
||||||
my $suffix = $opts->{ snmpver } > 2 ? " v$opts->{ snmpver }" : '';
|
my $suffix = $opts->{ snmpver } > 2 ? " v$opts->{ snmpver }" : '';
|
||||||
my $template_name = $opts->{ name } || "Template $oid_root->{ moduleID } - $oid_root->{ label }$suffix";
|
my $template_name = $opts->{ name } || "Template SNMP $oid_root->{ moduleID } - $oid_root->{ label }$suffix";
|
||||||
my $template = {
|
my $template = {
|
||||||
name => $template_name,
|
name => $template_name,
|
||||||
template => $template_name,
|
template => $template_name,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue