8696 Commits

Author SHA1 Message Date
David Boucher
cbebc98fa9 enh(generic-snmp): new comment 2025-07-15 19:11:30 +02:00
evan Adam
1bbc23702b enh(output): use a helper for decimal arbitrary precision 2025-07-15 19:11:30 +02:00
evan Adam
59c9ec1512 enh(generic-snmp): apply code suggestion from cargo build 2025-07-15 19:11:30 +02:00
evan Adam
c0a4bf0e85 fix(rust): use rust 2024 edition and fix compile error
rust 2024 edition is more restrictive when importing local crate
2025-07-15 19:11:30 +02:00
David Boucher
a2c0b6ad0e enh(ci): unit tests executed for generic snmp 2025-07-15 19:11:30 +02:00
David Boucher
ccc47be126 fix(packaging) 2025-07-15 19:11:30 +02:00
David Boucher
0438d28fc8 fix(packaging): generic-snmp renamed into centreon-generic-snmp 2025-07-15 19:11:30 +02:00
David Boucher
36f02d371e fix(ci): packaging should work better 2025-07-15 19:11:30 +02:00
David Boucher
9c89afc6d9 fix(ci): wrong build directory fixed 2025-07-15 19:11:30 +02:00
David Boucher
468b952d64 enh(ci): rust installed for everybody 2025-07-15 19:11:30 +02:00
David Boucher
45a410f687 wip(ci) 2025-07-15 19:11:30 +02:00
David Boucher
e06572c53c wip(ci) 2025-07-15 19:11:30 +02:00
David Boucher
572dba748d wip(ci) 2025-07-15 19:11:30 +02:00
David Boucher
9e59db7330 wip( 2025-07-15 19:11:30 +02:00
David Boucher
b0dda05867 wip(ci) 2025-07-15 19:11:30 +02:00
David Boucher
f36fc3be02 enh(ci): new build of generic-snmp 2025-07-15 19:11:26 +02:00
David Boucher
6efddfe69d fix(output): missing output added 2025-07-15 19:10:21 +02:00
David Boucher
07af8fe925 fix(docker): automatization of the rust installation 2025-07-15 19:10:21 +02:00
David Boucher
bd59b11910 enh(Docker): new rust installation 2025-07-15 19:10:21 +02:00
David Boucher
89108a4afb enh(generic-snmp): output looks correct 2025-07-15 19:10:21 +02:00
David Boucher
abbb15280c fix(generic-snmp): average fixed with NaN.
* Integration of criterion to make benches
* RUST_LOG env variable changed into PLUGIN_LOG
2025-07-15 19:10:21 +02:00
David Boucher
13ff270486 enh(generic-snmp): output improved a little with thresholds 2025-07-15 19:10:21 +02:00
David Boucher
3e23f6af87 enh(generic-snmp): work on the output 2025-07-15 19:10:21 +02:00
David Boucher
d24222caca enh(generic-snmp): output is read from the json file now 2025-07-15 19:10:21 +02:00
David Boucher
efb950dcce fix(generic-snmp): unit tests fixed 2025-07-15 19:10:21 +02:00
David Boucher
37edf37573 enh(generic-snmp): status well computed 2025-07-15 19:10:21 +02:00
David Boucher
38a243e914 fix(generic-snmp): the warning/critical thresholds can be empty now 2025-07-15 19:10:21 +02:00
David Boucher
b6f8684848 fix(generic-snmp): error management improved, I think we can find better 2025-07-15 19:10:20 +02:00
David Boucher
b273710cb8 enh(generic-snmp): thresholds are ok 2025-07-15 19:10:20 +02:00
David Boucher
2e3c1716f0 enh(generic-snmp): threshold ok 2025-07-15 19:10:20 +02:00
David Boucher
48302c0fec enh(generic-snmp): threshold works almost. Some error cases are still to implement 2025-07-15 19:10:20 +02:00
David Boucher
c184f2d407 enh(generic-snmp): custom error introduced. It is used for thresholds but should be generalized 2025-07-15 19:10:20 +02:00
David Boucher
32c1bbad3b enh(generic-snmp): Introduction of real thresholds (work in progress) 2025-07-15 19:10:20 +02:00
David Boucher
4fac604a4b enh(generic-snmp): thresholds values are stored in Metrics 2025-07-15 19:10:20 +02:00
David Boucher
99c4783b60 cleanup(generic-snmp): unused function removed 2025-07-15 19:10:20 +02:00
David Boucher
bc64e1e2ae enh(generic-snmp): bugs fixed and unit tests added 2025-07-15 19:10:20 +02:00
David Boucher
9ff58afa42 wip(generic-snmp) 2025-07-15 19:10:20 +02:00
David Boucher
6020f9973e cleanup(generic-snmp): SnmpItem merged with compute::ast::ExprResult 2025-07-15 19:10:20 +02:00
David Boucher
f9ace6f4c4 enh(generic-snmp): min/max computed and added to perfdata 2025-07-15 19:10:20 +02:00
David Boucher
49a82c49df fix(generic-snmp): fix issues with snmp get 2025-07-15 19:10:20 +02:00
David Boucher
535064daa8 enh(generic-snmp): Average, Max and Min functions are back 2025-07-15 19:10:20 +02:00
David Boucher
2f3eed6050 fix(generic-snmp): unit tests are back 2025-07-15 19:10:20 +02:00
David Boucher
fdf86d33ca cleanup(generic-snmp): dependencies updated 2025-07-15 19:10:20 +02:00
David Boucher
ef7dffae3d enh(generic-snmp): new ast object 2025-07-15 19:10:20 +02:00
David Boucher
1ecfbb7d11 enh(generic-snmp): the lexer works with the grammar now 2025-07-15 19:10:20 +02:00
David Boucher
29d8949621 enh(generic-snmp): lexer carries numbers values 2025-07-15 19:10:20 +02:00
David Boucher
d11c4c3e89 wip(generic-snmp): new lexer 2025-07-15 19:10:20 +02:00
David Boucher
65f386159b enh(generic-snmp): the best version to work with new-disk.json
We have to rewrite the plugin to work also with others json files.
2025-07-15 19:10:20 +02:00
David Boucher
1e69310f40 wip(generic-snmp): labels on the way 2025-07-15 19:10:20 +02:00
David Boucher
679d222759 cleanup(generic-snmp): coding style applied 2025-07-15 19:10:20 +02:00