Hello,
On 6/22/2006 12:15 PM, Przemysław Staniszewski wrote:
> Arno Lehmann wrote:
>
>>Unfortunately, you didn't describe the problem in a way I can understand.
>>
>>First you wrote that jobs wait too long, waiting for a cancelled job or
>>one not able to run because a host is down, now it's the DIR dying.
>>
>
> You have right. On the simple 1:1 (sd and dir on the one machine, fd on
> another) I don't have any troubles.
>
> On
> 1.38.10 - dir dying at schedule time.
Ok, tackle that using debu output and a backtrace.
> 1.38.9 - my bconsole hangs up when ctrl+d (or dir) I don't know.
Ah, I see.
That's a design issue: bconsole does not terminate gracefully when it
encounters an EOF in interactive mode. You should use 'quit' or you have
to kill the console using a kill command from another terminal, or after
detaching your terminal from the stuck bconsole using c-z or c-c.
I found it easiest to not use c-d with bconsole :-)
> Maybe it's all wrong with my configuration, as You suggest.
Probably it's not so easy.
> Can I please somebody to send me his configuration for about 20 hosts.
> Of course not for 20, but what should work.
>
> 1-5 at 8:30 am
>
> 6-10 9:30 am
>
> 11-15 10:30 am
>
> 16-20 11:30 am
>
> some of them are laptops.
Well, this will not solve your DIR crashing issue, but anyway...
For the laptops or machines that are often turned off, I use a simple
Run Before Script:
#!/bin/bash
#
# checkos.sh
#
# checks which OS is running on a computer
#
usage() {
echo "usage: $0 address < UP | win | linux >"
echo " Arguments are: IP-Address or hostname and OS to check for"
echo " This program is quite stupid:"
echo " It only checks if a host is up, and if it has port 22 open
(ssh),"
echo " the OS is assumed to be linux, otherwise Windows"
echo " Result is in return code: 0 is yes, 1 is no or error."
echo "(C) Arno Lehmann 2004"
echo
exit 1
}
ADR=$1
OS=$2
if test $# -lt 2 ; then
usage
fi
case $OS in
UP)
;;
win)
;;
linux)
;;
*)
usage
;;
esac
if test $# -gt 2 ; then
echo "Doing $3..."
fi
if ( ping -q -c 3 -w 4 $ADR 2>&1 >/dev/null ); then
if test $OS = "UP" ; then
echo "Host $ADR is up."
exit 0
fi
echo "Host $ADR is up. Telnetting..."
telnet $ADR 22 </dev/null 2>&1 | grep -q "Connection closed"
RC=$?
echo "RC of telnet to port 22 is $RC"
case $OS in
win)
if test $RC -eq 0 ; then
echo "This has SSH and is NOT Windows."
exit 1
else
echo "This has NOT SSH and IS Windows."
exit 0
fi
;;
linux)
echo "Just taking telnet's result..."
exit $RC
;;
*)
exit 1;
;;
esac
else
echo "Host $ADR is DOWN!"
exit 1
fi
-----
Try it from the shell to understand it :-)
Arno
> This all what I want to have. Thank you for response.
>
--
IT-Service Lehmann [EMAIL PROTECTED]
Arno Lehmann http://www.its-lehmann.de
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users