<br><br>
<div><span class="gmail_quote">On 9/30/05, <b class="gmail_sendername">Andreas Ericsson</b> <<a href="mailto:ae@op5.se">ae@op5.se</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">> The biggest problem I have had with check_oracle however is when it is run<br>> by the Nagios process. I have found this bit to be extremely cumbersome on
<br>> my setup. I kept getting errormessages about the client not being able to<br>> set up the NLS environment which ... quite frankly proved to be a serious<br>> problem to tackle. Best I can figure it has something to do with the
<br>> NLS_LANG (or was it LANG) environment variable and others not being properly<br>> setup (in fact I suspect no environment variables get set) when run via<br>> Nagios.<br><br><br>It's the LANG environment variable. NLS_LANG has no special meaning.
<br><br>Nagios uses the library wrapper popen() to execute other programs (for<br>now, anyways). popen()'ed children inherit the environment from the<br>parent (but doesn't read any of the profile or rc-files; sh -c is called
<br>in to execute the program in question). At least on Linux and *BSD,<br>although I can't imagine those systems going through the extra trouble<br>of copying the environment data unless it was in POSIX.</blockquote>
<div> </div>
<div>That sorta fits in then with what was going on. Depending on the client version you have installed (and I took the version 10 client of course, grumble) those variables have to be set though or your check_nagios goes horribly wrong. I think I even went sofar as to try setting them from withing check_nagios itself at one point before getting to the sqlclient part but ...
</div>
<div> </div>
<div>Is there any ... ehm ... approved solution for that ?</div>
<div> </div>
<div>Cheers,</div>
<div>Hans </div><br> </div>