Hi,
I encounter this strange behavior for both AIX 6 and AIX 7, for all the hosts I tested:
>centreon-engine@poller ~]$ /usr/lib/centreon/plugins//centreon_aix_snmp.pl --plugin=os::aix::snmp::plugin --mode=time --hostname=aixserver --snmp-version='2c' --snmp-community='xxx' --warning-offset='-5:5' --critical-offset='-10:10' --debug
CRITICAL: Time offset 3600 second(s): Local Time : 2024-11-22T13:14:29 (UTC) | 'offset'=3600s;-5:5;-10:10;;
.1.3.6.1.2.1.25.1.2.0 = ▒
centreon-engine@poller ~]$ snmpget -cxxx -v2c aixserver .1.3.6.1.2.1.25.1.2.0 HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 2024-11-22,13:14:51.0
centreon-engine@poller ~]$ /usr/lib/centreon/plugins//centreon_aix_snmp.pl --plugin=os::aix::snmp::plugin --mode=time --hostname=aixserver --snmp-version='2c' --snmp-community='xxx' --warning-offset='-5:5' --critical-offset='-10:10' --debug | cat -A
CRITICAL: Time offset 3600 second(s): Local Time : 2024-11-22T13:15:07 (UTC) | 'offset'=3600s;-5:5;-10:10;;$
.1.3.6.1.2.1.25.1.2.0 = ^GM-h^K^V^M^O^G^@$
As you may see: it doesn’t work. I get garbage instead of a SNMP value. NB: This garbage varies every second. It’s like it was actually a timestamp, but in a binary/non-printable format.
Although as you can see too, snmpget returns what’s expected.
I checked for plugin cache: none is created.
Plugin package version is 20241107-152627 but I noticed this bug since multiple releases.
Is it a known bug? (Then has it an issue ticket in Github?) Or else, how can I troubleshoot this?