|
From: Kaiser, H. <r_...@gm...> - 2006-06-14 20:44:31
|
> Unfortunately there isn't any debug mode, sorry..
> The closest you could get is editing /usr/libexec/webmin/fsdump/backup.pl
> and adding code to print information (like the hostname) as it progresses.
> Something like :
>
> print STDERR "hostname = ",&get_system_hostname(),"\n";
>
> > Have you got my answer, that the system monitoring module also reports
> > "localhost" in the mailsubject?
>
> Yes .. that looks like the same cause.
I debugged it myself.
Here my results with the call sequence:
1. if ($gconfig{'os_type'} ne 'windows')
# Can use hostname command on Unix
&execute_command("hostname", undef, \$get_system_hostname[$m],
undef, 0, 1);
here I get the correct hostname "manni"
2. else {
$get_system_hostname[$m] = $flag;
here I get the wrong hostname "localhost"
3. return $get_system_hostname[$m];
consequenty, here I get localhost
Does this helps?
|