วิธีเปิดใช้งานการตรวจสอบบริการใน CWP Control Panel ServicesMonitor (systemd)

ลินุกซ์บนเซิร์ฟเวอร์ ให้บริการทำงานอย่างเสถียรสำหรับเว็บไซต์SEO (Search Engine Optimization)สำคัญมาก.

แผงควบคุม CWPจะช่วยคุณผ่านเครื่องมือตรวจสอบบริการ

วิธีเปิดใช้งานการตรวจสอบบริการใน CWP Control Panel ServicesMonitor (systemd)

วิธีเปิดใช้งาน ServicesMonitor (systemd) ในแผงควบคุม CWP

ในการเปิดใช้งานการตรวจสอบบริการใน CWP:

  1. เชื่อมต่อกับ .ของคุณCWP安装
  2. หาบริการ Config->ServicesMonitor( systemd )ตัวเลือก
  3. เลือก/ป้อน:
    เปิด / ปิด- สิ่งนี้จะเปิด/ปิดการตรวจสอบบริการ
    Email การแจ้งเตือนส่งไปที่ - ป้อนที่อยู่อีเมลที่คุณจะได้รับการแจ้งเตือน
    ตรวจสอบทุก- ช่วงเวลาระหว่างเช็ค
  4. เลือกบริการที่คุณต้องการตรวจสอบ เช่น mariadb.service, monit.service
  5. คลิก提交ปุ่ม.คุณจะเห็นข้อความยืนยัน:
Service Monitoring is not enabled
Enabling monitoring in cron
MAILTO=cwp1@ chenweilaing.com
*/15 * * * * root /usr/local/bin/svcMonitor-systemd
Monitoring Enabled: Yes

ข้อควรระวัง:

  • 如果สถานะระบบบริการคือUnknown,การตรวจสอบจะไม่ทำงานสำหรับบริการ
  • บริการที่เลือกเพื่อตรวจสอบจะถูกบันทึกไว้ในไฟล์ /usr/local/etc/services-monitor-systemdใน.
  • การตรวจสอบงาน cron สามารถพบได้ในไฟล์/etc/cron.d/svcMonitor-systemdเปิดขึ้น

คุณยังสามารถผ่านchkconfigคำสั่งเพื่อเพิ่ม/ลบบริการด้วยตนเอง:

chkconfig service_name on
chkconfig service_name off

ตัวอย่างเช่น เมื่อเปิดใช้งานบริการที่มีอยู่ทั้งหมด เราจะแสดงข้อความ cron เช่น:

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 เปิดใช้งาน ServicesMonitor (systemd) วิดีโอสอน

ต่อไปนี้เป็นวิธีที่แผงควบคุม CWP ในบทความนี้เปิดใช้งานการตรวจสอบบริการ ServicesMonitor (systemd)YouTubeวิดีโอสอนการใช้งาน▼

หวัง Chen Weiliang บล็อก ( https://www.chenweiliang.com/ ) แชร์ "วิธีเปิดใช้งาน ServicesMonitor (systemd) ในแผงควบคุม CWP" ซึ่งเป็นประโยชน์กับคุณ

ยินดีต้อนรับสู่การแบ่งปันลิงค์ของบทความนี้:https://www.chenweiliang.com/cwl-1414.html

หากต้องการปลดล็อคเคล็ดลับที่ซ่อนอยู่เพิ่มเติม ยินดีต้อนรับเข้าร่วมช่อง Telegram ของเรา!

แชร์และกดไลค์ถ้าคุณชอบ! การแชร์และการถูกใจของคุณคือแรงบันดาลใจอย่างต่อเนื่องของเรา!

 

发表评论

ที่อยู่อีเมลของคุณจะไม่ถูกเผยแพร่ 必填项已用 * 标注

เลื่อนไปที่ด้านบน