Jak włączyć monitorowanie usług w CWP Control Panel ServicesMonitor (systemd)

LinuxNa serwerze utrzymuj stabilne działanie usługi dla strony internetowejSEOBardzo ważne.

Panel sterowania CWPPomoże Ci poprzez narzędzia do monitorowania usług.

Jak włączyć monitorowanie usług w CWP Control Panel ServicesMonitor (systemd)

Jak włączyć ServicesMonitor (systemd) w panelu sterowania CWP?

Aby włączyć monitorowanie usług w CWP:

  1. połącz się ze swoimCWP安装
  2. ZnajdowaćKonfiguracja usług->Monitor usług( systemd )选项
  3. Wybierz/Wprowadź:
    Włącz / Wyłącz- Włącza/wyłącza monitorowanie usług.
    Email powiadomieniaWyślij do — wprowadź adres e-mail, na który będziesz otrzymywać powiadomienia.
    Sprawdź każdy- odstęp czasu między kontrolami
  4. Wybierz usługę, którą chcesz monitorować, na przykład: mariadb.service, monit.service
  5. Kliknij提交przycisk.Zobaczysz komunikat potwierdzający:
Service Monitoring is not enabled
Enabling monitoring in cron
MAILTO=cwp1@ chenweilaing.com
*/15 * * * * root /usr/local/bin/svcMonitor-systemd
Monitoring Enabled: Yes

Uwaga:

  • 如果stan systemuusługa jestUnknown,Monitorowanie nie będzie działać w przypadku usług.
  • Wybrane usługi do monitorowania zostaną zapisane w pliku /usr/local/etc/services-monitor-systemdw.
  • Monitorowanie zadań crona można znaleźć w pliku/etc/cron.d/svcMonitor-systemdpojawić się.

Możesz też przekazaćchkconfigPolecenie ręcznego dodawania/usuwania usług:

chkconfig service_name on
chkconfig service_name off

Na przykład, gdy wszystkie dostępne usługi są włączone, wyświetlimy komunikaty crona, takie jak:

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

Panel sterowania CWP Włącz ServicesMonitor (systemd) Samouczek wideo

Poniżej przedstawiono sposób, w jaki panel sterowania CWP umożliwia monitorowanie usług ServicesMonitor (systemd) w tym artykuleYouTubeSamouczek wideo▼

Nadzieja Chen Weiliang Blog ( https://www.chenweiliang.com/ ) udostępnił „Jak włączyć ServicesMonitor (systemd) w Panelu sterowania CWP”, który jest dla Ciebie pomocny.

Zapraszamy do udostępnienia linku do tego artykułu:https://www.chenweiliang.com/cwl-1414.html

Witamy na kanale Telegram bloga Chen Weiliang, aby uzyskać najnowsze aktualizacje!

🔔 Bądź pierwszą osobą, która otrzyma cenny „Przewodnik po użyciu narzędzia AI do marketingu treści ChatGPT” w głównym katalogu kanału! 🌟
📚 Ten przewodnik zawiera ogromną wartość, 🌟To rzadka okazja, nie przegap jej! ⏰⌛💨
Udostępnij i polub, jeśli chcesz!
Twoje udostępnianie i polubienia to nasza ciągła motywacja!

 

发表 评论

Twoj adres e-mail nie bedzie opublikowany. 必填 项 已 用 * 标注

przewiń na górę