snmp server installation

install:

  • yum install net-snmp-utils
  • apt-get install snmp

configuration

  • vim /etc/snmp/snmp.conf: add  “rocommunity public”
  • /etc/init.d/snmpd start

Test

  • http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/System_Administrators_Guide/sect-System_Monitoring_Tools-Net-SNMP-Retrieving.html
  • UCD-SNMP-MIB::dskPercent.# : Percent of disk space available.
  • UCD-SNMP-MIB::laLoad.1 / UCD-SNMP-MIB::laLoad.3 : Load Average of 1 minute / 15 minutes.
  • UCD-SNMP-MIB::ssCpuIdle.0 : Percentage of CPU Idle
  • HOST-RESOURCES-MIB::hrStorageUsed.2 : Real Memory Usage
  • HOST-RESOURCES-MIB::hrStorageUsed.3 : Swap Memory Usage
  • UCD-SNMP-MIB::prCount.# : Number of processes for tracked applications per the ‘proc’ configuration setting in the snmpd.conf
  • UCD-SNMP-MIB::extOutput.# : The output from a script / application run by the SNMP process on the host for the ‘exec’ configuration.
  • snmpwalk -c public -v 1 localhost UCD-SNMP-MIB::dskPercent  (for disk usage)
  • snmpwalk -c public -v 1 localhost UCD-SNMP-MIB::prCount  (for process)
  • snmpwalk -c public -v 1 localhost UCD-SNMP-MIB::laLoad (for load average)
  • snmpwalk -c public -v 1 localhost UCD-SNMP-MIB::extOutput (for exec results)
  • snmpwalk -c public -v 2c  localhost NET-SNMP-EXTEND-MIB::nsExtendObjects
  • snmpwalk -v 1 -c public localhost IF-MIB::ifDescr
  • snmpwalk -v 1 -c public localhost IF-MIB::ifOutOctets
  • snmpwalk -v 1 -c public localhost IF-MIB::ifInOctets
  • snmpwalk -v 1 -c public -O e 127.0.0.1
  • snmpwalk -v 1 -c public -O e 127.0.0.1 .1.3.6.1.4.1.2021.9
Advertisements
This entry was posted in snmp. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s