How to enable service monitoring in CWP Control Panel ServicesMonitor (systemd)

OnLinuxOn the server, keep the service running stably, for the websiteSEOVery important.

CWP Control PanelWill help you through service monitoring tools.

How to enable service monitoring in CWP Control Panel ServicesMonitor (systemd)

How to enable ServicesMonitor (systemd) in CWP control panel?

To enable service monitoring in CWP:

  1. connect to yourCWPinstallation
  2. FindServices Config->ServicesMonitor( systemd Option
  3. Select/Enter:
    Enable / Disable- This will enable/disable service monitoring.
    Email notificationsSend to - Enter the email address where you will receive notifications.
    Check every- time interval between checks
  4. Select the service you want to monitor, for example: mariadb.service, monit.service
  5. Click onSubmitbutton.You will see a confirmation message:
Service Monitoring is not enabled
Enabling monitoring in cron
MAILTO=cwp1@ chenweilaing.com
*/15 * * * * root /usr/local/bin/svcMonitor-systemd
Monitoring Enabled: Yes

Things to note

  • 如果systemd statusservice isUnknown.Monitoring will not work for services.
  • Selected services to monitor will be saved in file /usr/local/etc/services-monitor-systemdin.
  • Monitoring cron jobs can be found in the file/etc/cron.d/svcMonitor-systemdturn up.

You can also passchkconfigCommand to manually add/remove services:

chkconfig service_name on
chkconfig service_name off

For example, when all available services are enabled, we will display cron messages such as:

From: (Cron Daemon) <[email protected]>
Subject: Cron <root@cwp1> /usr/local/bin/svcMonitor-systemd

Restarted service amavisd.service on cwp1 at Sat Mar 31 01:00:01 EDT 2018 Job for amavisd.service failed because the control process exited with error code. See “systemctl status amavisd.service” and “journalctl -xe” for details.

Restarted service arp-ethers.service on cwp1 at Sat Mar 31 01:00:03 EDT 2018 Restarted service [email protected] on cwp1 at Sat Mar 31 01:00:04 EDT 2018 Failed to stop [email protected]: Unit name [email protected] is missing the instance name.

See system logs and ‘systemctl status [email protected]‘ for details.

Failed to get load state of [email protected]: Unit name [email protected] is missing the instance name.

Failed to start [email protected]: Unit name [email protected] is missing the instance name.

See system logs and ‘systemctl status [email protected]‘ for details.

Restarted service console-shell.service on cwp1 at Sat Mar 31 01:00:05 EDT 2018 Restarted service garb.service on cwp1 at Sat Mar 31 01:00:06 EDT 2018 Restarted service [email protected] on cwp1 at Sat Mar 31 01:00:07 EDT 2018 Failed to stop [email protected]: Unit name [email protected] is missing the instance name.

See system logs and ‘systemctl status [email protected]‘ for details.

Failed to get load state of [email protected]: Unit name [email protected] is missing the instance name.

Failed to start [email protected]: Unit name [email protected] is missing the instance name.

See system logs and ‘systemctl status [email protected]‘ for details.

Restarted service ntalk.service on cwp1 at Sat Mar 31 01:00:09 EDT 2018 Job for ntalk.service failed because a configured resource limit was exceeded. See “systemctl status ntalk.service” and “journalctl -xe” for details.

Restarted service rdisc.service on cwp1 at Sat Mar 31 01:00:10 EDT 2018 Job for rdisc.service failed because the control process exited with error code. See “systemctl status rdisc.service” and “journalctl -xe” for details.

Restarted service [email protected] on cwp1 at Sat Mar 31 01:00:17 EDT 2018 Failed to stop [email protected]: Unit name [email protected] is missing the instance name.

See system logs and ‘systemctl status [email protected]‘ for details.

Failed to get load state of [email protected]: Unit name [email protected] is missing the instance name.

Failed to start [email protected]: Unit name [email protected] is missing the instance name.

See system logs and ‘systemctl status [email protected]‘ for details.

Restarted service svnserve.service on cwp1 at Sat Mar 31 01:00:18 EDT 2018 Job for svnserve.service failed because the control process exited with error code. See “systemctl status svnserve.service” and “journalctl -xe” for details.

Restarted service tcsd.service on cwp1 at Sat Mar 31 01:00:19 EDT 2018 Job for tcsd.service failed because the control process exited with error code. See “systemctl status tcsd.service” and “journalctl -xe” for details.

Restarted service vzfifo.service on cwp1 at Sat Mar 31 01:00:20 EDT 2020

CWP Control Panel Enable ServicesMonitor (systemd) Video Tutorial

The following is how the CWP control panel in this article enables service monitoring ServicesMonitor (systemd)YouTubeVideo Tutorial▼

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "How to Enable ServicesMonitor (systemd) in the CWP Control Panel", which is helpful to you.

Welcome to share the link of this article:https://www.chenweiliang.com/cwl-1414.html

Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!

🔔 Be the first to get the valuable "ChatGPT Content Marketing AI Tool Usage Guide" in the channel top directory! 🌟
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!

 

Comment

Your email address will not be published. Required fields * Callout

scroll to top