<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><div>
So my question for someone who has made check_oracle_healt work
is:<br>
How come all 4 invocation from CLI as nagios user work, but when
Nagios runs them, only 2 of them work.<br>
I know that the error message tells me that there is some env
variable path problem, but why are the first 2 calls of
check_oracle_healt work then?<div></div><br></div></div></blockquote><div> <br>
Can you, for completion, show your command definitions as well as the service definition? <br><br>Just fyi: On my installation I used a different way to use --connect, I used EZCONNECT. <br>See: <a href="http://labs.consol.de/lang/de/blog/uncategorized/check_oracle_health-kann-ezconnect/">http://labs.consol.de/lang/de/blog/uncategorized/check_oracle_health-kann-ezconnect/</a><br>
<br>My command definition:<br>
<br># check_oracle_health<br>define command {<br> command_name check_oracle_health<br> command_line $USER1$/check_oracle_health --username $USER3$ --password $USER4$ --mode $ARG1$ --connect $HOSTADDRESS$:$ARG2$/$ARG3$<br>
}<br><br>And one of the service definitions:<br><br># Check Oracle<br>define service{<br> use generic-service<br> host_name myoraserver<br>
service_description Oracle Connections<br> check_command check_oracle_health!connected-users!1521!SERVICENAME<br> }<br><br></div><div><br></div></div><br>