كيفية تمكين مراقبة الخدمة في CWP Control Panel ServicesMonitor (systemd)

لينكسعلى الخادم ، حافظ على تشغيل الخدمة بثبات للموقعتحسين محركات البحثمهم جدا.

لوحة تحكم CWPسوف تساعدك من خلال أدوات مراقبة الخدمة.

كيفية تمكين مراقبة الخدمة في CWP Control Panel ServicesMonitor (systemd)

كيفية تمكين ServicesMonitor (systemd) في لوحة تحكم CWP؟

لتمكين مراقبة الخدمة في CWP:

  1. الاتصال بكفريق العمل安装
  2. 查找تكوين الخدمات-> مراقبة الخدمات( سيستم دي )选项
  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في.
  • يمكن العثور على مهام مراقبة كرون في الملف/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) يوتيوبفيديو تعليمي ▼

مدونة Hope Chen Weiliang ( https://www.chenweiliang.com/ ) شارك "كيفية تمكين ServicesMonitor (systemd) في لوحة تحكم CWP" ، وهو أمر مفيد لك.

مرحبا بكم في مشاركة رابط هذه المقالة:https://www.chenweiliang.com/cwl-1414.html

مرحبًا بك في قناة Telegram الخاصة بمدونة Chen Weiliang للحصول على آخر التحديثات!

🔔 كن أول من يحصل على "دليل استخدام أداة الذكاء الاصطناعي لتسويق محتوى ChatGPT" في الدليل العلوي للقناة! 🌟
📚 يحتوي هذا الدليل على قيمة كبيرة، 🌟هذه فرصة نادرة، لا تفوتها! ⏰⌛💨
شارك و اعجبك اذا اردت
مشاركتك وإعجاباتك هي دافعنا المستمر!

 

发表 评论

لن يتم نشر عنوان بريدك الإلكتروني. 必填 项 已 用 * 标注

انتقل إلى أعلى