Commit graph

13 commits

Author SHA1 Message Date
Sven Putteneers
581a205121 Make ordering of mappings and application stable
Perl 5.8.1 added hash randomisation (see
https://metacpan.org/release/JHI/perl-5.8.1/view/pod/perldelta.pod#Hash-Randomisation).

The effect is that multiple invocations of `keys %hash` return the hash keys in
different ordering, even between separate runs of the script with the same
inputs.

As a result, running the script multiple times, yielded non-identical XML
output, since the order of the mappings and application lists is different
every time.

By first sorting the hash keys for the mapping and application hashes before
iterating over them, multiple runs of the script with the same inputs result in
identical output.
2022-07-15 11:51:34 +02:00
Christopher Arceneaux
a12dc964f0 fixed logic error when validating snmp v3 args 2017-12-29 14:07:55 -05:00
Ryan Armstrong
59ee5ceb21 Trimmed trailing whitespace 2017-07-31 21:31:04 +08:00
Ryan Armstrong
ccc8bdfb66 v3 args are now case-insensitive. Ref: #13 2017-07-31 21:30:16 +08:00
Richlv
dc83502b44 Update mib2zabbix.pl
minor typo fix
2016-09-10 12:37:53 +03:00
Ryan Armstrong
b95ca6b310 Change default template prefix to 'Template SNMP' 2016-09-09 08:40:59 +03:00
Ryan Armstrong
20bfdd8a70 Added unit translations for common mib units 2016-08-17 16:18:18 +08:00
Ryan Armstrong
b456061778 Fixed discovery rules for Zabbix v3 2016-08-17 15:06:08 +08:00
Ryan Armstrong
b390b827cb Fixed empty value maps error 2016-08-17 12:20:53 +08:00
Ryan Armstrong
10f682b497 Added support for OIDs without the . prefix 2016-08-17 11:35:33 +08:00
Ryan Armstrong
3ea7e98b56 Removed unused get_child_by_label function 2016-08-08 18:18:57 +08:00
Ryan Armstrong
2ac32ded1a Updated script for Zabbix v3 support 2016-08-08 17:55:05 +08:00
Ryan Armstrong
6d24aad64b Initial commit 2016-06-01 15:33:08 +08:00