Agent log files display the total count and size of log files. The following default values are displayed when not customized:

  • Log files: 3
  • Size: 2 MB each

Log file customization

You can modify the size and number of log files using the config.properties file where you can assign count of log files and assign a specific common size to all. The maximum size of agent log file is 100 MB.

For example, if you have assigned 4 as count of Log files, you can assign 25 MB for size. Each log file is assigned the same size. So, if you want to have five log files, for 100 MB you need to assign 20 MB as size.

To customize the log files:

  1. Open the configuration.properties file from the Agent installation directory.
    • For Windows: C:\Program Files (x86)\OpsRamp\Agent\conf\configuration.properties
    • For Linux: \opt\opsramp\agent\conf\configuration.properties
  2. Modify the numbers as required in the Log section of the configuration.properties file. For example:
log_file_count = 4
log_file_size_mb = 25

If the total size assigned crosses 100 MB, the system automatically reduces the overall size to 100 MB. The config.properties file is updated accordingly with the assigned values.

Log debug mode

The default mode for agent logs is Warning. Often, specially when using custom monitors, debug mode for agent logs is required. Debug mode can be enabled using the console.

Prerequisites

  • Agent is online.
  • You have access to Remote Command function.
  • Agent has Remote Command functionality enabled. During agent installation, you can opt to enable multiple functions for an Agent.

Enable log debug mode

  1. Navigate to Infrastructure, select a device, and click the Remote Command icon.
    The Commands screen is displayed.
  2. From the drop-down menu of Commands Name, select Enable Agent Log Debug Mode.
  3. From the drop-down menu of Duration, select the time.
    Available options for Duration are: 10, 30 and 60 minutes. Based on the time selected, the debug mode is enabled for that duration.
    For example, if you select 30 minutes agent log level changes to debug mode only for 30 minutes from the time of executing command. After the specified duration, the Agent logs revert to the default log level: Warning.
  4. Click Execute Command. A confirmation message is displayed.

The agent log status changes to Debug mode for the specified duration.

View agent log files

You can view agent log files directly from the OpsRamp console. Viewing log files often helps while working with a custom monitor or for resolving agent-related issues. From the console, you can also copy the agent log files.

To view the agent log files, the following are required:

  • The agent is online.
  • Access is available to the remote command function.
  • The remote command functionality is enabled for the agent.

During agent installation, you can opt to enable multiple functions for an agent.

To view (and copy) agent log files:

  1. Go to Infrastructure, select a device, and click the Remote Command icon.
  2. From the Command Name drop-down menu, select Show Recent Agent Log.
  3. From the Number of Lines drop-down menu, select the number.
    • Available options for lines are: 100, 200, and 500 lines. Based on the number selected, the log files are displayed on the same screen. Then, you can use the clipboard to copy the displayed lines of log files.
    • For example, if you select 200 lines, 200 lines of log files display on the same command screen. Log files may exceed 200 lines. But, this option displays the latest 200 lines only.
  4. Click Execute Command.

The commands screen displays the latest specified number of lines for the agent log files and provides the option to copy.

View agent version numbers

The release version numbers of the agent for Windows and Linux are different. With an effort to introduce standard version number, OpsRamp is using the N-2 policy wherein N represents the latest release version; 2 indicates two versions prior than N. All versions lower than N-2 are considered deprecated.

The release version number represents the new version number while the Agent version number indicates old version number. You can find the release version numbers from the OpsRamp console.

To view the version number:

  1. Go to Infrastructure > Resources.
  2. Select a Device and from the left tab and click Attributes.
    The page displays information about the selected device.
  3. Scroll down the page and click More Information.
    The Agent Release Version is displayed.
Type of AgentAgent Version NumberAgent Release Version
Linux agent5.4.1-15.4.1(5.4.1-1)
Windows agent6.00.00285.4.1(6.00.0028)
Deprecated Linux agent5.0.1-1Deprecated(5.0.1-1)
Deprecated Windows agent6.00.0006Deprecated(6.00.0006)