spacer.png, 0 kB

The NEW Easy Guardian 2 has born from the previous version of Easy Guardian and the Nagios Core system.
It replaces the older one by adding a new series of tools, very powerful and easy to use, provided in an all-in-one embedded solution called Easy G2 FoxBox G20 . This device is perfect for realtime system monitoring & alerting through SMS.

 

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

!! PLEASE NOTE: THIS ARTICLE IS RELATED TO AN OLDER EASY GUARDIAN SYSTEM VERSION !!

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! KDEV e-shop

buy foxbox
buy on FoxBox eShop



For further info contact us by mail This e-mail address is being protected from spam bots, you need JavaScript enabled to view it providing us the FoxBox model you need and your company details.

spacer.png, 0 kB