Skip to content

Instantly share code, notes, and snippets.

@zzondlo
Forked from benjaminws/nagios_lwrp_mock.rb
Created April 3, 2012 01:30
Show Gist options
  • Select an option

  • Save zzondlo/2288597 to your computer and use it in GitHub Desktop.

Select an option

Save zzondlo/2288597 to your computer and use it in GitHub Desktop.
Mock up of nagios LWRP
nagios_command "generic_queue_size" do
command "/path/to/check_rabbitmq_queue_size.pl"
arg_one {"queue_name" => String}
arg_two {"warning_size" => Integer}
arg_three {"critical_size" => Integer}
end
nagios_service "generic_queue_size" do
nagios_command_generic_queue_size do
queue_name "random_queue"
warning_size 50
critical_size 100
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment