-
All replies
-
Helpful answers
-
Jul 27, 2011 11:54 PM in response to goeresby azurar01,Hi all, I managed to get the stats working, here's the process I followed.
- Reset PRAM (reboot + hold Option+Command+P+R and wait for the 3rd chime).
- Check status of first key in /System/Library/LaunchDaemons/ServerPerfLog.plist.
- If key is set to 'Disabled' then edit it (in text editor) to 'Enabled'.
- Save and replace /System/Library/LaunchDaemons/ServerPerfLog.plist.
- Close editor and all other apps.
- 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.
-
Jul 28, 2011 1:49 AM in response to azurar01by goeres,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
-
Jul 29, 2011 6:50 AM in response to azurar01by RAM-1500,azurar01 wrote:
Hi all, I managed to get the stats working, here's the process I followed.
- Reset PRAM (reboot + hold Option+Command+P+R and wait for the 3rd chime).
- Check status of first key in /System/Library/LaunchDaemons/ServerPerfLog.plist.
- If key is set to 'Disabled' then edit it (in text editor) to 'Enabled'.
- Save and replace /System/Library/LaunchDaemons/ServerPerfLog.plist.
- Close editor and all other apps.
- 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.
-
Jul 29, 2011 7:15 AM in response to RAM-1500by Stuboy64,Plus one here for the xserve same problem have also tried the suggestions given here
-
Jul 29, 2011 11:08 AM in response to azurar01by superstantial,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.
-
Jul 29, 2011 12:15 PM in response to superstantialby RAM-1500,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.
-
Jul 30, 2011 11:58 AM in response to RobertIOMby matthew.mcconnell,This worked for me as well.
MacMini 3,1
Upgrade in place from 10.6.8
-
Aug 1, 2011 6:14 AM in response to Daleforsterby nwmclean,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.
-
Aug 1, 2011 7:03 AM in response to nwmcleanby Stuboy64,Thanx nwmclean - that was the way I like to do things ---- easy
-
Aug 1, 2011 9:38 AM in response to superstantialby azurar01,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).
-
Aug 4, 2011 5:38 PM in response to azurar01by superstantial,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.
-
Aug 5, 2011 1:12 AM in response to superstantialby azurar01,Hi Superstantial, alas no further forward here.
-
Aug 13, 2011 10:58 AM in response to azurar01by Matt Domenici,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
-
Aug 17, 2011 12:29 AM in response to Matt Domeniciby azurar01,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.
-
Aug 20, 2011 5:58 AM in response to Daleforsterby kokomiko,type in terminal:
sudo defaults write /System/Library/LaunchDaemons/com.apple.ServerPerfLog.plist Disabled -bool 'false'
and restart the server.