Tuesday, April 01, 2008

Monitoring Tiger via SNMPD over the network

I have been working on setting up the MRTG on Judith to include the monitoring and graphing of Thor's statistics.
Setting up SNMPD on Tiger it is a piece of cake (edit a file, and you have to create/ edit/taylor your snmpd.conf file, specially if you are going to access it over the network).
Also, if you want to poll that over the network, and you are running a firewall on Tiger, which you should, open the necessary ports and presto.

The biggest gripe was finding the OIDs, and then getting those to work with MRTG (except getting the config for the interfaces, since cfgmaker always delivers and makes it really easier.

Target[thor_memory]: memAvailReal.0&memTotalReal.0:XXXXXXXXXXXXX@thor
Title[thor_memory]: Free Memory
PageTop[thor_memory]: Free Memory
MaxBytes[thor_memory]: 100000000000
ShortLegend[thor_memory]: B
YLegend[thor_memory]: Bytes
LegendI[thor_memory]: Free
LegendO[thor_memory]: Total
Legend1[thor_memory]: Free memory, not including swap, in bytes
Legend2[thor_memory]: Total memory
Options[thor_memory]: gauge,nopercent
kMG[thor_memory]: k,M,G,T,P,X

Title[thor_mempercent]: Percentage Free Memory
PageTop[thor_mempercent]: Percentage Free Memory
Target[thor_mempercent]: ( memAvailReal.0&memAvailReal.0: XXXXXXXXXXXXX@thor ) * 100 / ( memTotalReal.0&memTotalReal.0: XXXXXXXXXXXXX@thor )
options[thor_mempercent]: gauge,transparent,nopercent
Unscaled[thor_mempercent]: ymwd
MaxBytes[thor_mempercent]: 100
YLegend[thor_mempercent]: Memory %
ShortLegend[thor_mempercent]: Percent
LegendI[thor_mempercent]: Free
LegendO[thor_mempercent]: Free
Legend1[thor_mempercent]: Percentage Free Memory
Legend2[thor_mempercent]: Percentage Free Memory

Target[thor_en0]: 4: XXXXXXXXXXXXX@thor:
SetEnv[thor_en0]: MRTG_INT_IP="" MRTG_INT_DESCR="en0"
Options[thor_en0]: nopercent,noinfo,nobanner
MaxBytes[thor_en0]: 1250000
Title[thor_en0]: Traffic analysis for en0 Ethernet card
PageTop[thor_en0]: Traffic analysis for en0 Ethernet card

Target[thor_en1]: 5: XXXXXXXXXXXXX@thor:
SetEnv[thor_en1]: MRTG_INT_IP="" MRTG_INT_DESCR="en1"
Options[thor_en1]: nopercent,noinfo,nobanner
MaxBytes[thor_en1]: 1250000
Title[thor_en1]: Traffic analysis for en1 Ethernet card
PageTop[thor_en1]: Traffic analysis for en1 Ethernet card

Target[thor_fw0]: 6: XXXXXXXXXXXXX@thor:
SetEnv[thor_fw0]: MRTG_INT_IP="" MRTG_INT_DESCR="fw0"
Options[thor_fw0]: nopercent,noinfo,nobanner
MaxBytes[thor_fw0]: 1250000
Title[thor_fw0]: Traffic Analysis for fw0
PageTop[thor_fw0]: Traffic Analysis for fw0

Some links I collected along the way:

Setting up cacti on OS X for performance monitoring
system monitoring with mrtg/snmp
Re: Xserve SNMP-MIBs for Vital Hardware Stats  - Includes OIDs on some stuff

Labels: , , , ,


Post a Comment

<< Home