Hello!
I updated my mon from 0.38.something to the recent
release. (mon-0.99.1.tar.gz, mon.cgi-1.52.tar.gz, Mon-0.11.tar.gz)
everything works fine, except for the mon.cgi
which complains, that it cannot connect to
the mon server. i'm getting the error output of the if loop
listed below (line 866 of mon.cgi)
But it actually is working (i'm getting all the hostgroups,.. and
i can do everything)
i am authorized (i have link with the user/pass that used to work
with the old version) and tried to log in as well. and in the auth.cf
i have every command set to all and (new) put in my ip with * *. and
tried a copy of the auth.cf included in the tarball.
i have tested netscape (4.76) and ie. mon is running on a debian box.
there are no error messages in the logfiles.
what did i miss?
stefan
$cmd = "list"; #set $cmd to the most basic of commands
if ($auth_commands{$cmd}{'auth'} == 0) {
$webpage->print("<h2>Cannot connect to the mon server. Check the
mon process to see if it is running.</a></h2><br>\n");
} elsif ( ($must_login) && ($all_commands_unauthorized == 1) ) {
$webpage->print("<h2>You are attempting to log in with the
username "$loginhash{'username'}" but your password is
incorrect.<br><br>Either enter in the correct username/password above or
<a
href=\"$url?${monhost_and_port_args}command=query_opstatus&username=$default_username&password=$default_password\">click
here to clear your authentication credentials and log back
in as the default user.</a></h2><br>\n");
}
$auth_commands_checked = 1;
# We have to lay the tables out by hand bec. of the colspanning :(
$webpage->print("<table width=\"$table_width\" border=1
align=center>\n");
#
# Print the first row of the command table
#
$webpage->print("<tr>\n");
--
system engineering +43-1-718-98-80
CUBiT IT Solutions http://www.cubit.at