Comments (4)
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.
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.
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.
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)
- error in check mk plugin if backup client is removed from server HOT 1
- wrong url for issues HOT 1
- incompatible with check-mk 2.0 HOT 1
- make agent appear in check_mk to be able to download it HOT 1
- crash on server side when no image backup is made HOT 2
- after updateing to 2.0.3 can't find backups anymore HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from check_mk-urbackup-check.