Server Scout's service status monitoring helps you keep track of critical services running on your Linux servers. This feature automatically checks the status of essential services and alerts you when they go down, ensuring you can respond quickly to service failures.
Enabling Services Monitoring
The services metric is enabled by default when you install the Server Scout agent. If you need to enable it manually, edit your Server Scout configuration file:
sudo nano /opt/scout-agent/agent.env.yml
Ensure the services section is configured:
metrics:
services:
enabled: true
After making changes, restart the Server Scout agent:
sudo systemctl restart serverscout
Default Services Monitored
Server Scout monitors 16 common services by default, automatically detecting which ones are present on your system:
- sshd - SSH daemon for remote access
- nginx - Nginx web server
- httpd - Apache HTTP Server (CentOS/RHEL)
- apache2 - Apache HTTP Server (Debian/Ubuntu)
- mysql - MySQL database server
- mariadb - MariaDB database server
- postgresql - PostgreSQL database server
- postfix - Postfix mail transfer agent
- exim - Exim mail transfer agent
- dovecot - Dovecot IMAP/POP3 server
- named - BIND DNS server
- docker - Docker container platform
- fail2ban - Intrusion prevention system
- redis - Redis in-memory data store
- memcached - Memcached caching system
- php-fpm - PHP FastCGI Process Manager
The agent uses systemctl is-active to check each service's status, providing real-time information about whether services are running, stopped, or failed.
Viewing Service Status
Service status information appears prominently on your server's detail page in the Server Scout dashboard. You'll see:
- Service name and current status (Active, Inactive, Failed)
- Status indicators with colour-coded badges for quick identification
- Historical data showing service uptime and downtime patterns
- Last check timestamp to confirm monitoring is current
Services are grouped logically, making it easy to quickly assess the health of web servers, databases, mail services, and other critical components.
Setting Up Service Alerts
To receive notifications when critical services fail:
- Navigate to your server's settings page in the Server Scout dashboard
- Click on "Alert Rules" or "Notifications"
- Create a new alert rule with these parameters:
- Metric: Services - Condition: Service status equals "failed" or "inactive" - Duration: How long the service must be down before alerting (e.g., 2 minutes) - Services: Select specific services or choose "all monitored services"
- Configure notification methods (email, Slack, webhook, etc.)
- Save the alert rule
You can create different alert rules for different service categories. For example, set immediate alerts for critical services like SSH or your web server, whilst allowing longer grace periods for less critical services.
Non-systemd Systems
For servers without systemd, Server Scout gracefully falls back to alternative methods:
- SysV init systems: Uses
service statuscommands - Process-based checking: Looks for running processes when service commands aren't available
- Custom scripts: Supports custom health check scripts for specific services
The agent automatically detects your system's init system and adapts accordingly, ensuring service monitoring works across different Linux distributions and configurations.
Best Practices
- Regular monitoring: Check your service status dashboard regularly to spot patterns
- Test alerts: Temporarily stop a non-critical service to verify your alerts work
- Customise monitoring: Add custom services specific to your applications
- Document dependencies: Note which services depend on others for faster troubleshooting
Service status monitoring in Server Scout provides essential visibility into your server's health, helping you maintain uptime and respond quickly to issues before they impact your users.
Frequently Asked Questions
How do I enable service monitoring in ServerScout?
What services does ServerScout monitor by default?
How does ServerScout check service status on Linux?
How do I set up alerts for failed services?
Does ServerScout work on non-systemd Linux systems?
Where can I view service status in ServerScout?
Can I monitor custom services with ServerScout?
Was this article helpful?