<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Marc Powell wrote:
<blockquote
cite="midA7B0A9F02975A74A845FE85D0B95B8FA03928B0F@misex01.ena.com"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a> [<a class="moz-txt-link-freetext" href="mailto:nagios-users">mailto:nagios-users</a>-
<a class="moz-txt-link-abbreviated" href="mailto:bounces@lists.sourceforge.net">bounces@lists.sourceforge.net</a>] On Behalf Of Hari Sekhon
Sent: Tuesday, August 01, 2006 7:48 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>
Subject: [Nagios-users] Externals Commands
I am having real difficulty getting external commands to work and
</pre>
</blockquote>
<pre wrap=""><!---->don't
</pre>
<blockquote type="cite">
<pre wrap="">full understand what's going wrong, despite having RTFMing several
</pre>
</blockquote>
<pre wrap=""><!---->times.
</pre>
<blockquote type="cite">
<pre wrap="">As an example, I log in to the web interface as nagiosadmin via basic
apache auth successfully as usual. I go to "comments" in the left hand
pane and enter one for a host but when I click submit, I get the
</pre>
</blockquote>
<pre wrap=""><!---->error:
</pre>
<blockquote type="cite">
<pre wrap="">
"Sorry, but you are not authorized to commit the specified command.
Read the section of the documentation that deals with authentication
</pre>
</blockquote>
<pre wrap=""><!---->and
</pre>
<blockquote type="cite">
<pre wrap="">authorization in the CGIs for more information.
Return from whence you came" <a class="moz-txt-link-rfc2396E" href="javascript:window.history.go(-2)"><javascript:window.history.go(-2)></a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">The apache process is run by the apache user, a member of the apache
group, so has full perms to the directory and the pipe file
</pre>
</blockquote>
<pre wrap=""><!---->nagios.cmd.
</pre>
<blockquote type="cite">
<pre wrap="">Nagios is run by nagios who is also a member of the apache group.
This all looks as it should be according to the docs as far as I can
</pre>
</blockquote>
<pre wrap=""><!---->see.
</pre>
<blockquote type="cite">
<pre wrap="">
What am I missing?
</pre>
</blockquote>
<pre wrap=""><!---->
Who does nagios see you logged in as? It will be displayed in the upper
left of every page. If it's '?', verify your htaccess configuration for
the nagios/sbin directory.
--
marc
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
<a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<br>
from the top of my logged in page:<br>
<br>
Logged in as <i>nagiosadmin</i><br>
</body>
</html>