Comments (4)
Ouch. FreeBSD has a -v
switch, which does almost the same as --date
. But neither -v
nor --date
are a POSIX standard.
from nagios-plugin-check_borg.
I'm vomiting, when reading the proper answer on Stackexchange.
To elaborate the use a bit more: We need the date command just to convert dates. borg gives out normal dates and also we only require relative readable dates from the user input. GNU date is awesome, as it can suck in almost every date value and spit it out the required date in the given format.
Are you able to install GNU coreutils on your system? I'm not that experienced on *BSD systems, but it looks like there is a freshport for this. If it is installable as a supplement, I'd kindly request you to install this.
from nagios-plugin-check_borg.
-v
looks quite interesting. This could fix the problem. Installing GNU coreutils would fix the problem as well and is much easier. Seems like there is no way to bring both date
commands to do the job on both platforms with there own utils without blowing the code up quite a lot. :-( Consider this issue as closed. I'll install gdate and do :%s/date/gdate/g
and this should do the trick as well. If not, I'll let you know.
from nagios-plugin-check_borg.
@z3dm4n I've created #8 reflecting the necessary changes to support a DATE
variable. If you could test it, I'd appreciate it.
from nagios-plugin-check_borg.
Related Issues (6)
- Licence for check_borg? HOT 3
- FormattingError on date HOT 4
- borg env vars HOT 2
- Exclude checkpoint archives HOT 1
- Running check_borg while running borg create fails HOT 5
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 nagios-plugin-check_borg.