Daleforster

Q: server status stats not showing any information

After upgrading to Lion Server from Snow leopard server the status graphs for cpu, memory and network usage just appear as blank windows.. any know how to restart them or get them to show?

Posted on Jul 21, 2011 1:10 AM

Close

Q: server status stats not showing any information

  • All replies
  • Helpful answers

first Previous Page 3 of 4 last Next
  • by azurar01,

    azurar01 azurar01 Jul 27, 2011 11:54 PM in response to goeres
    Level 1 (0 points)
    Jul 27, 2011 11:54 PM in response to goeres

    Hi all, I managed to get the stats working, here's the process I followed.

     

    1. Reset PRAM (reboot + hold Option+Command+P+R and wait for the 3rd chime).
    2. Check status of first key in /System/Library/LaunchDaemons/ServerPerfLog.plist.
    3. If key is set to 'Disabled' then edit it (in text editor) to 'Enabled'.
    4. Save and replace /System/Library/LaunchDaemons/ServerPerfLog.plist.
    5. Close editor and all other apps.
    6. Normal reboot and wait 3 minutes to allow for data to collect.

     

    I now have stats in the Server app, and in the Admin tools locally.

     

    Since Admin tools for Lion will not install on Snow Leopard, I am yet to work out how a server can be remotely monitored.

  • by goeres,

    goeres goeres Jul 28, 2011 1:49 AM in response to azurar01
    Level 1 (5 points)
    Jul 28, 2011 1:49 AM in response to azurar01

    I am still using Mac OS X server 10.4, 10.6 and testinf 10.7

     

    For me the only way at the moment is to use Apple Remote Desktop and the Server Admin App on the iPhone which monitors at least from 10.4 up 10.7

     

    regards

  • by RAM-1500,

    RAM-1500 RAM-1500 Jul 29, 2011 6:50 AM in response to azurar01
    Level 1 (0 points)
    Jul 29, 2011 6:50 AM in response to azurar01

    azurar01 wrote:

     

    Hi all, I managed to get the stats working, here's the process I followed.

     

    1. Reset PRAM (reboot + hold Option+Command+P+R and wait for the 3rd chime).
    2. Check status of first key in /System/Library/LaunchDaemons/ServerPerfLog.plist.
    3. If key is set to 'Disabled' then edit it (in text editor) to 'Enabled'.
    4. Save and replace /System/Library/LaunchDaemons/ServerPerfLog.plist.
    5. Close editor and all other apps.
    6. Normal reboot and wait 3 minutes to allow for data to collect.

     

    I now have stats in the Server app, and in the Admin tools locally.

     

    Since Admin tools for Lion will not install on Snow Leopard, I am yet to work out how a server can be remotely monitored.

    We tried this and all the prior ideas in this thread: none of them worked.

     

    On our Xserve machine, we had Snow Leopard Server and we upgraded to Lion, and then to Lion Server as per Apple instructions. Then downloaded and install Server Admin Tools. Everything else works fine except the graphs for CPU and Network. They do not show on Server app nor Server Admin.

     

    We also noticed such file (com.apple.ServerPrefLog.plist) did not exist on Snow Leopard Server OS. We assumed it was created by Lion?

     

    Q: the key from "disable" to "enable", should the value be kept on "true" (default) or also change that to "false"?

     

    We are open to try any new ideas.

     

    Thanks.

  • by Stuboy64,

    Stuboy64 Stuboy64 Jul 29, 2011 7:15 AM in response to RAM-1500
    Level 1 (5 points)
    Jul 29, 2011 7:15 AM in response to RAM-1500

    Plus one here for the xserve same problem have also tried the suggestions given here

  • by superstantial,

    superstantial superstantial Jul 29, 2011 11:08 AM in response to azurar01
    Level 1 (5 points)
    Jul 29, 2011 11:08 AM in response to azurar01

    The manpage for launchctl says this:

     

                  -w       Overrides the Disabled key and sets it to false. In previous versions, this option would modify the

                           configuration file. Now the state of the Disabled key is stored elsewhere on-disk.

     

    so as long as you see ServerPerfLog in your process list, being disabled is probably not the problem:

     

    nyx$ ps ax | grep ServerPerfLog

       98   ??  Ss     0:06.51 /usr/libexec/ServerPerfLog

    nyx$

     

    If you don't see it running, you can start it with launchctl:

     

    sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.ServerPerfLog.plist

     

    My daemon keeps running, but it seems to stop recording stats randomly, especially when Server.app isn't actively watching.  It works fine on my laptop running lion server, but not this Early 2009 Mac Pro upgraded from Lion.  Server load is not an issue, unless 100% idle is a problem.

  • by RAM-1500,

    RAM-1500 RAM-1500 Jul 29, 2011 12:15 PM in response to superstantial
    Level 1 (0 points)
    Jul 29, 2011 12:15 PM in response to superstantial

    Our graphs are working now!!!  Here is what I found out.  I did not use terminal to edit "com.apple.ServerPerfLog.plist.  I dragged the file to the desktop, then changed where the key Disabled was set to true I change to false (rkydd, Jul 25).  I then dragged the file back to where I got it from, and of course, had to authenticated and click replace. However what happenned was "System" no longer own the file. The admin user I made the changes with now owned the file.  Therefore, I selected the directory "LaunchDaemons", "getinfo" and "applied to enclosed items" fixing the rights.  Rebooted the server.  On the way up I zapped the Pram.  When it started, all the graphs, cpu, memory, and network are working.  I installed ServerAdmin Tools previously and this graph is now working as well.  Now I need to work on OD, but that is a different thread.

  • by matthew.mcconnell,

    matthew.mcconnell matthew.mcconnell Jul 30, 2011 11:58 AM in response to RobertIOM
    Level 1 (5 points)
    Jul 30, 2011 11:58 AM in response to RobertIOM

    This worked for me as well.

     

    MacMini 3,1

     

    Upgrade in place from 10.6.8

  • by nwmclean,

    nwmclean nwmclean Aug 1, 2011 6:14 AM in response to Daleforster
    Level 1 (0 points)
    Aug 1, 2011 6:14 AM in response to Daleforster

    For a quick and easy solution, all GUI too if thats ok, I used Lingon.  Find the appropriate .plist, click the enable box, save & exit.  Reboot (or use launchctl load from terminal).  No mess around with sudo or fixing permissions etc.

  • by Stuboy64,

    Stuboy64 Stuboy64 Aug 1, 2011 7:03 AM in response to nwmclean
    Level 1 (5 points)
    Aug 1, 2011 7:03 AM in response to nwmclean

    Thanx nwmclean - that was the way I like to do things ---- easy

  • by azurar01,

    azurar01 azurar01 Aug 1, 2011 9:38 AM in response to superstantial
    Level 1 (0 points)
    Aug 1, 2011 9:38 AM in response to superstantial

    superstantial wrote:

     

    My daemon keeps running, but it seems to stop recording stats randomly, especially when Server.app isn't actively watching. 

     

    Ditto. I managed to get the graphs appearing by logging in as root and following the process I posted further up the thread, though now if the Server app is not running the data is displayed either slowly 10 seconds wait before data or there is no data. I have noticed changing the period (say from 4 hours to 2 days) and back does seem to display data most times. I conclude the stats are being recorded, but not displayed.

     

    At this stage I don't want to do a clean install, but I am loosing faith in the Snow Leopard upgrade to Lion. And Apple have not been too proactive on helping. So much for Apple Care. (Whinge over for now).

  • by superstantial,

    superstantial superstantial Aug 4, 2011 5:38 PM in response to azurar01
    Level 1 (5 points)
    Aug 4, 2011 5:38 PM in response to azurar01

    Bump.

     

    Has anyone had any luck getting their Server.app Statistics to show up reliably?  My graphs are so full of holes they are completely worthless.

  • by azurar01,

    azurar01 azurar01 Aug 5, 2011 1:12 AM in response to superstantial
    Level 1 (0 points)
    Aug 5, 2011 1:12 AM in response to superstantial

    Hi Superstantial, alas no further forward here.

  • by Matt Domenici,

    Matt Domenici Matt Domenici Aug 13, 2011 10:58 AM in response to azurar01
    Level 1 (119 points)
    Aug 13, 2011 10:58 AM in response to azurar01

    I suspect the issue here is that while the daemon may be loaded, simply setting it to "enabled" is not sufficient.  You need it to load at startup time or login.

     

    I had the same problem -- when I logged in as a user and started ServerAdmin -- the daemon would start and graphing would contniue -- until I logged out.

     

    Using lingon, I changed the daemon to both be enabled and startup at login/system start.  That did the trick!

     

    These seems to be yet another in a long list of things that don't quite work right when you migrate using the assistant from older hardware...

     

    - Matt

  • by azurar01,

    azurar01 azurar01 Aug 17, 2011 12:29 AM in response to Matt Domenici
    Level 1 (0 points)
    Aug 17, 2011 12:29 AM in response to Matt Domenici

    I have just up graded to 10.7.1; initial tests appear positive. I will post my results when the server has had a few days load under 10.7.1.

  • by kokomiko,

    kokomiko kokomiko Aug 20, 2011 5:58 AM in response to Daleforster
    Level 1 (0 points)
    Aug 20, 2011 5:58 AM in response to Daleforster

    type in terminal:

     

    sudo defaults write /System/Library/LaunchDaemons/com.apple.ServerPerfLog.plist Disabled -bool 'false'

     

    and restart the server.

first Previous Page 3 of 4 last Next