Code Monkey home page Code Monkey logo

Comments (13)

garnier-quentin avatar garnier-quentin commented on July 21, 2024

You can look ntp drift with the time-host mode.
The code is for direct interval (there is no historics). You have start/end below in the function.
Try the option shift-time also.

from centreon-vmware.

timox avatar timox commented on July 21, 2024

I know for the ftp but there's no drift, sync is fine, all host are synchronized on same ntp.
I try the --time-shift too, but there's no effect. The vpxd log in vcenter write sometimes that the perf request return no value.
I don't think this is a time shift problem : as i say, the request has a good return if i try a few seconds later. It seems that the perf query can not always return data on a specific interval, so get last available samples is more safe to obtain perf datas.

from centreon-vmware.

garnier-quentin avatar garnier-quentin commented on July 21, 2024

With the shift interval you can get more samples. That's what you want.

from centreon-vmware.

timox avatar timox commented on July 21, 2024

ok, thanks for your response, i'll try it again.

from centreon-vmware.

khba avatar khba commented on July 21, 2024

Hello,

I am facing the same issue: all the servers are synchronized with the same ntp server and their offsets are about +-0.something, but I keep getting the "UNKNOWN: Cannot get value for counters (Maybe, object(s) cannot be reached: disconnected, not running, time not synced (see time-host mode),...) |" on what seems to be a random basis, sometimes the check works and I have a normal output, sometimes not and I get this.
I also tried the --time-shift option but it changes nothing apparently.

from centreon-vmware.

garnier-quentin avatar garnier-quentin commented on July 21, 2024

Could you give me the result of "time-host" mode ? Do you see graphics wiath datas in the vcenter (same account) ?

from centreon-vmware.

khba avatar khba commented on July 21, 2024

Yes:
[root@XXXX centreon-plugins]# perl centreon_plugins.pl --plugin=apps::vmware::connector::plugin --custommode=connector --connector-hostname=127.0.0.1 --container=XXXX --mode=time-host
OK: 'XXXX' Time offset 0 second(s) : 2017-02-01T10:46:21.932778Z | 'offset'=-0.932777881622314s;;;0;

from centreon-vmware.

garnier-quentin avatar garnier-quentin commented on July 21, 2024

And for graphics in vcenter ?

from centreon-vmware.

khba avatar khba commented on July 21, 2024

Which graphics ?

from centreon-vmware.

garnier-quentin avatar garnier-quentin commented on July 21, 2024

Graphics for the check you want. Look counters in vcenter.

from centreon-vmware.

khba avatar khba commented on July 21, 2024

I don't have access to the vcenter but only to some ESXis and I was running the cpu-host mode of centreon_vmware on one of them.

The CPU graphics on the ESXi are being displayed and refreshed correctly.

from centreon-vmware.

garnier-quentin avatar garnier-quentin commented on July 21, 2024

So i don't know. Should need an access. Can't tell more.

from centreon-vmware.

timox avatar timox commented on July 21, 2024

I try again with time shift argument.
Unfortunately, I have to change the code to avoid requesting datas on a specific time range.
Getting metrics on a direct interval ( even with time shift ) is not reliable. The mentioned error means that there's no value to return on the period. You haven't any guarantee that an host or a VM return you counters on a specified time range.
Get the last available value whithout specifying time range works well.

from centreon-vmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.