GeoEvent: System Monitor Input

883
3
07-17-2020 02:15 PM
EricIronside
Esri Regular Contributor
1 3 883

These days, the preferred method for monitoring a GeoEvent Server in a production system is the ArcGIS Monitor. But sometimes you want to just see/monitor the local system directly within GeoEvent to quickly evaluate how the system is performing (or alert you if it isn't performing well).  Below are instructions for deploying an input connector that will collect some basic information from your system and output it to a csv file.  You are free to modify the configuration once imported to write the data to a geodatabase and/or alert when certain parameters exceed certain tolerances.

Import the System Info Transport

Unzip the attached zip file below to a temporary location. You will deploy the new System Info Transport to your GeoEvent server.

Method 1: Copy to the deploy folder

Copy the .jar file from the temporary location into your GeoEvent Deploy directory. On Windows the default location for the deploy directory is:

c:\Program Files\arcgis\server\geoevent\deploy\ ).

Method 2: Import the .jar file using GeoEvent Manager

In GeoEvent Manager, navigate to Site > Components > Transports and press the Add Local Transport button. Press the Choose Files button, browse to the temporary location, select the .jar file, press Open, then press the Add button. Once the System Info Transport is deployed it will show up in your list of inbound transports within GeoEvent Manager on the Site > Components > Transports page (you may have to refresh the page).

Import the configuration

In GeoEvent Manager navigate to Site > GeoEvent > Configuration Store and press the Import Configuration button. Press the Choose File button, browse to the location of the GeoEventConfig SystemInfo.xml file, press the Open button, then press the Next button. Select Import Configuration and press the Import button. This will import the System Info Connector, GeoEvent Definition, Input, Output, and Geoevent Service for you.

Explore the connector

Navigate to Site > GeoEvent > Connectors  The connector utilizes the System Info Transport, which generates information in generic JSON format. The adapter is the Generic JSON Adapter. The following fields are hidden from the user since they are not used: Expected Date Format, Construct Geometry from Fields, X/Y/Z Geometry field, Default Spatial Reference, Learning Mode, As GeoJSON, and JSON Object Name. Note that the JSON Object Name is first default hard coded to ‘OperatingSystemInformation’.

The remaining fields can be left in the Shown Properties area. You may wish to modify the Update Interval, since the default value (1 second) may be too frequent for long term monitoring.

Explore the GeoEvent Definition

A default system-info-in GeoEvent Definition is supplied in the configuration with some basic parameters. You may wish to have the input re-generate a new GeoEvent Definition for you just to be sure that the properties reported on your system are the same. To do this, follow the steps below:

  1. Rename the system-info-in GeoEvent definition to something like system-into-in-orignal.
  2. Navigate to Services > Inputs > system-info and make the following change and save the input:
    1. Create GeoEvent Definition: Yes
    2. GeoEvent Definition Name (New): system-info-in-auto
  3. Run the input until at least one event is received, then turn the input off.
  4. Navigate to Site > GeoEvent > GeoEvent Definitions and make a copy of the site-info-in-auto GeoEvent Definition.
    1. Name the copy: site-info-in
    2. Save the copy
  5. Navigate back to Services > Inputs > system-info and make the following change and save the input:
    1. Create GeoEvent Definition: No
    2. GeoEvent Definition Name (Existing): system-info-in
  6. At this point you can delete the system-info-in-auto and system-info-in-original GeoEvent Definitions, since they are no longer used.

Explore the GeoEvent Service

The GeoEvent Service system-info using the system-info input to generate a system-info-in event every 60 seconds. These events are written directly to an output that writes the events to a csv file in the GeoEvent Backup folder.

By default this folder (on Windows) is located:

C:\ProgramData\Esri\GeoEvent\systeminfo\


These csv files will record the status of your server over time and can be easily manipulated in Excel to create graphs of the historical system resources. 

3 Comments
About the Author
Esri Professional Services Real-Time GIS Team GeoEvent Sr. Product Enginner