Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xserve SNMP-MIBs for Vital Hardware Stats




On Jun 2, 2007, at 1:42 AM, Gregory Hedo wrote:

Hello,
I'm trying to get "vital hardware informations" (CPU Usage, CPU temperature, Memory, ...) "à-la-ServerMonitor" with SNMP.


I use http://www.netmrg.net/ (very nice package of RRDtT monitoring) and I need strings line 1.3.6.1.4.1.9.5.1.1.8.0

I have downloaded CocoaSNMP (GUI mib browser) But I 'am lost in the trees
I googled a lot ... no result ...


Any hellp will be greatly appreciated

Thanks !

Gregory _______________________________________________

Hi,

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:

http://faq.bioteam.net/index.php? sid=253527&lang=en&action=artikel&cat=4&id=45&artlang=en

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

This email sent to email@hidden
References: 
 >Xserve SNMP-MIBs for Vital Hardware Stats (From: Gregory Hedo <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.