![]() ![]() Now setup the init.d file cp contrib/rc.monit /etc/init.d/monit Then change the set alert line to include your email. First change the set mailserver line to localhost (or your mailserver). To setup alerts go into the /etc/monitrc file and do 2 things. You can see in the above code we used alert. If cpu usage (system) > 80% for 3 cycles then alert If cpu usage (user) > 80% for 3 cycles then alert If 5 restarts within 5 cycles then timeout ![]() If failed host 127.0.0.1 port 80 protocol http Start program = "/etc/init.d/httpd start" with timeout 20 seconds # Also set the 'set daemon' line at the beginning to your preferred interval.Ĭreate the service files (this will repeat for every service you monitor) vi /etc/monit.d/apacheĬheck process httpd with pidfile /var/run/httpd.pid # At the end of monitrc add or uncomment: include /etc/monit.d/* configure (If this fails, fix as necessary, then re-unpack the tar and try again) and other countries.Other packes I needed for my box yum install pam-devel Availability as standalone software running on Windows ®, Linux ® and macOS ® (macOS ® is a trademark of Apple Inc.Integration of STM32Cube Expansion packages into the project.Development of enhanced STM32Cube Expansion Packages thanks to STM32PackCreator.Generation of a partial Linux ® Device Tree for Arm ® Cortex ®-A core (STM32 microprocessors).Generation of initialization C code project, compliant with IAR Embedded Workbench ®, MDK-ARM and STM32CubeIDE (GCC compilers) for Arm ® Cortex ®-M core.Power sequence with estimated consumption results.Clock tree with dynamic validation of the configuration. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |