Created
March 24, 2017 12:06
-
-
Save nuriel77/cda569a8b446b46e34c8d46ff7e045af to your computer and use it in GitHub Desktop.
Checks examples for sensu / openstack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// /etc/sensu/conf.d/sensu-checks.json | |
{ | |
"checks": { | |
"check-aodh-evaluator": { | |
"command": "systemctl is-active openstack-aodh-evaluator || exit 2", | |
"subscribers": ["overcloud-ceilometer-aodh-evaluator"], | |
"interval": 60 | |
}, | |
"check-aodh-listener": { | |
"command": "systemctl is-active openstack-aodh-listener || exit 2", | |
"subscribers": ["overcloud-ceilometer-aodh-listener"], | |
"interval": 60 | |
}, | |
"check-aodh-notifier": { | |
"command": "systemctl is-active openstack-aodh-notifier || exit 2", | |
"subscribers": ["overcloud-ceilometer-aodh-notifier"], | |
"interval": 60 | |
}, | |
"check-ceilometer-central": { | |
"command": "systemctl is-active openstack-ceilometer-central || exit 2", | |
"subscribers": ["overcloud-ceilometer-agent-central"], | |
"interval": 60 | |
}, | |
"check-ceilometer-collector": { | |
"command": "systemctl is-active openstack-ceilometer-collector || exit 2", | |
"subscribers": ["overcloud-ceilometer-collector"], | |
"interval": 60 | |
}, | |
"check-ceilometer-compute": { | |
"command": "systemctl is-active openstack-ceilometer-compute || exit 2", | |
"subscribers": ["overcloud-ceilometer-compute"], | |
"interval": 60 | |
}, | |
"check-ceilometer-compute": { | |
"command": "systemctl is-active openstack-ceilometer-compute || exit 2", | |
"subscribers": ["overcloud-ceilometer-agent-compute"], | |
"interval": 60 | |
}, | |
"check-ceilometer-notification": { | |
"command": "systemctl is-active openstack-ceilometer-notification || exit 2", | |
"subscribers": ["overcloud-ceilometer-agent-notification"], | |
"interval": 60 | |
}, | |
"check-ceilometer-polling": { | |
"command": "systemctl is-active openstack-ceilometer-polling || exit 2", | |
"subscribers": ["overcloud-ceilometer-polling"], | |
"interval": 60 | |
}, | |
"check-ceph-df": { | |
"command": "/usr/libexec/openstack-monitoring/checks/oschecks-check_ceph_df :::ceph.warning|60::: :::ceph.critical|80:::", | |
"subscribers": ["overcloud-ceph-client"], | |
"interval": 60 | |
}, | |
"check-ceph-health": { | |
"command": "/usr/libexec/openstack-monitoring/checks/oschecks-check_ceph_health", | |
"subscribers": ["overcloud-ceph-client"], | |
"interval": 60 | |
}, | |
"check-cinder-api": { | |
"command": "systemctl is-active openstack-cinder-api || exit 2", | |
"subscribers": ["overcloud-cinder-api"], | |
"interval": 60 | |
}, | |
"check-cinder-scheduler": { | |
"command": "systemctl is-active openstack-cinder-scheduler || exit 2", | |
"subscribers": ["overcloud-cinder-scheduler"], | |
"interval": 60 | |
}, | |
"check-cinder-volume": { | |
"command": "systemctl is-active openstack-cinder-volume || exit 2", | |
"subscribers": ["overcloud-cinder-volume"], | |
"interval": 60 | |
}, | |
"check-glance-api": { | |
"command": "systemctl is-active openstack-glance-api || exit 2", | |
"subscribers": ["overcloud-glance-api"], | |
"interval": 60 | |
}, | |
"check-glance-registry": { | |
"command": "systemctl is-active openstack-glance-registry || exit 2", | |
"subscribers": ["overcloud-glance-registry"], | |
"interval": 60 | |
}, | |
"check-haproxy": { | |
"command": "systemctl is-active haproxy || exit 2", | |
"subscribers": ["overcloud-haproxy"], | |
"interval": 60 | |
}, | |
"check-heat-api": { | |
"command": "systemctl is-active openstack-heat-api || exit 2", | |
"subscribers": ["overcloud-heat-api"], | |
"interval": 60 | |
}, | |
"check-heat-api-cfn": { | |
"command": "systemctl is-active openstack-heat-api-cfn || exit 2", | |
"subscribers": ["overcloud-heat-api-cfn"], | |
"interval": 60 | |
}, | |
"check-heat-api-cloudwatch": { | |
"command": "systemctl is-active openstack-heat-api-cloudwatch || exit 2", | |
"subscribers": ["overcloud-heat-api-cloudwatch"], | |
"interval": 60 | |
}, | |
"check-heat-engine": { | |
"command": "systemctl is-active openstack-heat-engine || exit 2", | |
"subscribers": ["overcloud-heat-engine"], | |
"interval": 60 | |
}, | |
"check-memcached": { | |
"command": "systemctl is-active memcached || exit 2", | |
"subscribers": ["overcloud-memcached"], | |
"interval": 60 | |
}, | |
"check-neutron-api": { | |
"command": "systemctl is-active neutron-server || exit 2", | |
"subscribers": ["overcloud-neutron-api"], | |
"interval": 60 | |
}, | |
"check-neutron-l3-agent": { | |
"command": "systemctl is-active neutron-l3-agent || exit 2", | |
"subscribers": ["overcloud-neutron-l3-agent"], | |
"interval": 60 | |
}, | |
"check-neutron-metadata-agent": { | |
"command": "systemctl is-active neutron-metadata-agent || exit 2", | |
"subscribers": ["overcloud-neutron-metadata"], | |
"interval": 60 | |
}, | |
"check-neutron-ovs-agent": { | |
"command": "systemctl is-active neutron-openvswitch-agent || exit 2", | |
"subscribers": ["overcloud-neutron-ovs-agent"], | |
"interval": 60 | |
}, | |
"check-nova-api": { | |
"command": "systemctl is-active openstack-nova-api || exit 2", | |
"subscribers": ["overcloud-nova-api"], | |
"interval": 60 | |
}, | |
"check-nova-compute": { | |
"command": "systemctl is-active openstack-nova-compute || exit 2", | |
"subscribers": ["overcloud-nova-compute"], | |
"interval": 60 | |
}, | |
"check-nova-conductor": { | |
"command": "systemctl is-active openstack-nova-conductor || exit 2", | |
"subscribers": ["overcloud-nova-conductor"], | |
"interval": 60 | |
}, | |
"check-nova-consoleauth": { | |
"command": "systemctl is-active openstack-nova-consoleauth || exit 2", | |
"subscribers": ["overcloud-nova-consoleauth"], | |
"interval": 60 | |
}, | |
"check-nova-libvirt": { | |
"command": "systemctl is-active libvirtd || exit 2", | |
"subscribers": ["overcloud-nova-libvirt"], | |
"interval": 60 | |
}, | |
"check-nova-novncproxy": { | |
"command": "systemctl is-active openstack-nova-novncproxy || exit 2", | |
"subscribers": ["overcloud-nova-vncproxy"], | |
"interval": 60 | |
}, | |
"check-nova-scheduler": { | |
"command": "systemctl is-active openstack-nova-scheduler || exit 2", | |
"subscribers": ["overcloud-nova-scheduler"], | |
"interval": 60 | |
}, | |
"check-pacemaker": { | |
"command": "systemctl is-active pacemaker || exit 2", | |
"subscribers": ["overcloud-pacemaker"], | |
"interval": 60 | |
}, | |
"check-swift-proxy": { | |
"command": "systemctl is-active openstack-swift-proxy || exit 2", | |
"subscribers": ["overcloud-swift-proxy"], | |
"interval": 60 | |
}, | |
"check-cinder-api-remote": { | |
"command": "/usr/libexec/openstack-monitoring/checks/oschecks-check_cinder_api --os-username :::openstack.username|admin::: --os-password :::openstack.password|pass::: --os-tenant-name :::openstack.project_name|admin::: --os-auth-url :::openstack.auth_url|https://overcloud.jexia.cloud:13000/v2.0:::", | |
"subscribers": ["monitoring-node"], | |
"interval": 60 | |
}, | |
"check-glance-api-remote": { | |
"command": "/usr/libexec/openstack-monitoring/checks/oschecks-check_glance_api --os-username :::openstack.username|admin::: --os-password :::openstack.password|pass::: --os-tenant-name :::openstack.project_name|admin::: --os-auth-url :::openstack.auth_url|https://overcloud.jexia.cloud:13000/v2.0:::", | |
"subscribers": ["monitoring-node"], | |
"interval": 60 | |
}, | |
"check-keystone-api-remote": { | |
"command": "/usr/libexec/openstack-monitoring/checks/oschecks-check_keystone_api --os-username :::openstack.username|admin::: --os-password :::openstack.password|pass::: --os-tenant-name :::openstack.project_name|admin::: --os-auth-url :::openstack.auth_url|https://overcloud.jexia.cloud:13000/v2.0:::", | |
"subscribers": ["monitoring-node"], | |
"interval": 60 | |
}, | |
"check-neutron-api-remote": { | |
"command": "/usr/libexec/openstack-monitoring/checks/oschecks-check_neutron_api --os-username :::openstack.username|admin::: --os-password :::openstack.password|pass::: --os-tenant-name :::openstack.project_name|admin::: --os-auth-url :::openstack.auth_url|https://overcloud.jexia.cloud:13000/v2.0:::", | |
"subscribers": ["monitoring-node"], | |
"interval": 60 | |
}, | |
"check-nova-api-remote": { | |
"command": "/usr/libexec/openstack-monitoring/checks/oschecks-check_nova_api --os-username :::openstack.username|admin::: --os-password :::openstack.password|pass::: --os-tenant-name :::openstack.project_name|admin::: --os-auth-url :::openstack.auth_url|https://overcloud.jexia.cloud:13000/v2.0:::", | |
"subscribers": ["monitoring-node"], | |
"interval": 60 | |
}, | |
"check-cinder-volume-remote": { | |
"command": "/usr/libexec/openstack-monitoring/checks/oschecks-check_cinder_volume --username :::openstack.username|admin::: --password :::openstack.password|pass::: --auth_url :::openstack.auth_url|https://overcloud.jexia.cloud:13000/v2.0::: --tenant :::openstack.tenant_name|admin:::", | |
"subscribers": ["monitoring-node"], | |
"interval": 240 | |
}, | |
"check-neutron_floating_ip-remote": { | |
"command": "/usr/libexec/openstack-monitoring/checks/oschecks-check_neutron_floating_ip --os-username :::openstack.username|admin::: --os-password :::openstack.password|pass::: --os-tenant-name :::openstack.project_name|admin::: --os-auth-url :::openstack.auth_url|https://overcloud.jexia.cloud:13000/v2.0:::", | |
"subscribers": ["monitoring-node"], | |
"interval": 240 | |
}, | |
"check-nova_instance-remote": { | |
"command": "/usr/libexec/openstack-monitoring/checks/oschecks-check_nova_instance --os-username :::openstack.username|admin::: --os-password :::openstack.password|pass::: --os-tenant-name :::openstack.project_name|admin::: --os-auth-url :::openstack.auth_url|https://overcloud.jexia.cloud:13000/v2.0:::", | |
"subscribers": ["monitoring-node"], | |
"interval": 240 | |
}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment