|
From: <dav...@da...> - 2006-05-29 23:28:37
|
Hum... weird. I don't even see a log for Webmin sending the e-mail, and I have it setup to send the mail. David Coley Codecipher -----Original Message----- From: web...@li... [mailto:web...@li...] On Behalf Of Jamie Cameron Sent: Monday, May 29, 2006 1:46 AM To: web...@li... Subject: RE: [webmin-l] Automatic restarting of Failed processes Hi David, I wouldn't recommand using a check for the existence of the PID file, as if Apache crashes or it terminated that file may still exist (but contain an invalid PID). It would be better to use the 'Remote HTTP server' monitor, which can make a test HTTP request to your local Apache server. SSH wouldn't be an issue here, but spam filtering may be. The email Webmin sends looks like : From: we...@fu... Subject: Service monitor : Apache Webserver down on fudu.home Monitor on fudu.home for 'Apache Webserver' has detected that the service has gone down at Mon Feb 27 17:00:03 2006 - Jamie On 28/May/2006 21:12 dav...@da... wrote .. > I just setup a different type of monitoring to try the PID issue, (does > this > file exist) monitor. > > It didn't send out the e-mail. With out me having to dig through the code, > do you know what the message format is? Perhaps some spam filter I'm not > aware of somewhere along our "Benevolent" internet is grabbing it as spam. > > Also, webmin runs on our .50 IP, but SSH is blocked from all but one other > IP address (I know the SSH Java shell doesn't work for example) could that > be affecting this? > > > > David Coley > > Codecipher > > > > _____ > > From: web...@li... > [mailto:web...@li...] On Behalf Of Jamie > Cameron > Sent: Sunday, May 28, 2006 1:00 PM > To: web...@li... > Subject: RE: [webmin-l] Automatic restarting of Failed processes > > > > Perhaps it isn't detecting that Apache is down .. > Webmin checks the PID file rather than trying a connection to port 80, > and in some cases it is possible that the PID file may still contain a > valid > process ID even when Apache is not properly running. > > - Jamie > > On 28/May/2006 10:29 dav...@da... wrote .. > > No the monitor isn't e-mailing me when it is down. > > > > Hum. let me check the logs and reply back > > > > David Coley > > Codecipher > > > > _____ > > From: web...@li... > [mailto:web...@li...] On Behalf Of Jamie > Cameron > Sent: Saturday, May 27, 2006 12:50 PM > To: web...@li... > Subject: RE: [webmin-l] Automatic restarting of Failed processes > > > > So you have the restart command setup, but it isn't being run? > Is Webmin actually emailing you when Apache is down? That would determine > if > the > problem is with the monitor, or the command .. > > - Jamie > > On 27/May/2006 07:28 dav...@da... wrote .. > > Yes, I did. I setup a monitor for Apache and set it to check when it goes > down. > > > > Set to check every 5 minutes and e-mail myself when it goes down as well > as > run the command: > > > > /etc/rc.d/init.d/httpd restart > > > > Now I notice when it runs the check a <defunct> webmin appears for 30 > seconds in ps -auxf but goes away. > > > > We're running Redhat ES3 and have SSH/Telnet disabled on all IP's except > for > one. > > > > Could that be causing the issue? If so is there a way to tell WebMin to > use > IP XXX.XXX.XXX.54 when trying to do commands? > > > > Thanks! > > > > David Coley > > Codecipher > > > > _____ > > From: web...@li... > [mailto:web...@li...] On Behalf Of Jamie > Cameron > Sent: Saturday, May 27, 2006 1:27 AM > To: web...@li... > Subject: Re: [webmin-l] Automatic restarting of Failed processes > > > > On 26/May/2006 22:17 dav...@da... wrote .. > > Is there a way currently to have certain services / CPU processes monitored > with Webmin, and have the services restarted if they go down. I was looking > at the Webmin Monitor script but it wasn't restarting the HTTP like I wanted > it too. > > Hi David, > Have you looked at the System and Server Status module? It lets you monitor > things like Apache, and you can specify a command to run if it is detected > to be down (like apachectl start). > > - Jamie > > > > ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 - Forwarded by the Webmin mailing list at web...@li... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |