regilero / check_burp_backup_age Goto Github PK
View Code? Open in Web Editor NEWNagios local check for burp's timestamps backup age
License: GNU General Public License v3.0
Nagios local check for burp's timestamps backup age
License: GNU General Public License v3.0
Hello,
I get this error :
bash-4.4# python ./check_burp_backup_age.py -H myhostname -d /data
BURP CRITICAL - invalid syntax in timestamp file (/data/myhostname/current/timestamp)
Let's see the timestamp file :
bash-4.4# cat /data/myhostname/current/timestamp
0000010 2018-06-30 17:01:13 +0000
OK, let's fix it (I'm in a docker container, where vim is not installed) :
bash-4.4# sed -i -e 's/not 3/not 4/g' check_burp_backup_age.py
Now check again :
bash-4.4# python ./check_burp_backup_age.py -H myhostname -d /data
BURP OK - Last backup is fresh enough: 0 day(s) 16 hour(s) 14 minute(s) (974<1560)
I guess you prefer a better fix than mine, because some burp servers will write the date with 3 items when mine has 4. Like maybe if len[parts] not in [3, 4]
instead of if 3 not == len[parts]
. Or if l < 3 or l > 4
where l is len[parts]
...
I'm not the best pythonist on Earth so maybe you will find a better solution than mine.
Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.