Giter Club home page Giter Club logo

Comments (4)

edvler avatar edvler commented on June 15, 2024

Thats realy a hard one.
I didn't found a real solution for this problem. Timezone calculations are realy evil :)

Do you have an idea?

from check_mk-urbackup-check.

edvler avatar edvler commented on June 15, 2024

I've created a timezone arware version.
If the client and the check-mk server are in differenz timezones, the check-mk servers timezone is used for rendering the time.

e.g.
Client (timezone offset +0200) sends:
XXXXXX;;;;;-;;;;;False;;;;;2023-07-14_23:05+0200;;;;;True

The check-mk server (timezone UTC) converts it to
last imagebackup: Jul 14 2023 21:05:00 (Age: 9 hours 35 minutes warn/crit at 9 days 0 hours/10 days 0 hours)

Please download the mkp version 1.2.4 from the dist folder.

It also necessary to place the new urbackup_check script in the /usr/lib/check_mk_agent/plugins folder, because the script now provides the timezone offset.

Please give me feedback if it works! :)

from check_mk-urbackup-check.

yennor avatar yennor commented on June 15, 2024

sorry I didn't reply you before. I've got family visiting for some weeks and I'm trying, quite unsuccessfully, to somehow merge family and work life.
and yes. either using UTC for everything or otherwise using "timezoned" variables is the way to go.
I'll test it next week.

from check_mk-urbackup-check.

yennor avatar yennor commented on June 15, 2024

i've tested it for a few days, and so far I didn't get any error messages. So it seems to be working. THanks a lot :-).

from check_mk-urbackup-check.

Related Issues (7)

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.