Skip to content

Commit

Permalink
Added url option to nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
itsderek23 committed Apr 5, 2010
1 parent f231f73 commit 64dc576
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nginx_report/nginx_report.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
require 'open-uri'

class NginxReport < Scout::Plugin

OPTIONS=<<-EOS
url:
name: Status URL
default: "http://127.0.0.1/nginx_status"
EOS

def build_report
url = option(:url) || 'http://127.0.0.1/nginx_status'
Expand Down

0 comments on commit 64dc576

Please sign in to comment.