CWP Control Panel ServicesMonitor (systemd) मा सेवा निगरानी कसरी सक्षम गर्ने

लिनक्ससर्भरमा, वेबसाइटको लागि सेवा स्थिर रूपमा चलिरहेको राख्नुहोस्एसईओधेरै महत्वपूर्ण।

CWP नियन्त्रण प्यानलसेवा निगरानी उपकरणहरू मार्फत तपाईंलाई मद्दत गर्नेछ।

CWP Control Panel ServicesMonitor (systemd) मा सेवा निगरानी कसरी सक्षम गर्ने

CWP नियन्त्रण प्यानलमा ServicesMonitor (systemd) कसरी सक्षम गर्ने?

CWP मा सेवा निगरानी सक्षम गर्न:

  1. आफ्नो जडान गर्नुहोस्CWPलगाइयो
  2. फेला पार्नुहोस्सेवा कन्फिगरेसन-> सेवाहरू मनिटर( 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भित्र
  • अनुगमन क्रोन कार्यहरू फाइलमा फेला पार्न सकिन्छ/etc/cron.d/svcMonitor-systemdमध्यममाथि उठ्नुहोस्।

तपाईं पनि पास गर्न सक्नुहुन्छchkconfigम्यानुअल रूपमा सेवाहरू थप्न/हटाउन आदेश:

chkconfig service_name on
chkconfig service_name off

उदाहरणका लागि, जब सबै उपलब्ध सेवाहरू सक्षम हुन्छन्, हामी क्रोन सन्देशहरू प्रदर्शन गर्नेछौं जस्तै:

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 नियन्त्रण प्यानलले कसरी सेवा निगरानी सेवाहरू मनिटर (प्रणाली) सक्षम गर्दछ निम्न छ।YouTubeभिडियो ट्यूटोरियल▼

आशा चेन वेइलियाङ ब्लग ( https://www.chenweiliang.com/ ) "कसरी CWP कन्ट्रोल प्यानलमा ServicesMonitor (systemd) सक्षम गर्ने" साझा गर्नुभयो, जुन तपाईलाई उपयोगी छ।

यस लेखको लिङ्क साझा गर्न स्वागत छ:https://www.chenweiliang.com/cwl-1414.html

नवीनतम अपडेटहरू प्राप्त गर्न चेन वेइलियाङको ब्लगको टेलिग्राम च्यानलमा स्वागत छ!

🔔 च्यानल शीर्ष डाइरेक्टरीमा बहुमूल्य "ChatGPT सामग्री मार्केटिङ एआई उपकरण उपयोग गाइड" प्राप्त गर्ने पहिलो बन्नुहोस्! 🌟
📚 यो गाइडले ठूलो मूल्य समावेश गर्दछ, 🌟यो दुर्लभ अवसर हो, यसलाई नछुटाउनुहोस्! ⏰⌛💨
मन परे लाइक र सेयर गर्नुहोस !
तपाइँको साझा र लाइक हाम्रो निरन्तर प्रेरणा हो!

 

评论 评论

तपाईको इ-मेल ठेगाना प्रकाशित हुँदैन। आवाश्यक फिल्डहरू प्रयोग भएको छ * लेबल

शीर्षमा स्क्रोल गर्नुहोस्