I must have been excited that it was almost Friday... I just noticed that it was catching, just needed to cycle through 5 cycles before it was flagged.
All is well. :) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Placek Sent: Thursday, August 23, 2007 4:46 PM To: [email protected] Subject: weird behavior when pulling memory I've just installed and configured Monit to run on our 3rd webserver and I can't appreciate the work you've put into this product. Its saved my sleep schedule many times! Now for the bad news. This 3rd server is acting funny. I've had a few instances where it doesn't flag memory usage for the apache processes. I've lowered the usage down to flag at >8kB, but it still doesn't flag, even though its currently using >135kB. Perhaps I missed something? Here's Monit running in the foreground in verbose mode: 'httpd_init' file existence check passed 'httpd_init' is regular file 'httpd_bin' file existence check passed 'httpd_bin' is regular file 'httpd' zombie check passed [status_flag=0000] 'httpd' PID has not changed since last cycle 'httpd' PPID has not changed since last cycle 'httpd' loadavg(1min) check passed [current loadavg(1min)=0.0] 'httpd' children check passed [current children=10] 'httpd' total mem amount of 138464kB matches resource limit [total mem amount>8kB] 'httpd' cpu usage check passed [current cpu usage=0.4%] 'httpd' cpu usage check passed [current cpu usage=0.4%] 'httpd' succeeded connecting to INET[website.com:80] via TCP 'httpd' succeeded testing protocol [HTTP] at INET[website.com:80] via TCP And finally here's my monit config for httpd: # Apache 2 (webserver) # -------------------- check process httpd with pidfile /var/run/httpd.pid start program = "/etc/rc.d/rc.httpd start" stop program = "/etc/rc.d/rc.httpd stop" if failed host website.com port 80 protocol HTTP for 2 cycles then restart if cpu is greater than 60% for 2 cycles then alert if cpu > 80% for 5 cycles then restart # Testing Mem Usage / Not production. if totalmem is greater than 8 kB for 5 cycles then restart if children > 250 then restart if loadavg(1min) greater than 10 for 8 cycles then restart if 3 restarts within 5 cycles then timeout group web depends httpd_init depends httpd_bin check file httpd_init with path /etc/rc.d/rc.httpd group web check file httpd_bin with path /usr/sbin/httpd group web
-- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
