Check by ssh returning code Unkown
Ashish Lahori <[email protected]> Wed, 11 Dec 2002 18:21:07 +0530
| Newsgroups | gmane.network.netsaint.user |
|---|---|
| Message-ID | <3FA1445378F3D4119120000629A87BD8BC490B@ITGCOMSRV> |
Hi All, I have to check some remote functions actually localised application logs.. I am using check_by_ssh as a wrapper for executing remote plugins... The results I am getting are perfectly Okie.. But the problem is return code ... I can explain it like this [netsaint@angela libexec]$ ./check_by_ssh -H 192.168.3.61 -l ashish -t 60 -C '/home/ashish/test.sh' -f Hi this is the Plugin By Ashish....... [netsaint@angela libexec]$ echo $? 255 echo $? returns 255 actually it shoud return 1 The code of test.sh is here #!/bin/sh echo "Hi this is the Plugin By Ashish......." echo `date` >test.txt exit 0; Even I used the netsaint plugin for check_ssh though the output was correct but the return code was UNKNOWN... Can anyone tell me where am I wrong .... Thanks in Advance Regards Ashish Lahori