Archive

Posts Tagged ‘snmp’

Windows SNMP configuration

February 12th, 2009 Arthur Gressick No comments

I recently wanted to add my windows servers to my cacti monitoring system. Here are some directions on how to get that going.

1. Go to Start | Control Panel, and double-click the Administrative Tools applet.

2. Open the Services console, and select SNMP Service.

3. On the Agent tab, specify the types of applications that you want the server to report through SNMP by selecting the check box of each required application type.

4. On the Traps tab, specify the SNMP trap destinations to which the server will send trap notifications. (Trap destinations are the management systems that need to receive SNMP management notifications from the server.) The community name acts as a combination password and identifier, so you must specify at least one SNMP community name on the Traps tab.

5. On the Security tab, specify the hosts from which the server will accept SNMP packets, and configure the allowed actions for specific communities.

Categories: Windows Tags: ,

CentOS SNMP

February 11th, 2009 Arthur Gressick No comments

The standard installs I do for CentOS don’t come with SNMP installed. I used the GUI to get the SNMP then do the following commands:

Rename the default configuration file

mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.bak

Create new file with your own SNMP configuration

vi /etc/snmp/snmpd.conf

Paste the following information into the terminal window

###########################################################################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
###########################################################################
# SECTION: System Information Setup
#
# This section defines some of the information reported in
# the “system” mib group in the mibII tree.
# syslocation: The [typically physical] location of the system.
# Note that setting this value here means that when trying to
# perform an snmp SET operation to the sysLocation.0 variable will make
# the agent return the “notWritable” error code. IE, including
# this token in the snmpd.conf file will disable write access to
# the variable.
# arguments: location_string
 
syslocation SAVVIS
# syscontact: The contact information for the administrator
# Note that setting this value here means that when trying to
# perform an snmp SET operation to the sysContact.0 variable will make
# the agent return the “notWritable” error code. IE, including
# this token in the snmpd.conf file will disable write access to
# the variable.
# arguments: contact_string
 
syscontact Arthur Gressick
###########################################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]
 
rocommunity public
###########################################################################
# SECTION: Agent Operating Mode
#
# This section defines how the agent will operate when it
# is running.
# agentaddress: The IP address and port number that the agent will listen on.
# By default the agent listens to any and all traffic from any
# interface on the default SNMP port (161). This allows you to
# specify which address, interface, transport type and port(s) that you
# want the agent to listen on. Multiple definitions of this token
# are concatenated together (using ‘:’s).
# arguments: [transport:]port[@interface/address],…
 
agentaddress 10.10.x.x:161

Then reload the SNMP service from the gui and if you have cacti monitoring your OS try and connect.

Categories: Centos 5.x Tags: ,

Ubuntu SNMP Configuration

February 11th, 2009 Arthur Gressick 1 comment

So recently I want to setup a cacti server to read all of the ubuntu server and found some directions on how to install and configure the SNMP service on my Unbuntu 8.10 Server.

sudo apt-get install snmpd snmp

After you install the software you need to make a changes to some of the config files.

/etc/default/snmpd – Take out the 127.0.0.1 and save the file

SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'

/etc/snmp/snmpd.conf file to the following.

#com2sec paranoid  default         public
com2sec readonly  default         public
#com2sec readwrite default         private
syslocation Location
syscontact name@email.address.com

Make sure and restart the snmp server

/etc/init.d/snmpd restart

Categories: Ubuntu 8.x Server Tags: ,