To install the SNMP Plugin, perform the following steps:
Use your package manager to download and install the following packages:
1
snmp
Installs SNMP (Simple Network Management Protocol) applications like snmpget, snmpgetnext, snmptrapd, and so on.
2
snmp-mibs-downloader
Installs and manages Management Information Base (MIB) files
3
snmpd
SNMP (Simple Network Management Protocol) agents
Note Although the InfoHub SNMP plug-in uses NET-SNMP, NET-SNMP is not FIS software and FIS does not support NET-SNMP. The sample instructions for installing and configuring NET-SNMP are merely provided as a convenience to you.
On Ubuntu, the command to download and install these packages is:
$ sudo aptitude install snmpd snmp snmp-mibs-downloader
AIX Notes For testing the SNMP Plugin on AIX, the FIS GT.M Team built net-snmp 5.7.2 using the following commands:
./configure --disable-shared --without-kmem-usage make make test sudo make install
To start net-snmp, execute the following command:
sudo /usr/local/sbin/snmpd
To stop net-snmp, execute the following commands:
sudo /usr/local/sbin/snmpd $ ps -ef | grep snmpd root 42270958 1 0 13:46:31 - 0:00 /usr/local/sbin/snmpd ... $ sudo kill 42270958
Here is a possible default location of SNMP files:
log file: /var/log/snmpd.log write persistent info: /var/net-snmp library dir: /usr/local/lib executable: /usr/local/sbin/snmpd <-- This is the snmpd executable for NET-SNMP (with the corresponding /usr/local/sbin/snmptrapd) configuration file: /usr/local/share/snmp/snmpd.conf MIBs dir: /usr/local/share/snmp/mibs <-- You need to place the MIB in this location after generating it in step 8. help files: /usr/local/share/man/man[1,3,8]/snmp*
$ ldd `which snmpget`|grep snmp
This command produces an output like:
libnetsnmp.so.30 => /usr/lib/libnetsnmp.so.30 (0x00007fc985541000)
Execute the following command to find the location of the shared library libnetsnmp.so:
$ locate libnetsnmp.so
Change to that directory and make symbolic links to:
$ sudo ln -s libnetsnmp.so.15 libnetsnmp.so.30 $ sudo ln -s libnetsnmpagent.so.15 libnetsnmpagent.so.30 $ sudo ln -s libnetsnmphelpers.so.15 libnetsnmphelpers.so.30 $ sudo ln -s libnetsnmpmibs.so.15 libnetsnmpmibs.so.30 $ sudo ln -s libnetsnmptrapd.so.15 libnetsnmptrapd.so.30 $ sudo ln -s libsnmp.so.15 libsnmp.so.30
# SNMP daemon listens on default port on localhost agentAddress udp:127.0.0.1:161 # Create a view for the InfoHub view InfoHubonly included .1.3.6.1.4.1.16830.6.2 # Allow read-only access to the InfoHub on the localhost rocommunity <communitystring> 127.0.0.1 -V InfoHubonly # Have snmpd convert agentx notifications into informs informsink 127.0.0.1 <communitystring> #AgentX Sub-agents ## Have snmpd run as a master agent master agentx # Tell snmpd where to listen for Agentx connections agentXSocket tcp:127.0.0.1:705
AIX Notes To allow NET-SNMP and AIX's native snmp to coexist, assign a new port for the NET-SNMP agent by modifying the agentAddress line in snmp.conf:
agentAddress udp:127.0.0.1:9716
If NET-SNMP was installed from binaries, please note down what port number was assigned as this will be needed by snmpget, snmpgetnext, etc. For example:
agentAddress udp:127.0.0.1:1610
authCommunity log <communitystring>
Replace <communitystring> with the same password that you used in step 5.
$ sudo service snmpd restart
$gtm_dist/mumps -r generatemib >INFOHUB-1-MIB