So, I need some snmpd.conf help.

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
fly
Posts: 1
Joined: Mon Oct 09, 2006 8:02 pm

So, I need some snmpd.conf help.

Post by fly »

So I failed at understanding how to configure my snmpd.conf file, even with the snmpconf Q&A. Instead I used the simple config mentioned in the FAQ.

Code: Select all

# contact
syslocation Something
syscontact "root@someone.com"

# auth
rocommunity public

# disk monitoring
disk /
Are there any security risks or any other issues with configuring snmpd in this way? Im using CentOS, if it matters.
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Well, picking 'public' is not a good idea...

And, IIRC, the latest net-snmp should be configured, at a minimum with:

Code: Select all

# define RO community
rocommunity     public

# First, map the community name "public" into a "security name"
#       sec.name  source          community
com2sec notConfigUser  default       public

# Second, map the security name into a group name:
#       groupName      securityModel securityName
group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser

# Third, create a view for us to let the group have rights to:
#       name           incl/excl     subtree         mask(optional)
view    systemview     included      system

# Finally, grant the group read-only access to the systemview view.
#       group          context sec.model sec.level prefix read   write  notif
access  notConfigGroup ""      any       noauth    exact  systemview none none

With the above config, change the two instances of 'public' to your own communitystring.

Optionally, you can add:

Code: Select all

sysdescr        "Linux 2.6.17-5mdv"
syscontact      me@here.com
sysname         mybox
syslocation     Right Here

disk /
disk /tmp
disk /var
etc, etc
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Re: So, I need some snmpd.conf help.

Post by fmangeant »

fly wrote:So I failed at understanding how to configure my snmpd.conf file, even with the snmpconf Q&A. Instead I used the simple config mentioned in the FAQ.
Hi

see the howto in my signature for a complete documentation about snmpd.conf
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests