Skip to content
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

RuntimeError: nagiosharder.rb:239:in when using digest auth #3

Open
sammcj opened this issue Apr 28, 2014 · 0 comments
Open

RuntimeError: nagiosharder.rb:239:in when using digest auth #3

sammcj opened this issue Apr 28, 2014 · 0 comments

Comments

@sammcj
Copy link

sammcj commented Apr 28, 2014

root@dev-samm:/opt/ledbetter# DEBUG=1 bundle exec ruby ledbetter.rb
opening connection to int-nagios...
opened
<- "GET /cgi-bin/nagios3/status.cgi?servicestatustypes=16&servicegroup=all&style=detail&embedded=1&noheader=1 HTTP/1.1\r\nAuthorization: Basic Z3Vlc3Q6Z3Vlc3Q=\r\nConnection: close\r\nHost: int-nagios\r\n\r\n"
-> "HTTP/1.1 401 Authorization Required\r\n"
-> "Date: Mon, 28 Apr 2014 05:44:12 GMT\r\n"
-> "Server: Apache\r\n"
-> "WWW-Authenticate: Digest realm=\"nagios\", nonce=\"QScRzhP4BAA=6ca88d35ab3cb385cba9fa48fbf1349452acaa99\", algorithm=MD5, domain=\"/ http://int-nagios/ http://pm-nagios/ http://ext-nagios/\", qop=\"auth\"\r\n"
-> "Vary: Accept-Encoding\r\n"
-> "Content-Length: 401\r\n"
-> "Connection: close\r\n"
-> "Content-Type: text/html; charset=iso-8859-1\r\n"
-> "\r\n"
reading 401 bytes...
-> "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>401 Authorization Required</title>\n</head><body>\n<h1>Authorization Required</h1>\n<p>This server could not verify that you\nare authorized to access the document\nrequested.  Either you supplied the wrong\ncredentials (e.g., bad password), or your\nbrowser doesn't understand how to supply\nthe credentials required.</p>\n</body></html>\n"
read 401 bytes
Conn close
/var/lib/gems/1.9.1/bundler/gems/nagiosharder-0b9244710eb7/lib/nagiosharder.rb:239:in `service_status': wtf http://int-nagios/cgi-bin/nagios3/status.cgi?servicestatustypes=16&servicegroup=all&style=detail&embedded=1&noheader=1? 401 (RuntimeError)
    from ledbetter.rb:38:in `<main>'

Relates to railsmachine/nagiosharder#24

@sammcj sammcj changed the title RuntimeError: nagiosharder.rb:239:in `service_status': wtf RuntimeError: nagiosharder.rb:239:in when using digest auth Apr 28, 2014
@sammcj sammcj closed this as completed Apr 28, 2014
@sammcj sammcj reopened this Apr 28, 2014
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

1 participant