Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename schedule_downtime to schedule_host_downtime.

  • Loading branch information...
commit 77b5c9dfad32594a3ebc5ef66c8438f760f07f50 1 parent 417c1f2
@technicalpickles technicalpickles authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 README.rdoc
  2. +1 −1  lib/nagiosharder.rb
View
4 README.rdoc
@@ -13,10 +13,10 @@ Scrape and meander Nagios installs from ruby.
site.schedule_service_check('myhost')
# schedule 20 minutes of downtime, starting now
- site.schedule_downtime('myhost', :start_time => Time.now, :end_time => Time.now + 20.minutes)
+ site.schedule_host_downtime('myhost', :start_time => Time.now, :end_time => Time.now + 20.minutes)
# schedule a flexible 20 minutes of downtime between now and 2 hours from now
- site.schedule_downtime('myhost', :type => :flexible, :start_time => Time.now, :end_time => Time.now + 2.hours, :hours => 0, :minutes => 20)
+ site.schedule_host_downtime('myhost', :type => :flexible, :start_time => Time.now, :end_time => Time.now + 2.hours, :hours => 0, :minutes => 20)
# acknowledge a down service
site.acknowledge_service('myhost', 'myservice', 'something bad happened')
View
2  lib/nagiosharder.rb
@@ -53,7 +53,7 @@ def unacknowledge_service(host, service)
response.code == 200 && response.body =~ /successful/
end
- def schedule_downtime(host, options = {})
+ def schedule_host_downtime(host, options = {})
request = {
:cmd_mod => 2,
:cmd_typ => 55,
Please sign in to comment.
Something went wrong with that request. Please try again.