<div>Nagios Version 3.1.2 running on FC11</div>
<div> </div>
<div>//I am trying to set up some custom Object Variables based on the following docs but I must be misunderstanding something:</div>
<div>//-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
<div><a href="http://nagios.sourceforge.net/docs/3_0/customobjectvars.html" target="_blank">http://nagios.sourceforge.net/docs/3_0/customobjectvars.html</a><br><a href="http://nagios.sourceforge.net/docs/3_0/macros.html" target="_blank">http://nagios.sourceforge.net/docs/3_0/macros.html</a></div>

<div> </div>
<div>//The following definitions return an UNKNOWN status with the following entry in the nagios.log:</div>
<div>//---------------------------------------------------------------------------------------------------------------------------------------</div>
<div>[1258485573] SERVICE ALERT: someSpecificHostName;SSH;UNKNOWN;SOFT;1;check_ssh: Port number must be a positive integer - $</div>
<div> </div>
<div> </div>
<div>If I change the check_command to read check_ssh!-p 22 it works perfect.</div>
<div>Can someone please point me in a direction, thanks.</div>
<div> </div>
<div> </div>
<div>define host{<br>        use                     someStandardHostTemplate</div>
<div>        host_name          someSpecificHostName<br>        alias                   someSpecificHostAlias<br>        address              11.22.33.44<br>        _sshPort                22                      #the port number for ssh connections specific to this host</div>

<div>        }</div>
<div> </div>
<div>define service{<br>        use                             someStandardServiceTemplate</div>
<div>        host_name                   someSpecificHostName<br>        service_description        SSH<br>        check_command           check_ssh!-p $_HOSTsshPort$<br>        }</div>
<div> </div>
<div>define command{<br>        command_name    check_ssh<br>        command_line    $USER1$/check_ssh $ARG1$ $HOSTADDRESS$<br>        }</div>