Giter Club home page Giter Club logo

check_burp_backup_age's People

Contributors

regilero avatar ymettier avatar

Watchers

 avatar  avatar

Forkers

ymettier

check_burp_backup_age's Issues

BURP CRITICAL - invalid syntax in timestamp file (/data/myhostname/current/timestamp)

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

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.