SNMP in Mac OS X Server is currently unable to return much of the
information you can find in Server Monitor. Here's a short list of
some useful data that you *can* get out SNMP by default:
Network Traffic and errors (across whatever interfaces you have)
Mounted Disks
Disk Utilization (used / free)
Uptime
Number of Logged in Users
To see a full list, make sure snmpd is enabled on your server, then
snmpwalk it, e.g.: snmpwalk -v 1 -c <community name> <hostname>
The truth is that the state of snmpd in Tiger / Tiger Server is
somewhat less than optimal. Note for example that CPU or memory usage
is not reported at all, though SNMP would report this by default on
many other platforms. These shortcomings have been reported to Apple.
However, one nice thing about SNMP is that it is extremely
extensible. Any data that you can retrieve in some fashion using a
unix shell can be made available to SNMP via the use of the
'extensible mib'. Here is an example of how to get server monitor
data via a shell:
At this point, you'd have some XML results, which could then be
parsed as you like. When you've honed in on the data that is
interesting to you, wrap it up in snmpd.conf directives that map the
data collection script(s) you have written to SNMP object IDs (OIDs).
See the man page for snmpd.conf for more. I have an example of a
custom script to monitor CPU utilization included with my post about
Cacti; http://www.dreness.com/blog/archives/33 (skip to the
'extending cacti' heading).
Hope this helps,
-Andre _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden