<?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: Executing mailq as the nagios user on Fedora 12</title> <atom:link href="http://www.rickwargo.com/2010/01/13/executing-mailq-as-the-nagios-user-on-fedora-12/feed/" rel="self" type="application/rss+xml" /><link>http://www.rickwargo.com/2010/01/13/executing-mailq-as-the-nagios-user-on-fedora-12/</link> <description>Acquiring information, one day at a time.</description> <lastBuildDate>Thu, 26 Jan 2012 11:03:28 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: 10function</title><link>http://www.rickwargo.com/2010/01/13/executing-mailq-as-the-nagios-user-on-fedora-12/comment-page-1/#comment-46804</link> <dc:creator>10function</dc:creator> <pubDate>Thu, 10 Nov 2011 15:37:00 +0000</pubDate> <guid
isPermaLink="false">http://www.rickwargo.com/?p=193#comment-46804</guid> <description>A simplest way is to add nagios user in exim group. (/etc/group file).
With this solution There is no need to modify check_mailq plugin and using sudo.
PS : On Debian , group is called Debian-exim</description> <content:encoded><![CDATA[<p>A simplest way is to add nagios user in exim group. (/etc/group file).</p><p>With this solution There is no need to modify check_mailq plugin and using sudo.</p><p>PS : On Debian , group is called Debian-exim</p> ]]></content:encoded> </item> <item><title>By: jamshid</title><link>http://www.rickwargo.com/2010/01/13/executing-mailq-as-the-nagios-user-on-fedora-12/comment-page-1/#comment-43963</link> <dc:creator>jamshid</dc:creator> <pubDate>Thu, 25 Aug 2011 07:11:08 +0000</pubDate> <guid
isPermaLink="false">http://www.rickwargo.com/?p=193#comment-43963</guid> <description>Thanks for the informative article.
I was stuck with this problem for weeks!
As per your suggestion I ran su command first (I added the shell option because by default nagiios account has no shell on Fedora 15)
su -s /bin/bash  nagios -c &quot;./check_mailq -w 5 -c 10&quot;
When Linux complained that sudo requires a tty then I added the following entry to sudoers file:
Defaults:nagios !requiretty
Problem fixed! Thanks and keep up the good work.</description> <content:encoded><![CDATA[<p>Thanks for the informative article.<br
/> I was stuck with this problem for weeks!</p><p>As per your suggestion I ran su command first (I added the shell option because by default nagiios account has no shell on Fedora 15)<br
/> su -s /bin/bash  nagios -c &#8220;./check_mailq -w 5 -c 10&#8243;</p><p>When Linux complained that sudo requires a tty then I added the following entry to sudoers file:<br
/> Defaults:nagios !requiretty</p><p>Problem fixed! Thanks and keep up the good work.</p> ]]></content:encoded> </item> <item><title>By: Chris</title><link>http://www.rickwargo.com/2010/01/13/executing-mailq-as-the-nagios-user-on-fedora-12/comment-page-1/#comment-38494</link> <dc:creator>Chris</dc:creator> <pubDate>Tue, 01 Mar 2011 09:35:45 +0000</pubDate> <guid
isPermaLink="false">http://www.rickwargo.com/?p=193#comment-38494</guid> <description>This got me to the next stage that I required.  Needs a little bit of unix knowledege to get this done but great article; Thanks!</description> <content:encoded><![CDATA[<p>This got me to the next stage that I required.  Needs a little bit of unix knowledege to get this done but great article; Thanks!</p> ]]></content:encoded> </item> <item><title>By: Nadeem</title><link>http://www.rickwargo.com/2010/01/13/executing-mailq-as-the-nagios-user-on-fedora-12/comment-page-1/#comment-33262</link> <dc:creator>Nadeem</dc:creator> <pubDate>Mon, 12 Jul 2010 18:07:44 +0000</pubDate> <guid
isPermaLink="false">http://www.rickwargo.com/?p=193#comment-33262</guid> <description>Thanks,
Works for me. I am on FC 10.</description> <content:encoded><![CDATA[<p>Thanks,<br
/> Works for me. I am on FC 10.</p> ]]></content:encoded> </item> <item><title>By: Matt</title><link>http://www.rickwargo.com/2010/01/13/executing-mailq-as-the-nagios-user-on-fedora-12/comment-page-1/#comment-32174</link> <dc:creator>Matt</dc:creator> <pubDate>Thu, 25 Mar 2010 16:57:03 +0000</pubDate> <guid
isPermaLink="false">http://www.rickwargo.com/?p=193#comment-32174</guid> <description>I had a similar problem as Arun. In my case, it was because the utils.pm was pointing to a soft-link, rather than the executable. Changing MAILQ in utils.pm to directly point to /usr/bin/exim (I use Debian Lenny, and Exim4 is the MTA).
That got me around the above error, but now I get a /usr/bin/exim4 is not executable by (uid xxx:gid(xxx:xxx)) - the UID and GID for nagios.
Ugh. Thanks for pointing me in the right direction, though. I&#039;ll let you know if I find a solution.
Cheers,
Matt</description> <content:encoded><![CDATA[<p>I had a similar problem as Arun. In my case, it was because the utils.pm was pointing to a soft-link, rather than the executable. Changing MAILQ in utils.pm to directly point to /usr/bin/exim (I use Debian Lenny, and Exim4 is the MTA).<br
/> That got me around the above error, but now I get a /usr/bin/exim4 is not executable by (uid xxx:gid(xxx:xxx)) &#8211; the UID and GID for nagios.<br
/> Ugh. Thanks for pointing me in the right direction, though. I&#8217;ll let you know if I find a solution.<br
/> Cheers,<br
/> Matt</p> ]]></content:encoded> </item> <item><title>By: Arun Shetty</title><link>http://www.rickwargo.com/2010/01/13/executing-mailq-as-the-nagios-user-on-fedora-12/comment-page-1/#comment-31668</link> <dc:creator>Arun Shetty</dc:creator> <pubDate>Mon, 25 Jan 2010 12:54:04 +0000</pubDate> <guid
isPermaLink="false">http://www.rickwargo.com/?p=193#comment-31668</guid> <description>This doesnt work :-(&#160; I see the following error
&#160;
ERROR: could not open /usr/bin/mailq
&#160;</description> <content:encoded><![CDATA[<p>This doesnt work <img
src='http://www.rickwargo.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> &nbsp; I see the following error<br
/> &nbsp;<br
/> ERROR: could not open /usr/bin/mailq<br
/> &nbsp;</p> ]]></content:encoded> </item> </channel> </rss>
