我有两台运行Mac OS X 10.8.3 Server(Build 12D78)的服务器,启用了SNMP报告function。 我有一个cacti服务器设置从这些主机收集数据。 我的负载平均,CPU使用率,磁盘空间使用率和networking图都很好看! 但内存使用率是全线的。
我看到这个相关的问题,但它是如此之大,我相信它是无效的OS X Server 10.8。
当我运行snmpwalk -v2c -c communityname 10.100.10.10 .1.3.6.1.4.1.2021.4对Mac OS X服务器时,我得到:
UCD-SNMP-MIB::memIndex.0 = INTEGER: 0 UCD-SNMP-MIB::memErrorName.0 = STRING: swap UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000 kB
将它与我networking上的FreeBSD服务器进行比较:
kyle:~ dfjosh$ snmpwalk -v2c -c communityname 10.100.1.1 .1.3.6.1.4.1.2021.4 UCD-SNMP-MIB::memIndex.0 = INTEGER: 0 UCD-SNMP-MIB::memErrorName.0 = STRING: swap UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 2097024 kB UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 2097024 kB UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 504028 kB UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 27336 kB UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 34092 kB UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000 kB UCD-SNMP-MIB::memShared.0 = INTEGER: 124432 kB UCD-SNMP-MIB::memBuffer.0 = INTEGER: 60320 kB UCD-SNMP-MIB::memCached.0 = INTEGER: 6756 kB UCD-SNMP-MIB::memSwapError.0 = INTEGER: noError(0) UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING: kyle:~ dfjosh$ snmpwalk -v2c -c farcry 10.100.10.10 .1.3.6.1.4.1.2021.4 UCD-SNMP-MIB::memIndex.0 = INTEGER: 0 UCD-SNMP-MIB::memErrorName.0 = STRING: swap UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000 kB
我试图从头开始编译和安装net-SNMP ,biut并没有改变返回的数据。
如何让Mac OS X Server通过SNMP报告内存使用情况(理想情况下是交换还是页面进入)?
可能是一个愚蠢的问题,但你有没有比较BSD和OS X服务器之间的configuration文件?
另外你有没有比较机器之间的编译时间configuration选项?
'--build=x86_64-linux-gnu' '--includedir=/usr/include' '--mandir=/usr/share/man' '-- infodir=/usr/share/info' '--localstatedir=/var' '--libexecdir=/usr/lib/net-snmp' '--disable- maintainer-mode' '--disable-dependency-tracking' '--prefix=/usr' '--sysconfdir=/etc' '-- mandir=/usr/share/man' '--with-persistent-directory=/var/lib/snmp' '--enable-ucd-snmp-compatibility' '--enable-shared' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format- security' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'FFLAGS=-g -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' '-- with-perl-modules=INSTALLDIRS=vendor' '--enable-as-needed' '--enable-ipv6' '--with-logfile=none' '-- without-rpm' '--with-libwrap' '--with-openssl' '--without-dmalloc' '--without-efence' '--without- rsaref' '--with-sys-contact=root' '--with-sys-location=Unknown' '--with-mib-modules=smux ucd- snmp/dlmod ucd-snmp/diskio ucd-snmp/lmSensors host' '--with-out-mib-modules=' '--enable-mfd-rewrites' '
这是我的Linux机器上带有内存的传感器。