Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Server/Disk Statistics revisited

  1. #11
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    marcmac

    Sorry for the late reply, I've been away for a couple of days. Yes, the disk info seems to be getting logged.

    Code:
    Mar  5 12:10:05 chinook zimbramon[29086]: 29086:info: 2006-03-05 12:10:05, DISK: : dev: /dev/sda1, mp: /boot, tot: 99, avail: 75
    Mar  5 12:10:05 chinook zimbramon[29086]: 29086:info: 2006-03-05 12:10:05, DISK: : dev: /dev/hda1, mp: /backup, tot: 71097, avail: 66184
    Mar  5 12:10:06 chinook zimbramon[28853]: 28853:info: 2006-03-05 12:10:02, STATUS: chinook.phoenix-systems.uk.com: antispam: Running
    Mar  5 12:10:06 chinook zimbramon[28853]: 28853:info: 2006-03-05 12:10:02, STATUS: chinook.phoenix-systems.uk.com: antivirus: Running
    Mar  5 12:10:06 chinook zimbramon[28853]: 28853:info: 2006-03-05 12:10:02, STATUS: chinook.phoenix-systems.uk.com: ldap: Running
    Mar  5 12:10:06 chinook zimbramon[28853]: 28853:info: 2006-03-05 12:10:02, STATUS: chinook.phoenix-systems.uk.com: logger: Running
    Mar  5 12:10:06 chinook zimbramon[28853]: 28853:info: 2006-03-05 12:10:02, STATUS: chinook.phoenix-systems.uk.com: mailbox: Running
    Mar  5 12:10:06 chinook zimbramon[28853]: 28853:info: 2006-03-05 12:10:02, STATUS: chinook.phoenix-systems.uk.com: mta: Running
    Mar  5 12:10:06 chinook zimbramon[28853]: 28853:info: 2006-03-05 12:10:02, STATUS: chinook.phoenix-systems.uk.com: snmp: Running
    Mar  5 12:10:06 chinook zimbramon[28853]: 28853:info: 2006-03-05 12:10:02, STATUS: chinook.phoenix-systems.uk.com: spell: Running
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  2. #12
    marcmac is offline Expert Member
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    13

    Default

    There's a bug in the script:

    DISK: : dev: /dev/sda1, mp: /boot, tot: 99, avail: 75

    The hostname should be right before that second colon.

    I'll fix this in the code:
    line 54

    $hostname=`/opt/zimbra/bin/zmhostname`;
    chomp $hostname;

    (Those are backticks, not single quotes)

  3. #13
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    I made that change to the script and it gives the following from two runs:

    Code:
    Mar  5 18:45:44 chinook zimbramon[25086]: 25086:info: 2006-03-05 18:45:43, DISK: chinook.phoenix-systems.uk.com: dev: /dev/hda1, mp: /backup, tot: 71097, avail: 66184
    Mar  5 18:46:05 chinook zimbramon[25511]: 25511:info: 2006-03-05 18:46:02, STATUS: chinook.phoenix-systems.uk.com: antispam: Running
    Mar  5 18:46:05 chinook zimbramon[25511]: 25511:info: 2006-03-05 18:46:02, STATUS: chinook.phoenix-systems.uk.com: antivirus: Running
    Mar  5 18:46:05 chinook zimbramon[25511]: 25511:info: 2006-03-05 18:46:02, STATUS: chinook.phoenix-systems.uk.com: ldap: Running
    Mar  5 18:46:05 chinook zimbramon[25511]: 25511:info: 2006-03-05 18:46:02, STATUS: chinook.phoenix-systems.uk.com: logger: Running
    Mar  5 18:46:05 chinook zimbramon[25511]: 25511:info: 2006-03-05 18:46:02, STATUS: chinook.phoenix-systems.uk.com: mailbox: Running
    Mar  5 18:46:05 chinook zimbramon[25511]: 25511:info: 2006-03-05 18:46:02, STATUS: chinook.phoenix-systems.uk.com: mta: Running
    Mar  5 18:46:05 chinook zimbramon[25511]: 25511:info: 2006-03-05 18:46:02, STATUS: chinook.phoenix-systems.uk.com: snmp: Running
    Mar  5 18:46:05 chinook zimbramon[25511]: 25511:info: 2006-03-05 18:46:02, STATUS: chinook.phoenix-systems.uk.com: spell: Running
    Mar  5 18:46:44 localhost.localdomain 2006-03-05 18:46:44,429 INFO  [IndexWritersSweeper] [] MailboxIndex - open index writers sweep: before=1, closed=0, after=1 (0ms)
    
    
    Mar  5 18:59:04 chinook zimbramon[1970]: 1970:info: 2006-03-05 18:59:01, STATUS: chinook.phoenix-systems.uk.com: ldap: Running
    Mar  5 18:59:04 chinook zimbramon[1970]: 1970:info: 2006-03-05 18:59:01, STATUS: chinook.phoenix-systems.uk.com: logger: Running
    Mar  5 18:59:04 chinook zimbramon[1970]: 1970:info: 2006-03-05 18:59:01, STATUS: chinook.phoenix-systems.uk.com: mailbox: Running
    Mar  5 18:59:04 chinook zimbramon[1970]: 1970:info: 2006-03-05 18:59:01, STATUS: chinook.phoenix-systems.uk.com: mta: Running
    Mar  5 18:59:04 chinook zimbramon[1970]: 1970:info: 2006-03-05 18:59:01, STATUS: chinook.phoenix-systems.uk.com: snmp: Running
    Mar  5 18:59:04 chinook zimbramon[1970]: 1970:info: 2006-03-05 18:59:01, STATUS: chinook.phoenix-systems.uk.com: spell: Running
    Mar  5 18:59:13 localhost.localdomain 2006-03-05 18:59:13,660 INFO  [Timer-0] [] SessionCache - Removed 6 idle sessions (AdminSession: 2, SoapSession: 4).  8 active sessions remain.
    Mar  5 18:59:18 chinook zimbramon[2258]: 2258:info: 2006-03-05 18:59:18, DISK: chinook.phoenix-systems.uk.com: dev: /dev/mapper/VolGroup00-LogVol00, mp: /, tot: 29041, avail: 46%
    Mar  5 18:59:18 chinook zimbramon[2258]: 2258:info: 2006-03-05 18:59:18, DISK: chinook.phoenix-systems.uk.com: dev: /dev/sda1, mp: /boot, tot: 99, avail: 75
    Mar  5 18:59:18 chinook zimbramon[2258]: 2258:info: 2006-03-05 18:59:18, DISK: chinook.phoenix-systems.uk.com: dev: /dev/hda1, mp: /backup, tot: 71097, avail: 66184
    Obviously the server name is now there, is the rest of the output what you'd expect?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #14
    marcmac is offline Expert Member
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    13

    Default

    Looks about right (v. small boot partition, but that's ok).

    Disk status should show up in the graphs the next time their generated.

  5. #15
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Thanks for your help with this, I'll keep an eye on the stats.

    Yes, the boot partition is only 100Mb. As a new Linux user (and not knowing any better) I went with the o/s install recommended defaults. - I like a simple life.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #16
    gjnieuwenhuis Guest

    Default

    Quote Originally Posted by marcmac
    There's a bug in the script:

    DISK: : dev: /dev/sda1, mp: /boot, tot: 99, avail: 75

    The hostname should be right before that second colon.

    I'll fix this in the code:
    line 54

    $hostname=`/opt/zimbra/bin/zmhostname`;
    chomp $hostname;

    (Those are backticks, not single quotes)
    Okay, I'm not sure if I'm getting brainlazy or just need more sleep: which script should be edited and is it possible to post the entire revisited script?

    TIA,
    GJ.

  7. #17
    marcmac is offline Expert Member
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    13

    Default

    zmdisklog in /opt/zimbra/bin (or libexec, don't remember which)

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Zimbra Disk Statistics, non-EXT3 Volumes
    By ccmacmil in forum Administrators
    Replies: 6
    Last Post: 04-07-2008, 09:59 AM
  2. Admin Statistics
    By bellzerr in forum Administrators
    Replies: 8
    Last Post: 11-21-2007, 01:50 AM
  3. centos 5 zimbra 4.5.6 no statistics
    By rutman286 in forum Installation
    Replies: 9
    Last Post: 08-14-2007, 09:30 AM
  4. statistics problem
    By rutman286 in forum Installation
    Replies: 5
    Last Post: 08-04-2007, 08:00 AM
  5. No Status or Statistics Showing
    By tron in forum Administrators
    Replies: 7
    Last Post: 10-17-2005, 09:23 PM

Posting Permissions

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