Change default template prefix to 'Template SNMP'

This commit is contained in:
Ryan Armstrong 2016-09-09 08:39:41 +03:00
parent 20bfdd8a70
commit b95ca6b310

View file

@ -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,