Commit graph

20 commits

Author SHA1 Message Date
sputtene
c57ff5abc3
Merge 581a205121 into b4e866ef66 2022-07-15 11:57:21 +02:00
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
Ryan Armstrong
b4e866ef66
Merge pull request #15 from carceneaux/fixing-snmpv3-logic-error
Fixing snmpv3 logic error
2017-12-30 11:30:19 +08:00
Chris Arceneaux
1e4d0196c2
Delete settings.json 2017-12-29 14:16:49 -05: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
Ryan Armstrong
9a59e8c448 Added prereqs for RHEL family servers - Thanks Volker 2016-10-30 20:43:50 +08:00
Ryan Armstrong
f34d9ca256 Merge pull request #6 from richlv/patch-1
Update mib2zabbix.pl
2016-09-10 14:01:44 +03: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
318aaeae32 Updated installation instructions 2016-08-17 15:10:05 +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
7d293da3fc Added license 2016-06-01 15:47:54 +08:00
Ryan Armstrong
6d24aad64b Initial commit 2016-06-01 15:33:08 +08:00