Sengoli sa Lingoloa
Software ea ho beha leihlo ea Monit e hloleha ho qala ho beha leihlo.

Monit e qala ts'ebetso ea ho beha leihlo mme ea nyamela, e susumetsa monit.tšebeletso faiLED.
Kamora ho kenya software ea ho beha leihlo ea Monit phanele ea taolo ea CWP (CWP7) , ts'ebetso ea ho beha leihlo ea Monit ea nyamela, 'me molaetsa o reng "monit.service e hlolehile" oa hlaha.
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.
Re tšepa hore sengoloa se reng "Ho rarolla ts'ebetso ea tlhokomelo ea Monit ho nyamela ha ho qala: monit.service e hlolehile." se arolelanoeng ho blog ea Chen Weiliang ( https://www.chenweiliang.com/ ) se tla u thusa.
Ikutloe u lokolohile ho arolelana sehokelo sa sengoloa sena: https://www.chenweiliang.com/cwl-1422.html
