python-monascaclient/examples/monasca-nagios.txt

37 lines
1.2 KiB
Plaintext

Nagios style monasca plugin
===========================
check_monasca.py is a Nagios style plugin to query a monasca endpoint based dimensions and values. It is best called via a wrapper script that will set the following environment variables.
OS_USERNAME - a keystone user
OS_PASSWORD - user password
OS_PROJECT_NAME - Default
OS_AUTH_URL - Keystone URL
OS_MONASCA_URL ( note monasca URL should be something like http://192.168.1.10:8070/v2.0 )
Then the script should be called with the relevant dimensions and values.
e.g
check_monasca.py -d service -v nova - for all nova alarms
check_monasca.py -d hostname -v server1 - for all alarms relating to server1.
License
-------
(C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
See the License for the specific language governing permissions and
limitations under the License.