Bug report
Quick description
The --add-access option on the Linux SNMP plugin (centreon_linux_snmp.pl, storage mode) does not add any access information to the output, while the equivalent option works correctly on the QNAP storage SNMP plugin.
How to reproduce
- Environment:
Debian bookworm/sid`
- Version of the plugin:
20260500-1+deb12u1 (package centreon-plugin-operatingsystems-linux-snmp)
- Information about the monitored resource: Linux host (Ubuntu/Debian) monitored via SNMP v2c
- Command line:
/usr/lib/centreon/plugins/centreon_linux_snmp.pl \
--plugin=os::linux::snmp::plugin \
--mode=storage \
--hostname=<HOST_IP> \
--snmp-version=2c \
--snmp-community=<COMMUNITY> \
--name='/' \
--add-access
## Expected result
The output should include access information for the storage partition, as the --add-access option does on the equivalent QNAP storage plugin:
OK: Storage '/' Usage Total: 9.75 GB Used: 5.42 GB (55.63%) Free: 4.32 GB (44.37%) - Access: Read-Write
Actual result
The --add-access option is silently ignored. No access information is appended to the output:
OK: Storage '/' Usage Total: 9.75 GB Used: 5.42 GB (55.63%) Free: 4.32 GB (44.37%)
No error is returned. The access data is simply absent, even though the OID hrStorageAccess (1.3.6.1.2.1.25.2.3.1.2) is available via SNMP on the host.
Bug report
Quick description
The
--add-accessoption on the Linux SNMP plugin (centreon_linux_snmp.pl, storage mode) does not add any access information to the output, while the equivalent option works correctly on the QNAP storage SNMP plugin.How to reproduce
Debian bookworm/sid`20260500-1+deb12u1(packagecentreon-plugin-operatingsystems-linux-snmp)