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

[apps::vmware::connector::plugin] --mode=cpu-cluster: UNKNOWN: Cannot get value for counters

Open joschi99 opened this issue 2 years ago • 11 comments

centreon_plugins.pl --connector-hostname=127.0.0.1 --connector-port=5700 --container=XXX --plugin=apps::vmware::connector::plugin --custommode=connector --mode=cpu-cluster --debug
UNKNOWN: Cannot get value for counters (Maybe, object(s) cannot be reached: disconnected, not running, time not synced (see time-host mode),...)
{"identity":"client-81555e8caba4438a8e94e72a42d7efa1","data":{},"short_message":"Cannot get value for counters (Maybe, object(s) cannot be reached: disconnected, not running, time not synced (see time-host mode),...)","extra_message":"","vmware_connector_version":"3.2.3","code":-1}
centreon_plugins.pl --connector-hostname=127.0.0.1 --connector-port=5700 --container=XXX--plugin=apps::vmware::connector::plugin --custommode=connector --mode=cpu-cluster --cluster-name='YYY' --debug
UNKNOWN: Cannot get value for counters (Maybe, object(s) cannot be reached: disconnected, not running, time not synced (see time-host mode),...)
{"identity":"client-59696979513f4d1cbdc12815a5d3af5b","data":{},"short_message":"Cannot get value for counters (Maybe, object(s) cannot be reached: disconnected, not running, time not synced (see time-host mode),...)","extra_message":"","vmware_connector_version":"3.2.3","code":-1}

Same problem also with Connector version 3.2.2. Hosts are correctly synced with NTP.

joschi99 avatar Apr 20 '22 06:04 joschi99

It can be synced but it can take time to get datas. Try the time-shift option (and look your graph on your vcenter. To see if you have values for the metric).

garnier-quentin avatar Apr 20 '22 06:04 garnier-quentin

Using time-shift option seem's working, but minimum working time-shift value is 1500. Is this normal/correct?

joschi99 avatar Apr 20 '22 07:04 joschi99

It means that an issue with your vcenter and your esx (i think)

garnier-quentin avatar Apr 20 '22 07:04 garnier-quentin

I'm not sure on this, we have this problem on different vCenters

joschi99 avatar Apr 20 '22 07:04 joschi99

Check the graph on your vcenter and it can provide you information. If you don't have values, connector cannot get it.

garnier-quentin avatar Apr 20 '22 07:04 garnier-quentin

Do you have some news ?

garnier-quentin avatar Apr 28 '22 13:04 garnier-quentin

I have done some tests and it seem's that we have the same issue on different vCenter's and the check will only work if you set time-shift value. Seem's a general problem.

joschi99 avatar May 03 '22 05:05 joschi99

Hi, I have the same problem:

UNKNOWN: Cannot get value for counters (Maybe, object(s) cannot be reached: disconnected, not running, time not synced (see time-host mode),...)

I also correct by adding: --time-shift= (between 1300 and 1700 depending on the clusters) :

OK: Cluster 'CLUSTER PREPROD' : cpu total average: 11.56 %, 34899.00 MHz | 'CLUSTER PREPROD#cluster.cpu.utilization.percentage'=11.56%;;;0;100 'CLUSTER PREPROD#cluster.cpu.utilization.mhz'=34899.00MHz;;;0; checking cluster 'CLUSTER PREPROD' cpu total average: 11.56 %, 34899.00 MHz

gagzou avatar May 22 '22 15:05 gagzou

Could you take a look to your graph on your vcenter ? To see if there are points (or there is a delay).

garnier-quentin avatar May 30 '22 09:05 garnier-quentin

The graphs are complete and without delays on the vcenter.

gagzou avatar Aug 07 '22 14:08 gagzou

Infact we have checked on different vCenters and graphs are completed and without delays. So on vCenter everything looks fine and normal.

joschi99 avatar Sep 28 '22 19:09 joschi99

Any news about this issue?

joschi99 avatar Feb 01 '23 12:02 joschi99