centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

[os::aix::snmp::plugin] - mode(time): Strange behavior

Open StefThomas opened this issue 1 year ago • 6 comments

Hi,

The SNMP request using the snmpget command is OK:

[centreon-engine@poller~]$ snmpget -c XXX -v 2c aixtserver .1.3.6.1.2.1.25.1.2.0
HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 2024-5-7,10:53:12.0

But the plugin doesn’t work and shows a strange behavior:

[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 7200 second(s): Local Time : 2024-05-07T10:53:37 (UTC) | 'offset'=7200s;-5:5;-10:10;;
.1.3.6.1.2.1.25.1.2.0 = ▒
5%
PuTTY[centreon-engine@poller ~]$ PuTTY

Version of the plugin: centreon-plugin-Operatingsystems-Aix-Snmp-20240411-123504.el8.noarch

Version of the Engine:

centreon-engine-23.10.6-1.el8.x86_64
centreon-engine-daemon-23.10.6-1.el8.x86_64 

Version of the broker:

centreon-broker-core-23.10.6-1.el8.x86_64
centreon-broker-23.10.6-1.el8.x86_64
centreon-broker-cbmod-23.10.6-1.el8.x86_64

StefThomas avatar May 07 '24 09:05 StefThomas

Hello :)

Were you able to reproduce this issue or did it only happen once? Because time mode (ntp) is a standard snmp mode used by many plugins and until now this problem had not been noted. If the problem persists, can you provide us an anonymized .snmpwalk (full snmpwalk of enterprise branch : snmpwalk -ObentU -v 2c -c public address .1.3.6.1.4.1 > equipment.snmpwalk) of your equipment to help us troubleshooting this issue?

lucie-tirand avatar Jul 19 '24 07:07 lucie-tirand

Hi,

I need to upgrade Centreon to the last 23.10 (as the plugin packages) but can’t do it before about 15 days. I’ll then try again. By the way it wasn’t happening only once.

I’ll let you know. Have a nice day.

StefThomas avatar Aug 01 '24 08:08 StefThomas