Skip to main content

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?

hello 

I have an AIX in monitoring, not managed by me

there is no “bug” on the garbage value, it is a non string value, the centreonplugin is doing the conversion, and the strange characters are normal.

the problem you have is linked to the way an AIX is working, I’m no expert, but AIX doesn’t know how to change the time when there is the DST (last weekend of october), so it is normal to have 3600s offset when you go in winter time, you need to change the timezone on the AIX, you need to do that every 6 months

(I could ask the guy who manage the AIX how he is doing that time change)


Hi,

Our AIX automatically change their time when DST change occurs, and the servers show the right time when using the date command. The xntpd subsystem has been restarted. Also:
 

$ snmpget -cxxx -v2c -Ot aixserver .1.3.6.1.2.1.25.1.2.0
HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 2024-11-22,14:24:23.0


If I’m not mistaken, it is a string value according to what the snmpget command returns for this exact OID.

I also never observed such non printable character is a SNMP value of any type. what type do you suggest it could be if not string?

Or do you suggest the Centreon plugin converts this string value to something else? Then to what and what for?

In fact I had already opened an issue in August for this: https://github.com/centreon/centreon-plugins/issues/5020

I
updated the issue adding data issued from snmpwalk.

>the strange characters are normal.

I could still be wrong but I don’t think it is “normal”.

Something is sure: the Centreon plugin does not work, although it is supposed to.


Reply