Service Monitoring
The Service section is where you configure Agents to monitor external websites or servers.
Once a service monitor is set up, you can view the availability results from the past 30 days by clicking the Service
icon on the homepage.
How to Use
Add a New Service Monitor
Follow these steps to add a new service monitor:
Access the Admin Panel
Go to theServices
page and click the+
button to add a new service monitor.Configure Parameters
When adding a monitor, fill in the following details:- Name: Give the service a custom name.
- Target: Set the target based on the monitoring type:
HTTP GET
: Enter a complete URL (includinghttp://
orhttps://
), e.g.,https://example.com
.
Note: If the target URL useshttps://
, Nezha Monitoring will also monitor its SSL certificate. Notifications will be triggered for certificate expiration or changes.ICMP Ping
: Enter a domain or IP address (without a port number), e.g.,1.1.1.1
orexample.com
.TCP Ping
: Enter a domain or IP address with a port number, e.g.,1.1.1.1:80
orexample.com:22
.
- Type: Choose the monitoring type (
HTTP GET
,ICMP Ping
, orTCP Ping
). - Display in Services: Choose whether this monitor is visible to guest users (privacy option).
- Interval: Set the monitoring interval (in seconds).
- Coverage Scope: Select a rule to determine which Agents will request the target.
- Specific Servers: Specify which Agents within the coverage scope will perform the monitoring.
- Notification Group ID: Choose a pre-configured notification method from the
Notifications
page. See Notification Configuration for details. - Enable Failure Notification: Optionally enable notifications for target failures (disabled by default).
Submit the Monitor
Click theSubmit
button to save the configuration. Wait a few moments, then check the homepage for monitoring results.
Delay Change Notifications
Nezha Monitoring tracks and records the latency between Agents and target servers. When significant latency changes occur, notifications can be sent to help monitor network conditions.
- Enable Delay Notification: Once enabled, notifications will be sent when latency exceeds the specified range (
Max Latency
orMin Latency
).
Trigger Tasks on Notifications
To execute specific tasks when a service monitor triggers a notification:
- Check the
Enable Trigger Tasks
option. - Configure:
- Tasks on Alarm Trigger: Select the task to execute when an alarm is triggered.
- Tasks on Recovery: Select the task to execute when the service returns to normal.
Tasks must be pre-configured in the Tasks
page before using this feature.
Network Latency Charts
For TCP-Ping
and ICMP-Ping
monitoring types, the Dashboard automatically generates network latency charts:
- Open the details page of the target server and switch to the
Network
tab. - View historical network latency trends. Data is based on real-time latency statistics between the Agent and the target server.
Manage Monitors
To edit or delete an existing service monitor:
- Go to the
Services
page in the management panel. - Locate the desired monitor configuration.
- Click the edit or delete icon on the right to modify or remove the monitor.