Table of Contents
MetricsHub
MetricsHub Enterprise 2.1.00
-
Home
- Custom Monitoring
Linux Service Monitoring
You can configure MetricsHub to monitor a Linux service. In the example below, we configured MetricsHub to monitor the httpd
service running on the prod-web
resource using SSH.
Procedure
To achieve this use case, we:
- Declare the resource to be monitored (
prod-web
) and its attributes (host.name
,host.type
)
resources:
prod-web:
attributes:
host.name: prod-web
host.type: linux
- Configure the
SSH
protocol withcredentials
andtimeout
protocols:
ssh:
username: <username>
password: <password>
timeout: 30
- Add a new instance of the
LinuxService
[1] connector for the monitoring of thehttpd
service, and name itLinuxServiceHttpd
for example:
additionalConnectors:
LinuxServiceHttpd:
uses: LinuxService
- Set the variable
serviceNames
to specify the service to monitor (httpd
)
variables:
serviceNames: httpd
Here is the complete YAML configuration:
resources:
prod-web:
attributes:
host.name: prod-web
host.type: linux
protocols:
ssh:
username: <username>
password: <password>
timeout: 30
additionalConnectors:
LinuxServiceHttpd:
uses: LinuxService
variables:
serviceNames: httpd
Supporting Resources
Search Results for {{siteSearch | truncate:'50'}}
{{resultArray.length}}
No results.