[Nagiosplug-help] check_by_ssh passing wrong return code

Holger Weiss holger at CIS.FU-Berlin.DE
Thu Mar 13 18:05:55 CET 2008


* Craig Carlton <ccarlton at apple.com> [2008-03-13 09:55]:
> Anyone have any ideas why this is happening?:
> 
> SERVER:nagios root# /usr/local/nagios/libexec/check_by_ssh -H TARGET - 
> i /etc/nagios/.ssh/id_dsa -t 15 -f -o StrictHostKeyChecking=no -o  
> BatchMode=yes -o ChallengeResponseAuthentication=no -o  
> ConnectionAttempts=3 -o ConnectTimeout=10 -C '/ngs/app/chatboxp/ 
> libexec/check_ntp -H time.apple.com -w 180 -c 300 -t 15' -l USER -q
> NTP CRITICAL: Offset 28876.80561 secs|offset=28876.805611s; 
> 180.000000;300.000000;
> SERVER:nagios root# echo $?
> 0

Why are you using the "-f" flag?  Does it work if you omit that?

Holger




More information about the Help mailing list