You must edit ${TRUEPREFIX}/lib/mon/mon.cgi to fit your installation.
Open it with your favorite editor, search the initialize_config_globals
function and change all the necessary parameters in it.