-
Notifications
You must be signed in to change notification settings - Fork 810
Check haproxy #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check haproxy #113
Conversation
test_haproxy.py needs a bit of love? once it actually does something travis should run it and pass. If you need help with travis, let me know (.travis.yml). We can basically apt-get haproxy to have a running instance on localhost. |
Thanks I didn't know about travis. |
Why does this branch modify the elasticsearch check? |
@clofresh that's weird I haven't changed anything in the elasticsearch check. Maybe a bug while merging. |
checks/net/haproxy.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
datetime.now() will return the local time, which will give you the wrong unix timestamp. You actually want to do datetime.utcnow()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, you should be using the time that the haproxy log said that that event happened, because it isn't necessarily the same as now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Verified on 3.1.0. |
First version of the haproxy check