Copyright (c) 2006-2014 MindTouch Inc.
This file and accompanying files are licensed under the MindTouch Master Subscription Agreement (MSA).
At any time, you shall not, directly or indirectly: (i) sublicense, resell, rent, lease, distribute, market, commercialize or otherwise transfer rights or usage to: (a) the Software, (b) any modified version or derivative work of the Software created by you or for you, or (c) MindTouch Open Source (which includes all non-supported versions of MindTouch-developed software), for any purpose including timesharing or service bureau purposes; (ii) remove or alter any copyright, trademark or proprietary notice in the Software; (iii) transfer, use or export the Software in violation of any applicable laws or regulations of any government or governmental agency; (iv) use or run on any of your hardware, or have deployed for use, any production version of MindTouch Open Source; (v) use any of the Support Services, Error corrections, Updates or Upgrades, for the MindTouch Open Source software or for any Server for which Support Services are not then purchased as provided hereunder; or (vi) reverse engineer, decompile or modify any encrypted or encoded portion of the Software.
A complete copy of the MSA is available at http://www.mindtouch.com/msa
To create a custom Alert specification. When you create a new Alert, several of the most common Alert specifications have already been predefined for your convenience. However, you may want to create your own custom Alert specification. This tutorial addresses this possibility.
Table of Contents
You can only create an alert specification for a variable that's being monitored (has a graph on the Dashboard Monitoring tab of your Deployment). The predefined list of metrics is based upon the monitoring graphs that are configured by default in all ServerTemplates published by RightScale via the appropriate monitoring setup script. (e.g. rightscale::setup_monitoring, SYS Monitoring install Windows, etc.)
However, there may be additional monitored metrics that are being monitored on your servers that are not listed in the dropdown menu. In such cases, you can follow the instructions below to create a custom alert specification.
The first step is to find a graph that you want to monitor. Go to the Monitoring tab of your deployment or server. Find a graph (of a server) for which you would like to create an alert specification.
Next, in a new browser window/tab, go to the Server's Alerts tab. Click New. In this example we are setting up alerts for monitoring the number of currently queued haproxy requests on the "PHP FE1" server. Instead of using one of the predefined alerts, selectthe --custom entry-- option.
To define a custom metric for collectd to monitor, you need to override the list of predefined metrics by defining one using the following format:
[plugin]-[plugin-instance]/[type]-[type-instance] (Refer to the screenshot of the preceding graph to see where to find this information.)
WARNING! For the current example, each user may have a different 'File' name. Under the Inputs tab, the value for LB_APPLISTENER_NAME defines the name of the plugin-instance. LB_APPLISTENER_NAME= text:phpapp. If you change this value, you must also change the filename for the alert specification, otherwise the alert specification will not work.
Next, you will need to provide basic information about the custom alert.
Example: haproxy_sessions current_queued:GAUGE:0:65535, current_session:GAUGE:0:65535
Note: Again, the type is 'haproxy_sessions' and the associated variables are 'current_queued' and 'current_session'. If range is 'u', it is unknown. Users can only enter one variable for each alert specification.
Once you've created the custom alert for this particular server, you can now use the "import alert" button to add the same alert to different Servers or ServerTemplates.
|Glossary | 用語 | 용어||Site Map | Site Help||Community||Corporate Site||Get Support||Dashboard Login|
|Doc Feedback||Product Feedback||Resources||MultiCloud Marketplace||Forums|
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.