Skip to content

Instantly share code, notes, and snippets.

@antonym
Created February 17, 2017 20:39
Show Gist options
  • Save antonym/e32f3ebfdd2d2c979bdc7f6f983dd3c4 to your computer and use it in GitHub Desktop.
Save antonym/e32f3ebfdd2d2c979bdc7f6f983dd3c4 to your computer and use it in GitHub Desktop.
root@rpc-openstack:/etc/rackspace-monitoring-agent.conf.d# cat container_storage_check--rpc-openstack.yaml
type : agent.plugin
label : "container_storage_check--rpc-openstack"
period : "60"
timeout : "30"
disabled : "false"
details :
file : run_plugin_in_venv.sh
args : ["/usr/lib/rackspace-monitoring-agent/plugins/container_storage_check.py", "172.29.236.100"]
alarms :
container___storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container___storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for _ has reached >= 85 % used.");
}
container_c_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_c_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for c has reached >= 85 % used.");
}
container_o_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_o_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for o has reached >= 85 % used.");
}
container_n_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_n_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for n has reached >= 85 % used.");
}
container_t_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_t_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for t has reached >= 85 % used.");
}
container_a_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_a_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for a has reached >= 85 % used.");
}
container_i_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_i_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for i has reached >= 85 % used.");
}
container_n_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_n_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for n has reached >= 85 % used.");
}
container_e_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_e_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for e has reached >= 85 % used.");
}
container_r_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_r_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for r has reached >= 85 % used.");
}
container___storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container___storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for _ has reached >= 85 % used.");
}
container_n_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_n_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for n has reached >= 85 % used.");
}
container_a_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_a_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for a has reached >= 85 % used.");
}
container_m_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_m_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for m has reached >= 85 % used.");
}
container_e_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_e_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for e has reached >= 85 % used.");
}
container_s_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_s_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for s has reached >= 85 % used.");
}
container_._storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_._storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for . has reached >= 85 % used.");
}
container_s_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_s_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for s has reached >= 85 % used.");
}
container_t_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_t_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for t has reached >= 85 % used.");
}
container_d_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_d_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for d has reached >= 85 % used.");
}
container_o_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_o_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for o has reached >= 85 % used.");
}
container_u_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_u_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for u has reached >= 85 % used.");
}
container_t_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_t_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for t has reached >= 85 % used.");
}
container_._storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_._storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for . has reached >= 85 % used.");
}
container_s_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_s_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for s has reached >= 85 % used.");
}
container_p_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_p_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for p has reached >= 85 % used.");
}
container_l_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_l_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for l has reached >= 85 % used.");
}
container_i_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_i_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for i has reached >= 85 % used.");
}
container_t_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_t_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for t has reached >= 85 % used.");
}
container_(_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_(_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for ( has reached >= 85 % used.");
}
container_)_storage_percent_used:
label : container_storage_percent_used--rpc-openstack
notification_plan_id : "npTechnicalContactsEmail"
disabled : false
criteria : |
:set consecutiveCount=3
if (metric["container_)_storage_percent_used"] >= 85) {
return new AlarmStatus(CRITICAL, "Container storage for ) has reached >= 85 % used.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment