Skip to content

Instantly share code, notes, and snippets.

@benjaminws
Created September 21, 2011 20:20
Show Gist options
  • Select an option

  • Save benjaminws/1233169 to your computer and use it in GitHub Desktop.

Select an option

Save benjaminws/1233169 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