You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

This article describes how to adjust the thresholds that are used to determine coloring within the Uptime Infrastructure Monitor Global Scan performance fields for all elements or for individual elements.

Understanding what each field represents

Before you change Global Scan thresholds, refer to the table below for a description of each field that you can control and the associated setting name that is used later in this article.

Performance FieldDescriptionDataStore Setting Nameuptime.conf Setting Name
TOTThe overall CPU % busy.

gs_cpu_warn

gs_cpu_crit

globalscan.cpu.warn

globalscan.cpu.crit

% UsedThe capacity of the file system that is most full on the element.

gs_diskfull_warn

gs_diskfull_crit

globalscan.diskfull.warn

globalscan.diskfull.crit

% BusyThe work time of the busiest spindle on the element.

gs_diskbusy_warn

gs_diskbusy_crit

globalscan.diskbusy.warn

globalscan.diskbusy.crit

Swap UsedTotal swap space used.

gs_swap_warn

gs_swap_crit

globalscan.swap.warn

globalscan.swap.crit

Each field has two setting names: one to control the warning (yellow) threshold and another to set the critical (red) threshold. You can modify one or both settings. The setting to update for warning thresholds includes the word "warn" in the setting and the critical threshold setting includes the word "crit" in the setting name.

Changing thresholds for all elements

To change the current thresholds for all elements within your UIM installation, complete the following steps:

  1. Connect to your up.time DataStore using an ODBC or database tool. Assuming that you have installed Uptime Infrastructure Monitor in the default location, you can access the DataStore at the command line using the following commands:
    «change to the Uptime installation directory» 
    cd mysql
    cd bin
    ./mysql -u uptime --password=uptime -P 3308 --protocol=TCP uptime
  2. After you login to the UIM DataStore, run a command to update the threshold that you want to use with all elements. The command format and an example are detailed below. Replace the «field» text in the example below with a value from the DataStore setting name column in the table above. Replace the «new value» text in the example below with your new threshold setting (decimal values are not permitted for thresholds).

    All mysql commands assume that you are using a MySQL DataStore. The format of the commands may differ slightly for Oracle or SQL Server databases.

    mysql» update entity set «field»=«new value»;
    
    Example
    mysql» update entity set gs_swap_warn=50 
    mysql» update entity set gs_swap_crit=75
  3. Run the command above for each threshold value that you want to change. When you are finished, use the exit; command to return to the command line.
  4. Refresh your Global Scan view to see the new settings.

Changing thresholds for a single element

To change the current thresholds for a single element within your UIM installation

  1. Connect to your UIM DataStore using an ODBC or database tool. See the example above for details on accessing the default DataStore installation.
  2. Run the following two commands to update the threshold for a specific element:
    The first command looks up the ID of the element that you want to update, and the second command applies the change. The command formats and an example are detailed below.
    Replace the «display» text in the example below with the display name of the element for which you want to change the thresholds. Replace the «field» text in the example below with a value from the DataStore setting name column in the table above. Replace the «new value» text in the example below with your new threshold setting. The first command returns a value used to replace the «id» text within the second command (you cannot use decimal values for the new threshold).
    mysql» select entity_id from entity where display_name='«display»'; 
    mysql» update entity set «field»=«new value» where entity_id=«id»;
    
    Example:
    mysql» select entity_id from entity where display_name='my server'; 
    ------
    | 23 |
    ------
    mysql» update entity set gs_swap_warn=50 where entity_id=23; 
    mysql» update entity set gs_swap_crit=75 where entity_id=23;
  3. Run the command above for each threshold value that you want to change. When finished, use the exit; command to be returned to the command line.
  4. Refresh your Global Scan view to see the new settings.

Changing the default values for new elements

To configure different default Global Scan threshold settings for all new elements that you add to UIM

  1. On your monitoring station system, open the uptime.conf file in a text editor. The uptime.conf file is located in the base UIM installation folder.
  2. Locate the following lines in the file:
    globalscan.cpu.warn=70 
    globalscan.cpu.crit=90 
    globalscan.diskbusy.warn=70 
    globalscan.diskbusy.crit=90 
    globalscan.diskfull.warn=70 
    globalscan.diskfull.crit=90 
    globalscan.swap.warn=70 
    globalscan.swap.crit=90
  3. Edit the values after the = character to reflect the default Global Scan thresholds that you want to use for new elements added to UIM.
  4. Save the file, and then exit the text editor.
  5. Restart the UIM core service.
    On Solaris and Linux monitoring stations, restart the uptime_core service. On Windows monitoring stations, restart the up.time Data Collector service.
    All elements that you add to UIM use the Global Scan thresholds specified in the uptime.conf file.
  • No labels