<div>Actually, I've done this already. The macro, say, X defines the path to be "/usr/lib64/nagios/plugins". But as far as I can see this does not solve my problem, as the path on a 32-bit systems is different than the path on a 64-bit system. </div>

<div><br> </div>
<div><span class="gmail_quote">On 9/23/08, <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">
<div><span class="e" id="q_11c8e5d8ff9d6892_0">Kenneth Holter wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello all.<br><br><br>I've set up Nagios to monitor a few 64-bit machines, and this seems to be<br>working correctly. For example, my command for checking a remote disk is<br>
defined like this:<br><br><br>define command{<br>       command_name    check_remote_disk<br>       command_line    /somepath/check_by_ssh <args> -C<br>"/usr/lib64/nagios/plugins/check_disk <remote args>"<br>
}<br><br>This command executes /usr/*lib64*/nagios/plugins/check_disk on the remote<br>system. On 32-bit systems, on the other hand, the path to the plugin is<br>/usr/*lib*/nagios/plugins/check_disk. It thus looks like I have to<br>
differentiate between 32-bit and 64-bit commands, and in effect devide the<br>configuration itself in a 32-bit section and 64-bit section.<br><br>I'm sure there is a neat way of solving this, and could use some advice. I<br>
guess I could symlink all over the place to get things going, but there are<br>probably a better way of doing this.<br><br></blockquote><br></span></div>Modify resource.cfg and use a macro to define the path to the plugins.<br>
<span class="sg"><br>-- <br>Andreas Ericsson                   <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:andreas.ericsson@op5.se" target="_blank">andreas.ericsson@op5.se</a><br>OP5 AB                             <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.op5.se/" target="_blank">www.op5.se</a><br>
Tel: +46 8-230225                  Fax: +46 8-230231<br></span></blockquote></div><br>