From Unix Wiki
Jump to: navigation, search

SNMP on Red Hat compatible system


One can use favorite package manager (for example yum) and install following packages:

yum install net-snmp net-snmp-utils


One can use direct editing of configuration file or cli utilities for this. It depends on your choice. SNMP daemon has two most important configuration files:

/etc/snmp/snmpd.conf - main config file
/etc/sysconfig/snmpd.options - startup options of daemon

To open 161 port for local request one have to edit options file:

vi /etc/sysconfig/snmpd.options

...and copy-paste string like this and then restart snmpd service:

OPTIONS="-Lsd -Lf /dev/null -p /var/run/ -a -x"

second address is special on which snmp service should be listened (you can leave only to listen server on main interface).

Make it easier...

SNMP provides utilities for testing and configuring own service, for example:

Tets your SNMP server

snmpwalk -v [1,2c,3] -c [community name] [snmp server address]