obfuscurity / ledbetter Goto Github PK
View Code? Open in Web Editor NEWScript that scrapes alert statistics from Nagios and reports them to Graphite
License: MIT License
Script that scrapes alert statistics from Nagios and reports them to Graphite
License: MIT License
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.