-
Notifications
You must be signed in to change notification settings - Fork 13
Error in Rhel 7 Ruby 2.0 #7
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
Comments
Do not calculate statistics when there is no session so far. Return zero instead of that. Signed-off-by: Pavel Pulec <[email protected]>
You can try my fix. The issue is that this plugin tries to calculate session statistics even when there was no session in total so far. |
Do not calculate statistics when there is no session so far. Return zero instead of that. Signed-off-by: Pavel Pulec <[email protected]>
one more condition |
@pulecp This is great, thanks for contributing to this project! I had a few comments on your pull request, get them fixed up and I'll merge it. Thanks again for your help, I really appreciate it! |
#8 fixes this issue. |
@pulecp Thanks again for your changes, I've finally had a chance to review and merge them. |
Hi,
I have an issue executing the script on the nagios server. That´s what i do:
/usr/lib64/nagios/plugins/check_haproxy.rb -u http://xxx.xxx.xxx.xxx:port
And the output is:
/usr/lib64/nagios/plugins/check_haproxy.rb:162:in
'/': divided by 0 (ZeroDivisionError) from /usr/lib64/nagios/plugins/check_haproxy.rb:162:in
block infrom /usr/lib64/nagios/plugins/check_haproxy.rb:98:in
each' from /usr/lib64/nagios/plugins/check_haproxy.rb:98:in
'Greetings.
The text was updated successfully, but these errors were encountered: