debug_level
Herta Van den Eynde
herta.vandeneynde at gmail.com
Fri May 18 21:38:17 UTC 2007
On 18/05/07, Lon Hohberger <lhh at redhat.com> 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
More information about the Piranha-list
mailing list