<?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: Adding Services to Chksrvd for Monitoring</title>
	<atom:link href="http://www.thecpaneladmin.com/adding-services-to-chksrvd-for-monitoring/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thecpaneladmin.com/adding-services-to-chksrvd-for-monitoring/</link>
	<description>We know stuff about cPanel.</description>
	<lastBuildDate>Wed, 18 Jan 2012 16:47:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Scriptster</title>
		<link>http://www.thecpaneladmin.com/adding-services-to-chksrvd-for-monitoring/comment-page-1/#comment-606</link>
		<dc:creator>Scriptster</dc:creator>
		<pubDate>Thu, 16 Sep 2010 22:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=62#comment-606</guid>
		<description>Good write-up!

I just wanted to add a few bits of information to remove some ambiguities:
in the process-based monitoring it&#039;s important to understand those comma delimited parameters:
service[named]=x,x,x,/scripts/restartsrvr_bind,named,named&#124;bind

where the first three don&#039;t apply, which is why they are &quot;x&quot;

#4 is the command to start the service. My personal beef with it, by the way, is that I suspect it runs under  user name &quot;cpanel&quot; which is usually not in your normal list of sudoers - important if the command needs to be run as a different user - I&#039;m still doing a research on this.

#5 is basically NOT not command name and rather a search term for grep (I don&#039;t know if searchd actually uses grep but the result is the same) 
so, if you are monitoring &quot;named&quot; but you have this command running &quot; pico /etc/init.d/named&quot;, it will think &quot;named&quot; itself is running - have to be very careful with it, especially if the command name is rather common

#6 is also rather tricky - it is the user that runs the command given in in #5. If the command is present but it&#039;s run by, say, &quot;root&quot; instead of &quot;named&quot;, it will NOT match, even if &quot;named&quot; (the command) is actually running. And the notation you have in your example means that it will match if the &quot;named&quot; (a command name match) is run by either &quot;named&quot; (the user) or &quot;bind&quot;

Hope that can help someone from running in circles - there is very little info on that on the Net.

If someone knows exactly how chkservd runs the commands (as &quot;root&quot;, as &quot;cpanel&quot;, how to control paths etc.), please add some info here for the full(est) coverage of this little sucker I&#039;ve seen anywhere, including cPanel&#039;s own documentation.

Cheers everyone, keep up great work!</description>
		<content:encoded><![CDATA[<p>Good write-up!</p>
<p>I just wanted to add a few bits of information to remove some ambiguities:<br />
in the process-based monitoring it&#8217;s important to understand those comma delimited parameters:<br />
service[named]=x,x,x,/scripts/restartsrvr_bind,named,named|bind</p>
<p>where the first three don&#8217;t apply, which is why they are &#8220;x&#8221;</p>
<p>#4 is the command to start the service. My personal beef with it, by the way, is that I suspect it runs under  user name &#8220;cpanel&#8221; which is usually not in your normal list of sudoers &#8211; important if the command needs to be run as a different user &#8211; I&#8217;m still doing a research on this.</p>
<p>#5 is basically NOT not command name and rather a search term for grep (I don&#8217;t know if searchd actually uses grep but the result is the same)<br />
so, if you are monitoring &#8220;named&#8221; but you have this command running &#8221; pico /etc/init.d/named&#8221;, it will think &#8220;named&#8221; itself is running &#8211; have to be very careful with it, especially if the command name is rather common</p>
<p>#6 is also rather tricky &#8211; it is the user that runs the command given in in #5. If the command is present but it&#8217;s run by, say, &#8220;root&#8221; instead of &#8220;named&#8221;, it will NOT match, even if &#8220;named&#8221; (the command) is actually running. And the notation you have in your example means that it will match if the &#8220;named&#8221; (a command name match) is run by either &#8220;named&#8221; (the user) or &#8220;bind&#8221;</p>
<p>Hope that can help someone from running in circles &#8211; there is very little info on that on the Net.</p>
<p>If someone knows exactly how chkservd runs the commands (as &#8220;root&#8221;, as &#8220;cpanel&#8221;, how to control paths etc.), please add some info here for the full(est) coverage of this little sucker I&#8217;ve seen anywhere, including cPanel&#8217;s own documentation.</p>
<p>Cheers everyone, keep up great work!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

