<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Monitor and restart Apache or lighttpd webserver when daemon is killed</title> <atom:link href="http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Rocky</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-161492</link> <dc:creator>Rocky</dc:creator> <pubDate>Thu, 25 Nov 2010 12:10:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-161492</guid> <description>Hi,
I want to configuer monit to only generate alert mail for service monitoring and want to monitor only service.
How to configure it........?
Because when i see monit status it showas service and local system statistics.
Thanks
Rocky</description> <content:encoded><![CDATA[<p>Hi,</p><p>I want to configuer monit to only generate alert mail for service monitoring and want to monitor only service.<br
/> How to configure it&#8230;&#8230;..?<br
/> Because when i see monit status it showas service and local system statistics.</p><p>Thanks<br
/> Rocky</p> ]]></content:encoded> </item> <item><title>By: Chris Walker</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-159233</link> <dc:creator>Chris Walker</dc:creator> <pubDate>Sun, 29 Aug 2010 01:42:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-159233</guid> <description>It appears the new version 5.1.1 has a bit of a different structure than explainewd here.
I get some errors with my configuration like mo repeated to fast disabling for 5 minutes, and an unmonitor error.
It does however, appear to be functioning, as I can watch what users login, in real time, and various SPI activity. However, I don;t know if it is monitoring the service properly to restart it, when needed.</description> <content:encoded><![CDATA[<p>It appears the new version 5.1.1 has a bit of a different structure than explainewd here.<br
/> I get some errors with my configuration like mo repeated to fast disabling for 5 minutes, and an unmonitor error.</p><p>It does however, appear to be functioning, as I can watch what users login, in real time, and various SPI activity. However, I don;t know if it is monitoring the service properly to restart it, when needed.</p> ]]></content:encoded> </item> <item><title>By: Gobnd Singh</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-158978</link> <dc:creator>Gobnd Singh</dc:creator> <pubDate>Tue, 17 Aug 2010 15:00:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-158978</guid> <description>Hello All,
I have configured as told by above manual , however i don&#039;t know how to check that weather its working or not.
can somebody guide me. how can i test that monitor is working or nit.</description> <content:encoded><![CDATA[<p>Hello All,<br
/> I have configured as told by above manual , however i don&#8217;t know how to check that weather its working or not.<br
/> can somebody guide me. how can i test that monitor is working or nit.</p> ]]></content:encoded> </item> <item><title>By: 3dex</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-155806</link> <dc:creator>3dex</dc:creator> <pubDate>Thu, 06 May 2010 01:22:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-155806</guid> <description>Searched the net for days until I&#039;ve found this thread and understand I must replace the localhost with the server&#039;s IP for Apache monitoring to work... but, better late then never :)
Thanks for the intel!</description> <content:encoded><![CDATA[<p>Searched the net for days until I&#8217;ve found this thread and understand I must replace the localhost with the server&#8217;s IP for Apache monitoring to work&#8230; but, better late then never :)<br
/> Thanks for the intel!</p> ]]></content:encoded> </item> <item><title>By: Yogesh</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-153804</link> <dc:creator>Yogesh</dc:creator> <pubDate>Fri, 19 Feb 2010 13:24:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-153804</guid> <description>@ Mohd. Anas --&gt; VSFTP can&#039;t be monitored using MONIT. Reason is as what you already know... it doesn&#039;t create PID file ;)
And MONIT uses PID file to learn about running process.... :)
@ Vivek --&gt; I am a big NixCraft fan. Sorry to advice you but please update the document for monitoring and managing services from a web interface.
# vi /etc/monitrc
set httpd port 2812   # To bind monit on port 2812 of apache
allow admin:monit    # require user &#039;admin&#039; with password &#039;monit&#039;
Restart monit to apply changes then open http://:2812 in web-browser.</description> <content:encoded><![CDATA[<p>@ Mohd. Anas &#8211;&gt; VSFTP can&#8217;t be monitored using MONIT. Reason is as what you already know&#8230; it doesn&#8217;t create PID file ;)<br
/> And MONIT uses PID file to learn about running process&#8230;. :)</p><p>@ Vivek &#8211;&gt; I am a big NixCraft fan. Sorry to advice you but please update the document for monitoring and managing services from a web interface.</p><p># vi /etc/monitrc<br
/> set httpd port 2812   # To bind monit on port 2812 of apache<br
/> allow admin:monit    # require user &#8216;admin&#8217; with password &#8216;monit&#8217;</p><p>Restart monit to apply changes then open <a
href="http://:2812" rel="nofollow">http://:2812</a> in web-browser.</p> ]]></content:encoded> </item> <item><title>By: Mohd Anas</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-151238</link> <dc:creator>Mohd Anas</dc:creator> <pubDate>Mon, 26 Oct 2009 10:41:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-151238</guid> <description>Hi,
Can someone tell me how to monitor vsftpd.
I&#039;m not getting its pid file. I&#039;m using CentOS 5.3.
Thanks</description> <content:encoded><![CDATA[<p>Hi,</p><p>Can someone tell me how to monitor vsftpd.<br
/> I&#8217;m not getting its pid file. I&#8217;m using CentOS 5.3.</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: Martin</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-149038</link> <dc:creator>Martin</dc:creator> <pubDate>Sat, 20 Jun 2009 16:09:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-149038</guid> <description>Gracias por la Guia, me ha sido de gran ayuda :)</description> <content:encoded><![CDATA[<p>Gracias por la Guia, me ha sido de gran ayuda :)</p> ]]></content:encoded> </item> <item><title>By: Alexander D</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-146850</link> <dc:creator>Alexander D</dc:creator> <pubDate>Thu, 22 Jan 2009 23:08:24 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-146850</guid> <description>Forgot to mention that after this
got  such output
&lt;code&gt;Jan 22 13:32:54 server sshd[10743]: subsystem request for sftp
Jan 22 13:46:45 server proftpd[11262]: server.My-Server.org (87.241.187.91[87.241.187.91]) - FTP session opened.
Jan 22 15:02:44 server sshd[13648]: Accepted password for root from ::ffff:87.241.177.184 port 14969 ssh2
Jan 22 15:16:32 server sshd[18913]: Accepted password for root from ::ffff:87.241.177.184 port 15068 ssh2
Jan 22 15:16:33 server sshd[18913]: subsystem request for sftp
Jan 22 15:19:03 server sshd[18985]: Accepted password for root from ::ffff:87.241.177.184 port 15069 ssh2
Jan 22 15:19:04 server sshd[18985]: subsystem request for sftp
Jan 22 15:23:33 server sshd[19137]: Accepted password for root from ::ffff:87.241.177.184 port 15070 ssh2
Jan 22 15:23:33 server sshd[19137]: subsystem request for sftp
Jan 22 15:44:14 server sshd[19743]: Accepted password for root from ::ffff:87.241.177.184 port 15308 ssh2
&lt;/code&gt;
btw 87.241.177.184 isn&#039;t my iP :-(</description> <content:encoded><![CDATA[<p>Forgot to mention that after this</p><p>got  such output</p><p><code>Jan 22 13:32:54 server sshd[10743]: subsystem request for sftp<br
/> Jan 22 13:46:45 server proftpd[11262]: server.My-Server.org (87.241.187.91[87.241.187.91]) - FTP session opened.<br
/> Jan 22 15:02:44 server sshd[13648]: Accepted password for root from ::ffff:87.241.177.184 port 14969 ssh2<br
/> Jan 22 15:16:32 server sshd[18913]: Accepted password for root from ::ffff:87.241.177.184 port 15068 ssh2<br
/> Jan 22 15:16:33 server sshd[18913]: subsystem request for sftp<br
/> Jan 22 15:19:03 server sshd[18985]: Accepted password for root from ::ffff:87.241.177.184 port 15069 ssh2<br
/> Jan 22 15:19:04 server sshd[18985]: subsystem request for sftp<br
/> Jan 22 15:23:33 server sshd[19137]: Accepted password for root from ::ffff:87.241.177.184 port 15070 ssh2<br
/> Jan 22 15:23:33 server sshd[19137]: subsystem request for sftp<br
/> Jan 22 15:44:14 server sshd[19743]: Accepted password for root from ::ffff:87.241.177.184 port 15308 ssh2<br
/> </code></p><p>btw 87.241.177.184 isn&#8217;t my iP :-(</p> ]]></content:encoded> </item> <item><title>By: Alexander D</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-146849</link> <dc:creator>Alexander D</dc:creator> <pubDate>Thu, 22 Jan 2009 23:06:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-146849</guid> <description>Hello
first of all thanks for great manual. THe problem is, that i did as i descrbed here, everything was ok ... until this
&lt;code&gt;Now start monit:
# init -qOR
# telinit -q &lt;/code&gt;
Goting such output
&lt;code&gt;[root@server etc]# init -q
init: invalid option -- q
Usage: init 0123456SsQqAaBbCcUu
[root@server etc]# telinit -q
telinit: invalid option -- q
Usage: telinit 0123456SsQqAaBbCcUu
&lt;/code&gt;
and of course all steps after this
f.e. for this command
&lt;code&gt;# tail -f /var/log/messages &lt;/code&gt;
server stop for a minute,  ... i stop it manually ...
later check that my messages file become ~16mb
so, for now Monit don&#039;t monitor, don&#039;t send any alert ... and don&#039;t know what to do ?
try to find any solution, or may be unistall it</description> <content:encoded><![CDATA[<p>Hello<br
/> first of all thanks for great manual. THe problem is, that i did as i descrbed here, everything was ok &#8230; until this</p><p><code>Now start monit:<br
/> # init -qOR<br
/> # telinit -q </code></p><p>Goting such output<br
/> <code>[root@server etc]# init -q<br
/> init: invalid option -- q<br
/> Usage: init 0123456SsQqAaBbCcUu<br
/> [root@server etc]# telinit -q<br
/> telinit: invalid option -- q<br
/> Usage: telinit 0123456SsQqAaBbCcUu<br
/> </code></p><p>and of course all steps after this</p><p>f.e. for this command</p><p><code># tail -f /var/log/messages </code><br
/> server stop for a minute,  &#8230; i stop it manually &#8230;<br
/> later check that my messages file become ~16mb</p><p>so, for now Monit don&#8217;t monitor, don&#8217;t send any alert &#8230; and don&#8217;t know what to do ?</p><p>try to find any solution, or may be unistall it</p> ]]></content:encoded> </item> <item><title>By: desis</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-146828</link> <dc:creator>desis</dc:creator> <pubDate>Wed, 21 Jan 2009 22:36:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-146828</guid> <description>I have installed on redhat Centos 5..I have changed the inittab file... but after that when I used # tail -f /var/log/messages command ...I dont  get the output ...as describe here...actually I dont get any output related with monit ... any help is appreciated ... I need to install it badly... is there something I am missing..</description> <content:encoded><![CDATA[<p>I have installed on redhat Centos 5..I have changed the inittab file&#8230; but after that when I used # tail -f /var/log/messages command &#8230;I dont  get the output &#8230;as describe here&#8230;actually I dont get any output related with monit &#8230; any help is appreciated &#8230; I need to install it badly&#8230; is there something I am missing..</p> ]]></content:encoded> </item> <item><title>By: unix newbie</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-146593</link> <dc:creator>unix newbie</dc:creator> <pubDate>Wed, 07 Jan 2009 00:52:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-146593</guid> <description>Hi,
I am a newbie and am having problems getting monit to work.  I have gotten all the way to the following command but I get stuck after this:
mo:2345:respawn:/usr/local/bin/monit -Ic /etc/monitrc
I inserted this command into the inittab file but after that I can not simply copy and paste &quot;init -q&quot; into the shell terminal.  I get an ---INSERT--- prompt and then anything I type after doesnt matter.
I know very little about Unix commands other than copying and pasting and what I can dig up on a quick google search.  Im figuring that I am doing something or dont know something very elementary and would just like to get this to work.
Thank you guys/gals in advance</description> <content:encoded><![CDATA[<p>Hi,</p><p>I am a newbie and am having problems getting monit to work.  I have gotten all the way to the following command but I get stuck after this:</p><p>mo:2345:respawn:/usr/local/bin/monit -Ic /etc/monitrc</p><p>I inserted this command into the inittab file but after that I can not simply copy and paste &#8220;init -q&#8221; into the shell terminal.  I get an &#8212;INSERT&#8212; prompt and then anything I type after doesnt matter.</p><p>I know very little about Unix commands other than copying and pasting and what I can dig up on a quick google search.  Im figuring that I am doing something or dont know something very elementary and would just like to get this to work.</p><p>Thank you guys/gals in advance</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-146519</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Thu, 01 Jan 2009 17:01:14 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-146519</guid> <description>Thanks for the heads up.</description> <content:encoded><![CDATA[<p>Thanks for the heads up.</p> ]]></content:encoded> </item> <item><title>By: whatvn</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-146518</link> <dc:creator>whatvn</dc:creator> <pubDate>Thu, 01 Jan 2009 16:43:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-146518</guid> <description>you miss &quot;s&quot; in command:
&quot;tail -f /var/log/message&quot;, it should be &quot;tail -f /var/log/messages&quot;
Thank so much for awesome post.</description> <content:encoded><![CDATA[<p>you miss &#8220;s&#8221; in command:<br
/> &#8220;tail -f /var/log/message&#8221;, it should be &#8220;tail -f /var/log/messages&#8221;</p><p>Thank so much for awesome post.</p> ]]></content:encoded> </item> <item><title>By: Cjso</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-146207</link> <dc:creator>Cjso</dc:creator> <pubDate>Fri, 12 Dec 2008 18:33:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-146207</guid> <description>What are the reasons monit can not execute /etc/init.d/httpd service?
httpd is part of &#039;root&#039; group.
Thanks,</description> <content:encoded><![CDATA[<p>What are the reasons monit can not execute /etc/init.d/httpd service?</p><p>httpd is part of &#8216;root&#8217; group.</p><p>Thanks,</p> ]]></content:encoded> </item> <item><title>By: woodsb02</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-144811</link> <dc:creator>woodsb02</dc:creator> <pubDate>Sun, 31 Aug 2008 19:06:55 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-144811</guid> <description>I had the same problem as Marcus Herou. My lighttpd is showing as &quot;Connection failed&quot; and when I look in my access.log I see that lighttpd keeps returning 400. I have no idea why.</description> <content:encoded><![CDATA[<p>I had the same problem as Marcus Herou. My lighttpd is showing as &#8220;Connection failed&#8221; and when I look in my access.log I see that lighttpd keeps returning 400. I have no idea why.</p> ]]></content:encoded> </item> <item><title>By: drewish</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-144067</link> <dc:creator>drewish</dc:creator> <pubDate>Sun, 15 Jun 2008 20:49:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-144067</guid> <description>For Debian Linux see &lt;a href=&quot;http://tildeslash.com/monit/doc/monitrc_debian_current.tar.gz&quot; rel=&quot;nofollow&quot;&gt;monitrc&lt;/a&gt; config file.</description> <content:encoded><![CDATA[<p>For Debian Linux see <a
href="http://tildeslash.com/monit/doc/monitrc_debian_current.tar.gz" rel="nofollow">monitrc</a> config file.</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-144051</link> <dc:creator>vivek</dc:creator> <pubDate>Fri, 13 Jun 2008 10:06:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-144051</guid> <description>Under Debian it is /var/run/apache2.pid file.</description> <content:encoded><![CDATA[<p>Under Debian it is /var/run/apache2.pid file.</p> ]]></content:encoded> </item> <item><title>By: yara</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-144050</link> <dc:creator>yara</dc:creator> <pubDate>Fri, 13 Jun 2008 08:00:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-144050</guid> <description>Hi,
I have debian with apache2 compiled and mysql 5, i don&#039;t have /var/run/xxxx.pid , how can chacke my process :
&lt;code&gt;check process httpd with pidfile .....&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Hi,<br
/> I have debian with apache2 compiled and mysql 5, i don&#8217;t have /var/run/xxxx.pid , how can chacke my process :</p><p><code>check process httpd with pidfile .....</code></p> ]]></content:encoded> </item> <item><title>By: Marcus Herou</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-143629</link> <dc:creator>Marcus Herou</dc:creator> <pubDate>Wed, 30 Apr 2008 08:34:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-143629</guid> <description>Hi.
My lighty instance only return 400 to monit. It is really strange since my app server with almost the same monit setup work flawlessly.
Any ideas ?
lighttpd-1.4.19 (compiled)
monit-4.8.1 (ubuntu-hardy)</description> <content:encoded><![CDATA[<p>Hi.</p><p>My lighty instance only return 400 to monit. It is really strange since my app server with almost the same monit setup work flawlessly.</p><p>Any ideas ?</p><p>lighttpd-1.4.19 (compiled)<br
/> monit-4.8.1 (ubuntu-hardy)</p> ]]></content:encoded> </item> <item><title>By: paul</title><link>http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-143294</link> <dc:creator>paul</dc:creator> <pubDate>Fri, 28 Mar 2008 04:07:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html#comment-143294</guid> <description>It&#039;s me, the last problem is resolved, it has something to do with working path. But here other question.: why I cann&#039;t excute a shell files, the content like this:
1 cd /root/test
2 ./appname -m &quot;param1&quot;</description> <content:encoded><![CDATA[<p>It&#8217;s me, the last problem is resolved, it has something to do with working path. But here other question.: why I cann&#8217;t excute a shell files, the content like this:<br
/> 1 cd /root/test<br
/> 2 ./appname -m &#8220;param1&#8243;</p> ]]></content:encoded> </item> </channel> </rss>
