centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
308 stars 270 forks source link

apps::centreon::map4::jmx::plugin::event-statistics unknow #4092

Open FreshardF opened 1 year ago

FreshardF commented 1 year ago

Hi,

I have issue with plugin apps/centreon/map4/jmx/mode/eventstatistics.pm

map version : centreon-map-server-21.10.5-1 jolokia agent jvm version : jolokia-1.7.1

command: centreon_centreon_map.pl --plugin=apps::centreon::map4::jmx::plugin --mode=event-statistics --custommode=jolokia --url='http://XX.XX.XX.XX:YYYY/jolokia/' --username='jolokia' --password='jolokia' --warning-global='' --critical-global='' --warning-remove='' --critical-remove='' --warning-update='' --critical-update='' --warning-create='' --critical-create=''

return: UNKNOWN: Can't use string ("0") as a HASH ref while "strict refs" in use at /usr/lib/centreon/plugins/centreon_centreon_map.pl line 327. (line 96 on free plugin)

jolokia api output : {"request":{"mbean":"com.centreon.studio.map:name=statistics,type=whatsup","type":"read"},"value":{"EventCount":0,"EventTypeRemove":0,"EventTypeUpdate":0,"EventTypeCreate":0},"timestamp":1670512210,"status":200}

i try without "->{andIncrement}" and i have not error again .

is it a communication problem between the jolokia agent and the centreon map JVM ?

best regard.

garnier-quentin commented 1 year ago

The monitoring of map is quite obsolete. We only use jvm monitoring with actuator plugin-pack.

lucie-dubrunfaut commented 4 weeks ago

Hello :)

This issue seems particularly old but could you tell us if Quentin's answer help you to understand and isolate the problem? Thank you for your understanding.