General discussion

Locked

snmpd.conf

By jopoy ·
hi! i've been having problems in configuring snmpd.conf. all i want is for it to work with mrtg so i can monitor the bandwitdh of the ethernet ports. if you can send me a sample config other than what is provided by redhat 8.0. i would highly appreciate it.
TIA.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

snmpd.conf

by cpfeiffe In reply to snmpd.conf

Here is my sample. I do Unix management, but don't use SNMP; however, our network guys wanted to do some testing with Optivity (Nortel application) and it generated an snmpd.conf file. This was on Solaris. At the top you can see the generated data from Nortel (some of which we commented out and replaced with more secure settings - don't use public/private communities). Then at the bottom you see the original file with comments and samples.

sysdescr Sun SNMP Agent, Ultra-250
#syscontact System administrator
#sysLocation System administrators office
syscontact Charles Pfeiffer
sysLocation Data Center CC3
#
#system-group-read-community public
#system-group-write-community private
system-group-read-community external
system-group-write-community internal
#
#read-community public
#write-community private
read-community external
write-community internal
#
trap localhost
#trap-community SNMP-trap
trap-community internal-trap
#
#kernel-file /vmunix
#
#managers lvs golden
managers localhost

#############################

# File Format:

# Each entry consists of a keyword followed by a parameter string,
# terminated by a newline. The keyword must begin in the first
# position. The parameters are separated from the keyword (and from
# one another) by whitespace. All text following (and including) a '#'
# character is ignored. Case in keywords is ignored, but case in
# parameter strings is NOT ignored.

# Supported Keywords:

# sysdescr String to use for sysDescr.
# syscontact String to use for sysContact.
# syslocation String to use for sysLocation.
#
# system-group-read-community Community name needed for read access
# to the system group.
# system-group-write-community Community name needed for write access
# to the system group.
# read-community Community n

Collapse -

snmpd.conf

by jopoy In reply to snmpd.conf

Poster rated this answer

Collapse -

snmpd.conf

by cpfeiffe In reply to snmpd.conf

Here is my sample. I do Unix management, but don't use SNMP; however, our network guys wanted to do some testing with Optivity (Nortel application) and it generated an snmpd.conf file. This was on Solaris. At the top you can see the generated data from Nortel (some of which we commented out and replaced with more secure settings - don't use public/private communities). Then at the bottom you see the original file with comments and samples.

sysdescr Sun SNMP Agent, Ultra-250
#syscontact System administrator
#sysLocation System administrators office
syscontact Charles Pfeiffer
sysLocation Data Center CC3
#
#system-group-read-community public
#system-group-write-community private
system-group-read-community external
system-group-write-community internal
#
#read-community public
#write-community private
read-community external
write-community internal
#
trap localhost
#trap-community SNMP-trap
trap-community internal-trap
#
#kernel-file /vmunix
#
#managers lvs golden
managers localhost

Collapse -

snmpd.conf

by jopoy In reply to snmpd.conf

Poster rated this answer

Collapse -

snmpd.conf

by cpfeiffe In reply to snmpd.conf

That was too long for one response. Here is the rest (original file)

#############################

# File Format:

# Each entry consists of a keyword followed by a parameter string,
# terminated by a newline. The keyword must begin in thefirst
# position. The parameters are separated from the keyword (and from
# one another) by whitespace. All text following (and including) a '#'
# character is ignored. Case in keywords is ignored, but case in
# parameter strings is NOT ignored.

# Supported Keywords:

# sysdescr String to use for sysDescr.
# syscontact String to use for sysContact.
# syslocation String to use for sysLocation.
#
# system-group-read-community Community name needed for read access
# to the system group.
# system-group-write-community Community name needed for write access
# to the system group.
# read-community Community name needed for read access
# to the entire MIB.
# write-community Community name needed for write access
# to the entire MIB (implies read access).
#
# trap Host names where traps should be sent.
# A maximum of 5 hosts may be listed.
# trap-community Community name to be used in traps.
#
# kernel-file Filename to use for kernel symbols.
#
# managers Hosts that can send SNMP queries.
# Only five hosts may be listed on any one line.
# This keyword may be repeated for a total of 32 hosts.
#
# newdevice Additional devices which are not built in snmpd
# format as below
#
# newdevice type speed name
#
# where newdevice is keyword, type is an interger which has to match your
# schema file, speed is the new device's speed, and name is this new
# device's name


I hope this helps

Collapse -

snmpd.conf

by jopoy In reply to snmpd.conf

thanks for the help! but i got frustrated and used cban with rrdtool :)

Collapse -

snmpd.conf

by jopoy In reply to snmpd.conf

This question was closed by the author

Related Discussions

Related Forums