Set up a Site Availability Monitor (SAM) connector
Setting up the SAM connector allows you to monitor the uptime of your cloud-based web applications and notify business and application owners and administrators of problems before they impact your organization.
As part of setting up the connector, you upload a configuration file that includes one or more sites to monitor. After you add your SAM connector, Zenoss uses the Site Availability Monitor template to create your dashboard.
Events are automatically created. You can view them in the Events console.
Perform the following steps to set up your Site Availability Monitor (SAM) connector. For more information, see Site Availability Monitor (SAM).
Log in to Zenoss Cloud as a user with the Manager role, and then open the ADMIN > Connectors page.
On the Site Availability Monitor card in the Monitors section, click ADD.
In Site Availability Monitor details, add information about your application.
In the Name field, enter a unique name for your connector. The name you choose is used as the source name for the data that Zenoss Cloud collects.
(Optional) In the Description field, enter text to associate with your connector.
Keep the Connector type as Site Availability Monitor.
(Optional) In the Tags field, enter one or more terms to associate with your connector.
In Configuration, choose a configuration file to upload.
Click the Sample Config button to download a sample configuration file. SAM configuration files are written in YAML. Alternatively, view the sample configuration by hovering your mouse over the info icon.
Customize the sample configuration file or create a new file based on the syntax of the sample. To learn more about the configuration options in the file, see Using the sample configuration file.
Click the upload icon or the filename field and choose your configuration file.
Click SAVE. A confirmation dialog box appears, asking you if you want to create a new dashboard.
(Optional) In the confirmation dialog box, choose CREATE DASHBOARD to create a new dashboard using the SAM template for your connector.
In the NAME DASHBOARD dialog box, enter a unique name for your dashboard.
When you see the success message, click DASHBOARDS to view your dashboard for the SAM connector. Zenoss creates the dashboard using the Site Availability Monitor template, so your dashboard might look similar to the following image:
For more information about the default SAM dashboard template, see Site Availability Monitor template.
Using the sample configuration file
Zenoss includes a sample YAML configuration file that you can use as the basis for your own connector. The content is similar to the following file content:
You can use a single configuration file to monitor multiple URLs (
example-02). Use the following tables of URL configuration options and values to set up your web applications with SAM:
|integer followed by
|The cycle time in seconds, minutes, or hours used to poll the URL and any defined subpages.
|The URL to be polled.
|Set this flag to
true to enable the URL and its subpages for monitoring. Set to
false to turn off monitoring of the URL and its subpages. When a site is added, but monitoring is turned off, then the status shows as Unknown in the dashboard.
Subpage configuration options include the following:
|string with no leading
/ character. If you want to monitor the root of a website, set this value to
|The path to an individual page or root of a website that the connector should monitor.
|The HTTP method that the connector uses to poll the page.
Set site availability monitoring for a specific site
You can set site availability monitoring for specific sites in the configuration file. This setting is useful if you are an administrator overseeing a large number of sites, but don’t want to see all of the sites in the SAM tile.
Whether you set the
send_metrics flag to either
false, Zenoss creates events that are shown in the Events console. However, if the
send_metrics flag is set to
false, then data for the site doesn’t appear in Smartview.
For these sites, do the following:
Open the configuration file.
Locate or add the URL you don’t want to monitor in the SAM tile of your dashboard.
false. This setting turns off monitoring of the URL and its subpages.
When a site is added, but monitoring is turned off, then the status shows as Unknown.