Comment 1 for bug 891999

Revision history for this message
johan (johan-severalnines) wrote : Re: [Bug 891999] Re: Cmon failed start with error: (ERROR) Failed to get hostid

Hi,
Thanks for the report.

What does:

hostname
and
hostname -i

print out?

BR
johan

On 2011-11-22 22.57, Xposed wrote:
> ** Description changed:
>
> When I try to start cmon it gaves me this error:
>
> Nov 18 12:38:00 : (INFO) Created table 'cpu_stats'
> Nov 18 12:38:00 : (INFO) Created table 'mysql_repl_link'
> Nov 18 12:38:00 : (INFO) Created table 'hosts'
> Nov 18 12:38:00 : (INFO) Created table 'processes'
> Nov 18 12:38:00 : (INFO) Created table 'host_process_map'
> Nov 18 12:38:00 : (INFO) Created table 'cpu_stats'
> - ok
> + ok
> [1]- Terminated tail -f /var/log/cmon.log
> -bash-3.2# Nov 18 12:38:01 : (INFO) Done
> Nov 18 12:38:01 : (INFO) Registering managed cluster with cluster id=1
>
> Nov 18 12:38:02 : (INFO) Managed cluster is already registered -
> cluster id=1
>
> Nov 18 12:38:02 : (ERROR) Failed to get hostid
> Nov 18 12:38:02 : (ERROR) Critical error (mysql error code -1) occured - shutting down
>
> -
> How can we fix it? Thanks.
>