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/nfs
ke 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.service
ho eaAfter
Ka 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
Rea u amohela ho mocha oa Telegraph oa blog ea Chen Weiliang ho fumana lintlha tsa morao-rao!
📚 Tataiso ena e na le boleng bo boholo, 🌟Ona ke monyetla o sa tloaelehang, se ke oa o fetoa! ⏰⌛💨
Share le rata haeba u rata!
Ho arolelana le lintho tseo u li ratang ke khothatso ea rona e tsoelang pele!