Use this command link the file from available to enabled. That monit configuration file is in the conf-available and not the conf-enabled. This probably is not used but in case Z-Way does start to spawn child processes if it gets out of hand, it will eventually get restarted. Once Monit is installed, start Monit service and enable it to start on boot time by running the following command: systemctl start monit systemctl enable monit. The eighth line would be where a bunch of children processes have been spawned. So this setting should fit what your system has and where your z-way process currently uses for memory usage. My Pi's have 8GB of RAM, so that amount of memory use could be achieved. If you have a Pi with 512MB of RAM, that would not be a valid configuration setting since it could never be reached. 800.0 MB is a lot of memory and Z-Way doesn't use anywhere close to that which is why I also used that value, it would be well outside the norm and clearly an indication of something gone awry. You can set the CPU usage to whatever you like or feel is appropriate for your setup. The sixth line is if the CPU usage is > 80 for five cycles (my cycle is 15 seconds) then restart the process. This means there is obviously an issue that require intervention on your part. The fifth line is if it restarts and then has to keep restarting as it keeps failing, then timeout. The fourth line is checking reachability on port 8083 using http and if a connection cannot be established it is viewed as failed and to restart the process. The start and stop commands are telling it how to start and stop the process. The first line is telling it of the process and where the pid file is. If loadavg(5min) greater than 3 for 8 cycles then stop If totalmem > 800.0 MB for 5 cycles then restart 'Plesk > Tools & Settings > Plesk > Updates', then 'Add/Remove components > Plesk extensions > Watchdog system monitoring'. If failed port 8083 protocol http then restart Watchdog is an old Plesk component and it is still available in Plesk Obsidian you can install/remove it via the Plesk Installer tool, e.g. Stop program "/etc/init.d/z-way-server stop" Start program "/etc/init.d/z-way-server start" Code: Select all check process z-way-server with pidfile /var/run/z-way-server.pid
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |