Sengoli sa Lingoloa
Monit monitoring软件E hlolehile ho qala ho beha leihlo qalong.

Monit e qala ts'ebetso ea ho beha leihlo mme ea nyamela, e susumetsa monit.tšebeletso faiLED.
HoCWP Control Panel (CWP7) ho kenya Monit monitoringKa mor'a hore software e kenngoe, mokhoa oa ho beha leihlo oa ho qala ha Monit oa nyamela, 'me ho hlaha molaetsa: monit.service e hlōlehile.
Ke habohlokoa ho hlokomela hore ho entsoe boiteko ba ho thusasystemctl enable monit
[root@stage-web-1 vagrant]# systemctl status monit
monit.service - Pro-active monitoring utility for unix systems
Loaded: loaded (/usr/lib/systemd/system/monit.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2017-06-01 16:37:00 UTC; 6min ago
Process: 1131 ExecStop=/usr/bin/monit quit (code=exited, status=1/FAILURE)
Process: 1079 ExecStart=/usr/bin/monit -I (code=exited, status=1/FAILURE)
Main PID: 1079 (code=exited, status=1/FAILURE)
Jun 01 16:37:00 stage-web-1 systemd[1]: Started Pro-active monitoring utility for unix systems.
Jun 01 16:37:00 stage-web-1 systemd[1]: Starting Pro-active monitoring utility for unix systems...
Jun 01 16:37:00 stage-web-1 monit[1079]: Error opening the log file '/var/www/html/nfs/monit/stage-web-1.log' for writing -- No such file or directory
Jun 01 16:37:00 stage-web-1 systemd[1]: monit.service: main process exited, code=exited, status=1/FAILURE
Jun 01 16:37:00 stage-web-1 monit[1131]: Error opening the log file '/var/www/html/nfs/monit/stage-web-1.log' for writing -- No such file or directory
Jun 01 16:37:00 stage-web-1 systemd[1]: monit.service: control process exited, code=exited status=1
Jun 01 16:37:00 stage-web-1 systemd[1]: Unit monit.service entered failed state.
Jun 01 16:37:00 stage-web-1 systemd[1]: monit.service failed.Lintlha li bontša hore ho joalo/var/www/html/nfske foldara e kentsoeng ho netweke drive ka NFS.
Monit e qalile pele ho NFS, kahoo foldara e ne e e-so be teng, e bakang phoso ea monitError opening the log file '/var/www/html/nfs/monit/stage-web-1.log' for writing -- No such file or directory.
Mokhoa oa ho rarolla ho nyamela ha mokhoa oa ho qala oa ho beha leihlo Monit.service o hlolehile.?
Tharollo ke ho fetola/lib/systemd/system/monit.service:
[Unit] Description=Pro-active monitoring utility for unix systems After=network.target [Service] Type=simple ExecStart=/usr/bin/monit -I ExecStop=/usr/bin/monit quit ExecReload=/usr/bin/monit reload [Install] WantedBy=multi-user.target
le eketsanfs.serviceho eaAfterKa morao.Sephetho sa ho qetela se shebahala tjena:
[Unit]
Description=Pro-active monitoring utility for unix systems
After=network.target nfs.service
[Service]
Type=simple
ExecStart=/usr/bin/monit -I
ExecStop=/usr/bin/monit quit
ExecReload=/usr/bin/monit reload
[Install]
WantedBy=multi-user.target
Monit monitor joale e ka qala ka katleho ka nako ea boot.
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) o ile a arolelana "Ho Rarolla Monit Startup Monitoring Process Disappearance Monit.service hlolehile.", e leng thuso ho uena.
Rea u amohela ho arolelana sehokelo sa sengoloa sena:https://www.chenweiliang.com/cwl-1422.html
Ho notlolla maqheka a patiloeng🔑, rea u amohela ho kenela mocha oa rona oa Telegraph!
Share le ho rata haeba u e rata! Likabelo tsa hau le tseo u li ratileng ke khothatso ea rona e tsoelang pele!