Net-SNMP: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
No edit summary
Tgurr (talk | contribs)
No edit summary
Line 23: Line 23:
== Configuration ==
== Configuration ==
=== Allow localhost read-only queries ===
=== Allow localhost read-only queries ===
{{Box File|/etc/portage/package.use|
{{Box File|/etc/snmp/snmpd.conf|
<pre>
<pre>
# First, map the community name (COMMUNITY) into a security name
# First, map the community name (COMMUNITY) into a security name

Revision as of 11:26, 22 April 2008

Description

Configure Net-SNMP to allow localhost/localnet queries.

Dependencies

USE-Flags

Template:Box File

Packages

Template:Box Code

Installation

# emerge net-snmp

Configuration

Allow localhost read-only queries

Template:Box File

Allow localhost read-write and localnet read-only queries

Template:Box File

Finalize

# /etc/init.d/snmpd start

# rc-update add snmpd default

Testing

# snmpwalk -v 1 -c public localhost system

Further Reading

  • Squid - Configure Squid for SNMP queries
  • MRTG - Get nice graphs out of your SNMP data