<DIV>I'm having a problem with a plugin that seems to work perfectly when I call it, but mostly fails when called by nagios. (Version 1.2).</DIV>
<DIV> </DIV>
<DIV>The service definition is:</DIV>
<DIV> </DIV>
<DIV>define command{<BR> command_name check_ssh_procdar<BR> command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C 'check_procdar sleep' -i $USER3$/moni_dsa_key -l nagios<BR> }</DIV>
<DIV><BR>define service{<BR> name MSshSleepSvc; Check if sleep process is running remotely<BR> use MSvc<BR> service_description Sleep process<BR> check_command check_ssh_procdar!sleep<BR> max_check_attempts 2<BR> normal_check_interval 1<BR> retry_check_interval &nb
sp; 1<BR>
notification_interval 60 ; Renotify hourly unless overridden<BR> register 0 ;<BR> }</DIV>
<DIV>#<BR>define service{<BR> use MSshSleepSvc ; Template name to use<BR> host_name host1<BR> contact_groups Adm<BR> }<BR><BR>When I call the plugin as follows, I get the expected output message and return code:</DIV>
<DIV>/usr/nagios/libexec/check_by_ssh -H 10.110.250.50 -C 'check_procdar sleep' -i /usr/nagios/etc/moni_dsa_key -l nagios</DIV>
<DIV> </DIV>
<DIV>But when nagios calls the plugin, the status Usually indicates UNKNOWN.</DIV>
<DIV> </DIV>
<DIV>Occasionally however, the plugin starts to work and I get the expected OK or CRITICAL status, but a minute later it reverts to UNKNOWN.</DIV>
<DIV> </DIV>
<DIV>Any ideas why I am seeing this UNKNOWN status? I would suspect the plugin, but running the plugin directly is consistently returning what I expect<BR></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! Finance: <a href="http://us.rd.yahoo.com/evt=22055/*http://taxes.yahoo.com/filing.html">Get your refund fast by filing online</a>