Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-2008, 01:59 AM
Loyal Member
 
Posts: 89
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?
Reply With Quote
  #2 (permalink)  
Old 12-09-2008, 02:07 AM
Moderator
 
Posts: 7,928
Default

Has the logger process been restarted ?
Code:
su - zimbra
zmcontrol -v
zmcontrol status
__________________
Reply With Quote
  #3 (permalink)  
Old 12-09-2008, 02:38 AM
Loyal Member
 
Posts: 89
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
Reply With Quote
  #4 (permalink)  
Old 12-09-2008, 02:45 AM
Moderator
 
Posts: 7,928
Default

I presume you have updated /etc/hosts and rebooted your server ?
__________________
Reply With Quote
  #5 (permalink)  
Old 12-09-2008, 02:48 AM
Loyal Member
 
Posts: 95
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
Reply With Quote
  #6 (permalink)  
Old 12-09-2008, 02:58 AM
Loyal Member
 
Posts: 89
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
File Type: jpg Screenshot-1.jpg (48.7 KB, 94 views)
Reply With Quote
  #7 (permalink)  
Old 12-09-2008, 03:04 AM
Moderator
 
Posts: 7,928
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.
__________________
Reply With Quote
  #8 (permalink)  
Old 12-11-2008, 02:44 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
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
Reply With Quote
  #9 (permalink)  
Old 12-11-2008, 06:37 AM
Loyal Member
 
Posts: 89
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 ?
Reply With Quote
  #10 (permalink)  
Old 12-11-2008, 06:43 AM
Moderator
 
Posts: 7,928
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 ?
__________________
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.