Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Change hostname and server statistics stopped

  1. #1
    Join Date
    Aug 2007
    Location
    Hyderabad, India
    Posts
    96
    Rep Power
    8

    Default Change hostname and server statistics stopped

    Hi,

    I have used the wiki ZmSetServerName - Zimbra :: Wiki I have changed the hostname of the server and now I have a problem with server statistics. I have checked the forums and used the following commnads:

    # logmysql
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 1467
    Server version: 5.0.51a-log Source distribution

    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

    mysql> use zimbra_logger;
    Reading table information for completion of table and column names
    You can turn off this feature to get a quicker startup with -A

    Database changed
    mysql> select distinct(host) from mta_aggregate;
    +-------------------+
    | host |
    +-------------------+
    | Old host name |
    +-------------------+
    1 row in set (0.00 sec)

    If I change the entry in DB will it start working or is there any way that I should change the hostname to newer one?

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Has the logger process been restarted ?
    Code:
    su - zimbra
    zmcontrol -v
    zmcontrol status

  3. #3
    Join Date
    Aug 2007
    Location
    Hyderabad, India
    Posts
    96
    Rep Power
    8

    Default status

    zimbra@mymail:~$ zmcontrol -v


    Release 5.0.7_GA_2444.DEBIAN4.0 DEBIAN4.0 FOSS edition

    Host mymail.xxxxxxxx.com
    antispam Running
    antivirus Running
    imapproxy Running
    ldap Running
    logger Running
    mailbox Running
    mta Running
    snmp Running
    spell Running
    stats Running

  4. #4
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    I presume you have updated /etc/hosts and rebooted your server ?

  5. #5
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    95
    Rep Power
    8

    Default

    Hi,

    status showing the stat service is running, so what the problem you are experiencing?

    Also can you please run the following command to check you have changed in all the files with new hostname.

    $ grep old.host.name /opt/zimbra/conf/*

    $ zmlocalconfig | grep old.host.name


    if swatchrc is not updated your stat service will not work.

    #!Premod

  6. #6
    Join Date
    Aug 2007
    Location
    Hyderabad, India
    Posts
    96
    Rep Power
    8

    Default Problem

    The issue is in server stats in Admin . Check the attached. I have checked all files in conf and zmlocalconfig but there is no old hostname
    Attached Images Attached Images

  7. #7
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    What happens if you run /opt/zimbra/libexec/zmgengraphs manually ? As you have changed the hostname you may need to wait 24 hours for the graphs to update aswell.

  8. #8
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by rajeshkodali View Post
    The issue is in server stats in Admin . Check the attached. I have checked all files in conf and zmlocalconfig but there is no old hostname
    As it's been more than 24hrs, how about some follow-up on whether this problem is resolved or not?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    Join Date
    Aug 2007
    Location
    Hyderabad, India
    Posts
    96
    Rep Power
    8

    Default problem not solved

    Hi,

    The problem is not solved. I was bit busy with something else. Is there any thing that we need to do in db ?

  10. #10
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Did you try running zmgengraphs manually and if so what was the output ? Is the DB actually updating with new information ? Have you checked your logfiles aswell for any error messages ?

Similar Threads

  1. Server Statistics dont work after changing hostname
    By rnuno in forum Administrators
    Replies: 1
    Last Post: 06-08-2007, 07:54 PM
  2. Error 256 on Installation
    By RuinExplorer in forum Installation
    Replies: 5
    Last Post: 10-19-2006, 09:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •