<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>[Nagios-users] Getting to Macros from script</TITLE>
</HEAD>
<BODY dir=ltr>
<DIV> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> Martin, Stanley
G [GMG] [mailto:Stanley.G.Martin@mail.sprint.com] <BR><B>Sent:</B> Fri
7/25/2003 8:12 AM <BR><B>To:</B> nagios-users@lists.sourceforge.net
<BR><B>Cc:</B> <BR><B>Subject:</B> [Nagios-users] Getting to Macros from
script<BR></FONT></DIV>
<P><FONT size=2>1) The Author defaults to the user logged in. How do I
get to that</FONT> <BR><FONT size=2>variable?</FONT> </P>
<P>Since Nagios uses .htaccess, it's stuffed into the CGI environment variable
<FONT face="Courier New">REMOTE_USER</FONT> by the webserver and
accessible by any httpd spawned process.</P>
<P><BR><FONT size=2>2) I can run my script from one of my other websites, but
when I drop it</FONT> <BR><FONT size=2>into the ~nagios/sbin directory, I get
an execution failure. How can I</FONT> <BR><FONT size=2>get my script to
run from under the nagios directory structure?</FONT> </P>
<P>This is kind of an odd question since we didn't write your script nor do we
have any idea of it's requirements. All I can suggest are basic
troubleshooting ideas : verify permissions are correct, try running it as the
user your web server runs as, verify paths in your script are sane and check
you httpd error log for clues.</P>
<P> </P>
<P>--</P>
<P>Marc</P></BLOCKQUOTE>
</BODY>
</HTML>