SonarQube Server
Software pattern summary
The following table gives an overview of the pattern characteristics:
| Product component | OS type | Versioning | Pattern depth |
|---|---|---|---|
| SonarQube Server | Unix | Path-based | Instance-based |
Platforms supported by the pattern
The pattern discovers SonarQube Server deployments on the UNIX system.
Identification
To run a discovery of the product, the pattern must be triggered by a Java process with arguments containing a reference to org.sonar.
Software instance triggers
The following table gives details about the pattern trigger:
| Pattern | Trigger node | Attribute | Condition | Argument |
|---|---|---|---|---|
| SonarQubeServer 1.0 | DiscoveredProcess | cmd | matches regex | java |
| ||args | matches regex | org\.sonar |
Software instance type attributes
The pattern in this module sets the following attribute:
| Pattern name | Software instance type |
|---|---|
| SonarQubeServer 1.0 | Sonar SonarQube Server |
Simple identification mappings
The following component is identified by using the simple identity mappings that map the product's known processes:
| Name | Command | Arguments |
|---|---|---|
| SonarQube Server | java | Contains org.sonar |
Versioning
Version information for the product is collected by using the path-based versioning method. The pattern extracts the version from the command path by matching patterns such as /opt/sonarqube-9.9.0.65466/bin/ by using the regex pattern sonarqube(?:_|\/|-|)?(\d(?:[\-_\.]?\d+)*). The extracted version is normalized by replacing hyphens and underscores with dots. The product version is derived from the full version by extracting the major and minor version numbers (for example, 9.9 from 9.9.0.65466).
Pattern trigger
The SonarQube Server pattern is triggered by detecting a Java process where the command arguments contain a reference to org.sonar that typically indicates a running SonarQube server instance. The pattern then extracts version information from the installation path and creates a software instance with the appropriate attributes, including full version, product version, and a unique key based on the software instance type and host.
SI depth
The SonarQube Server pattern creates an instance-based software instance. The key is based on the product type and host displayed in the following format: Sonar SonarQube Server/{host.key}
Subject matter expertise
Inputs from subject matter experts are welcome on any potential improvements to detection logic, version extraction, or extended component modeling that are not covered in this topic.
Testing
The pattern has been tested against the available customer data.