Re: debug_level

"Herta Van den Eynde" <[email protected]> Fri, 18 May 2007 23:38:17 +0200
Newsgroups gmane.linux.redhat.piranha
Message-ID <[email protected]>
On 18/05/07, Lon Hohberger <[email protected]> wrote:
> On Fri, May 18, 2007 at 12:29:50PM +0000, Mohamed HADROUJ (Gmail) wrote:
> > Another question please,
> > I'm getting this error in /var/log/messages :
> > May 18 12:23:21 lb1 nanny[11333]: Trouble. Recieved results are not what we
> > expected from (10.10.11.20)
> >
> > the question is : how can I display the results received by Nanny in the log
> > ?
>
> Nanny doesn't have a log option that will display that information as
> far as I can tell; you'd have to grab the source and patch it.
>
> --
> Lon Hohberger - Software Engineer - Red Hat, Inc.

Or simply output it to a file from your test script.  E.g.

#!/bin/bash
TEST=`/usr/bin/lynx -head -dump https://$1 2>/dev/null | grep -c
"HTTP/1.1 200 OK" `
if [ "$TEST" == "1" ]
then
 echo "OK" | tee output.log
else
 echo "FAIL" | tee output.log
fi


Kind regards,

Herta