Skip to main content

Posts

Showing posts with the label Linux system monitoring

System/ Process Monitoring in Linux using MONIT

Install and Configure Monit sudo apt-get install monit usudo chmod 700 /etc/monit/monitrc telnet localhost 2812 sudo ufw allow 2812 Sample MONIT Configuration username@ServerName:/etc/monit$ sudo cat monitrc set daemon 60 set logfile syslog facility log_daemon set mailserver localhost set mail-format { from: monit@ServerName.localnet } set alert username.shah@cw.com set httpd port 2812 and #     SSL ENABLE #     PEMFILE  /etc/monit/monit.pem     allow admin:edgeadmin check system edge.localnet     if loadavg (1min) > 4 then alert     if loadavg (5min) > 2 then alert     if memory usage > 70% then alert     if swap usage > 20% then alert     if cpu usage (user) > 70% then alert     if cpu usage (system) > 30% then alert     if cpu usage (wait) > 20% then alert # SENDMAIL check proc...