Skip to content

401 Unauthorized issue #2

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

Closed
monty2kx opened this issue Sep 18, 2013 · 3 comments
Closed

401 Unauthorized issue #2

monty2kx opened this issue Sep 18, 2013 · 3 comments

Comments

@monty2kx
Copy link

Hi,

I have some issues with this plugin. I get a 401 HTTP error. I use ruby 1.9.3 on Debian Wheezy ans HaProxy 1.4.24.

user@server:/usr/lib/nagios/plugins$ ./check_haproxy.rb -u http://10.xxx.xxx.xxx:9000/haproxy;csv -U myuser -P mypassword -d
/usr/lib/ruby/1.9.1/open-uri.rb:346:in open_http': 401 Unauthorized (OpenURI::HTTPError) from /usr/lib/ruby/1.9.1/open-uri.rb:775:inbuffer_open'
from /usr/lib/ruby/1.9.1/open-uri.rb:203:in block in open_loop' from /usr/lib/ruby/1.9.1/open-uri.rb:201:incatch'
from /usr/lib/ruby/1.9.1/open-uri.rb:201:in open_loop' from /usr/lib/ruby/1.9.1/open-uri.rb:146:inopen_uri'
from /usr/lib/ruby/1.9.1/open-uri.rb:677:in open' from /usr/lib/ruby/1.9.1/open-uri.rb:33:inopen'
from ./check_haproxy.rb:59:in `

'
-bash: csv : commande introuvable (unknown command)

If I test with lynx i can authenticate and it works fine.

Thank a lot and congratulations for your work !!

Regards

@monty2kx
Copy link
Author

okay !!! I have just escaped the ";csv" with ""

thanks

@monty2kx
Copy link
Author

in fact it's ok but the result returned on nagios / centreon is just the first line. If i have more than one critical node i only see the last in critical and not the other.

Any ideas ?

@benprew
Copy link
Owner

benprew commented Aug 26, 2014

Fixed in 9d65e36

@benprew benprew closed this as completed Aug 26, 2014
benprew pushed a commit that referenced this issue Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants