--- projects/cms/source/host/ihost-perl/ihost.pl 2001/03/16 18:25:59 1.32 +++ projects/cms/source/host/ihost-perl/ihost.pl 2001/03/20 12:58:22 1.33 @@ -10,7 +10,7 @@ # - pjm2@ukc.ac.uk # # $Author: pjm2 $ -# $Id: ihost.pl,v 1.32 2001/03/16 18:25:59 pjm2 Exp $ +# $Id: ihost.pl,v 1.33 2001/03/20 12:58:22 pjm2 Exp $ #------------------------------------------------------------ $| = 1; @@ -45,7 +45,7 @@ $filter_manager_addr = $ARGV[0]; $filter_manager_port = $ARGV[1]; $seq_no = 1; -$retry_wait = 6; +$retry_wait = 60; # write our PID to a file $pidfile = "/var/tmp/ihost.pid"; @@ -283,7 +283,8 @@ sub send_udp_packet() { } $disk_info .= ""; - my($ip) = inet_ntoa(scalar(gethostbyname(hostname())) || 'localhost'); + my($ip); + $ip = inet_ntoa(scalar(gethostbyname(hostname())) || 'localhost') or $ip = 'localhost'; # Build the XML packet this way, as we can clearly # see the structure and contents... I like this ;-)