<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C2D722.67889760">
<title>RE: [Nagios-users] Issue w/External Commands</title>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;
text-underline:single;}
p
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
span.EmailStyle18
{mso-style-type:personal-reply;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:navy;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You’ve got it backwards. You should
have a group called <span class=SpellE>nagioscmd</span> with <span
class=SpellE>nagios</span> and apache being members:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><span class=SpellE><span class=GramE><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>nagioscmd:</span></font></span><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>x</span></font></span><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>:<<span class=SpellE>gid</span>>:<span class=SpellE>nagios,apache</span><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Make that modification, restart apache and
you should be good to go.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>marc<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Daniel Jimenez
[mailto:DanielJ@avatar-cs.net] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, February 18, 2003
6:25 AM<br>
<b><span style='font-weight:bold'>To:</span></b> 'Rasmus Plewe'; Nagios users
list<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [Nagios-users] Issue
w/External Commands</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>drwxrwS--- 2 nagios
nagiocmd 4096 Feb 18 00:30 /usr/local/nagios/var/rw</span></font>
<o:p></o:p></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>root
834 1 0 00:30
? 00:00:00 /usr/sbin/httpd</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>apache
883 834 0 00:30 ?
00:00:00 /usr/sbin/httpd</span></font> <br>
<font size=2><span style='font-size:10.0pt'>apache
884 834 0 00:30 ? 00:00:00
/usr/sbin/httpd</span></font> <br>
<font size=2><span style='font-size:10.0pt'>apache
885 834 0 00:30 ?
00:00:00 /usr/sbin/httpd</span></font> <br>
<font size=2><span style='font-size:10.0pt'>apache
886 834 0 00:30 ?
00:00:00 /usr/sbin/httpd</span></font> <br>
<font size=2><span style='font-size:10.0pt'>apache
887 834 0 00:30 ?
00:00:00 /usr/sbin/httpd</span></font> <br>
<font size=2><span style='font-size:10.0pt'>apache
888 834 0 00:30 ?
00:00:00 /usr/sbin/httpd</span></font> <br>
<font size=2><span style='font-size:10.0pt'>apache
889 834 0 00:30 ?
00:00:00 /usr/sbin/httpd</span></font> <br>
<font size=2><span style='font-size:10.0pt'>apache
890 834 0 00:30 ?
00:00:00 /usr/sbin/httpd</span></font> <o:p></o:p></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>[root@johnny5 var]# groups apache</span></font> <br>
<font size=2><span style='font-size:10.0pt'>apache : apache nagiocmd</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>[root@johnny5 var]# groups nagios</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>nagios : nagios nagiocmd</span></font>
<o:p></o:p></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Pretty standard RH8 install. Httpd installed during OS
build.</span></font> <o:p></o:p></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>-----Original Message-----</span></font> <br>
<font size=2><span style='font-size:10.0pt'>From: Rasmus Plewe [<a
href="mailto:rplewe@hpce.nec.com">mailto:rplewe@hpce.nec.com</a>]</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>Sent: Tuesday, February 18, 2003
3:00 AM</span></font> <br>
<font size=2><span style='font-size:10.0pt'>To: Nagios users list</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>Subject: Re: [Nagios-users] Issue
w/External Commands</span></font> <o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>On Tue, Feb 18, 2003 at 12:04:36AM -0600, Daniel
Jimenez wrote:</span></font> <br>
<font size=2><span style='font-size:10.0pt'>> On Mon, 17
Feb 2003, Daniel Jimenez wrote:</span></font> <br>
<font size=2><span style='font-size:10.0pt'>> ></span></font>
<br>
<font size=2><span style='font-size:10.0pt'>> > My
problem is that whenever I go to add host/service comments I'm</span></font> <br>
<font size=2><span style='font-size:10.0pt'>> >
returned w/</span></font> <br>
<font size=2><span style='font-size:10.0pt'>> ></span></font>
<br>
<font size=2><span style='font-size:10.0pt'>> > Error:
Could not stat() command file</span></font> <br>
<font size=2><span style='font-size:10.0pt'>>
'/usr/local/nagios/var/rw/nagios.cmd'!</span></font> <br>
<font size=2><span style='font-size:10.0pt'>> ></span></font>
<br>
<font size=2><span style='font-size:10.0pt'>> > Anyone
have any insight?</span></font> <br>
<font size=2><span style='font-size:10.0pt'>> ></span></font>
<br>
<font size=2><span style='font-size:10.0pt'>> > Daniel
Jimenez</span></font> <o:p></o:p></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>> -----Original Message-----</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>> From:
Subhendu Ghosh [[1]<a href="mailto:sghosh@sghosh.org">mailto:sghosh@sghosh.org</a>]</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>> Sent:
Monday, February 17, 2003 11:37 PM</span></font> <br>
<font size=2><span style='font-size:10.0pt'>> To:
'nagios-users@lists.sourceforge.net'</span></font> <br>
<font size=2><span style='font-size:10.0pt'>> Subject: Re:
[Nagios-users] Issue w/External Commands</span></font> <br>
<font size=2><span style='font-size:10.0pt'>> </span></font><br>
<font size=2><span style='font-size:10.0pt'>> <a
href="http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=true"
target="_blank">http://www.nagios.org/faqs/viewfaq.php?faq_id=58&expand=false&showdesc=true</a></span></font>
<br>
<font size=2><span style='font-size:10.0pt'>> </span></font><br>
<font size=2><span style='font-size:10.0pt'>> Subhendu,</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>> </span></font><br>
<font size=2><span style='font-size:10.0pt'>> These are
actually the steps I followed to set this up. I've gone over</span></font> <br>
<font size=2><span style='font-size:10.0pt'>> the steps at
least twenty times and find no mistakes.</span></font> <br>
<font size=2><span style='font-size:10.0pt'>> </span></font><br>
<font size=2><span style='font-size:10.0pt'>> Daniel</span></font>
<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Excuse my disbelief, but with unixoide operating
systems I still think</span></font> <br>
<font size=2><span style='font-size:10.0pt'>that if you do something right, it
will work.</span></font> <br>
<font size=2><span style='font-size:10.0pt'>Could you please post the output
of:</span></font> <o:p></o:p></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>ls -ld /usr/local/nagios/var/rw </span></font><o:p></o:p></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>ps -ef | grep httpd</span></font> <o:p></o:p></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>grep <user obtained from previous command>
/etc/group</span></font> <o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Please try to avoid mailing in HTML. At least on this
list. </span></font><o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Rasmus</span></font> <br>
<font size=2><span style='font-size:10.0pt'>-- </span></font><br>
<font size=2><span style='font-size:10.0pt'>In the beginning was The Word and
The Word was </span></font><br>
<font size=2><span style='font-size:10.0pt'>Content-type: text/plain </span></font><o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>-------------------------------------------------------</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>This sf.net email is sponsored
by:ThinkGeek</span></font> <br>
<font size=2><span style='font-size:10.0pt'>Welcome to geek heaven.</span></font>
<br>
<font size=2><span style='font-size:10.0pt'><a href="http://thinkgeek.com/sf"
target="_blank">http://thinkgeek.com/sf</a></span></font> <br>
<font size=2><span style='font-size:10.0pt'>_______________________________________________</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>Nagios-users mailing list</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>Nagios-users@lists.sourceforge.net</span></font>
<br>
<font size=2><span style='font-size:10.0pt'><a
href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a></span></font>
<br>
<font size=2><span style='font-size:10.0pt'>::: Please include Nagios version,
plugin version (-v) and OS when reporting any issue. </span></font><br>
<font size=2><span style='font-size:10.0pt'>::: Messages without supporting
info will risk being sent to /dev/null</span></font> <o:p></o:p></p>
</div>
</body>
</html>