spacer.png, 0 kB
Easy Guardian brings together powerfull tools of the open source arena like NMAP and Net-SNMP in a small silent Linux embedded box. The on-board GSM/GPRS Quad Band modem is linked to an advanced scanning engine that will alert you with a SMS every time a threshold exceed will be detected.
 

spacer.png, 0 kB
spacer.png, 0 kB
Home arrow SNMP Installation arrow Install SNMP Agent on *NIX system
Install SNMP Agent on *NIX system PDF Print E-mail
This HowTo will explain how to install and configure the Net-SNMP agent. As the time of writing, the latest version available is 5.4.1 (published on 07/27/2007).


Chapter I: Getting Net-SNMP binaries

Depending on your operating system, you'll find packages or tarballs to install Net-SNMP :



Chapter II: Building the Net-SNMP agent from sources

If you can't find binaries for your architecture, you can build the Net-SNMP agent from sources. Latest sources are available here.

Here's how to get the configure options of an already running Net-SNMP agent :
Code:
$ snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.100.6.0
UCD-SNMP-MIB::versionConfigureOptions.0 = STRING: "'-disable-shared' '--with-mib-modules=host/hr_system'"

Some useful mib modules are :
  • mibII/mta_sendmail, to graph MTA (Sendmail, Postfix, etc.) statistics
  • diskio, to enable to graph I/O statistics
  • ucd-snmp/lmSensors, for hardware monitoring (Linux and Solaris only)

Mib modules can be added like this :
Code:
$ ./configure --with-mib-modules="module1 module2"


To compile Net-SNMP and build a compressed archive, follow these steps :
Code:
$ ./configure --with-your-options
$ make
# mkdir /usr/local/dist
# make install prefix=/usr/local/dist/usr/local exec_prefix=/usr/local/dist/usr/local
# cd /usr/local/dist
# tar cvf /tmp/net-snmp-5.3.1-dist.tar usr
# gzip /tmp/net-snmp-5.3.1-dist.tar
# rm -rf /usr/local/dist

You can then copy the /tmp/net-snmp-5.3.1-dist.tar.gz file to other servers, and uncompress it from the root directory (everything will get extracted to /usr/local).



Chapter III: Configuring the Net-SNMP agent

Depending on how you've installed Net-SNMP, the main configuration file (snmpd.conf) is located in /etc/snmp (installation from package) or /usr/local/share/snmp (installation from tarball).

Please note that you need to restart (or send the HUP signal) the snmpd daemon whenever you modify snmpd.conf !

The minimum configuration is this one :
Code:
rocommunity public

This will enable SNMP version 1/2 read-only requests from any host, with the community name public.
With this minimal configuration, you'll be able to graph CPU usage, load average, network interfaces, memory / swap usage, logged in users and number of processes.

You can restrict from which hosts SNMP queries are allowed :
Code:
rocommunity public 127.0.0.1
rocommunity test 87.65.43.21


By default Net-SNMP listens on UDP port 161 on all IPv4 interfaces.
 
Next >
Buy now! Acme e-shop
Product description Price Code Qt.y

Easy Guardian

Easy Guardian

Linux Embedded Web Server for network monitoring.

830 EUR EASYG
spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB