finishing file cleanup
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# snmpd command line options
|
||||
OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid"
|
||||
#OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a"
|
3
CMDB/snmp/.svn/text-base/centos-snmpd.options.svn-base
Normal file
3
CMDB/snmp/.svn/text-base/centos-snmpd.options.svn-base
Normal file
@@ -0,0 +1,3 @@
|
||||
# snmpd command line options
|
||||
OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid"
|
||||
#OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a"
|
22
CMDB/snmp/.svn/text-base/debian-default-snmpd.svn-base
Normal file
22
CMDB/snmp/.svn/text-base/debian-default-snmpd.svn-base
Normal file
@@ -0,0 +1,22 @@
|
||||
# This file controls the activity of snmpd and snmptrapd
|
||||
|
||||
# Don't load any MIBs by default.
|
||||
# You might comment this lines once you have the MIBs downloaded.
|
||||
export MIBS=
|
||||
|
||||
# snmpd control (yes means start daemon).
|
||||
SNMPDRUN=yes
|
||||
|
||||
# snmpd options (use syslog, close stdin/out/err).
|
||||
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid'
|
||||
|
||||
# snmptrapd control (yes means start daemon). As of net-snmp version
|
||||
# 5.0, master agentx support must be enabled in snmpd before snmptrapd
|
||||
# can be run. See snmpd.conf(5) for how to do this.
|
||||
TRAPDRUN=no
|
||||
|
||||
# snmptrapd options (use syslog).
|
||||
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
|
||||
|
||||
# create symlink on Debian legacy location to official RFC path
|
||||
SNMPDCOMPAT=yes
|
62
CMDB/snmp/.svn/text-base/setup-snmp.sh.svn-base
Normal file
62
CMDB/snmp/.svn/text-base/setup-snmp.sh.svn-base
Normal file
@@ -0,0 +1,62 @@
|
||||
#!/bin/bash
|
||||
#A script to setup snmp on redhat/debian systems
|
||||
|
||||
|
||||
|
||||
centos_snmp()
|
||||
#Install SNMP on a cent box
|
||||
{
|
||||
#Fix yum.conf
|
||||
wget -O /etc/yum/yum.conf http://slack-master.tplab.tippingpoint.com/yum.conf
|
||||
|
||||
|
||||
#Install snmpd
|
||||
yum -y install net-snmp
|
||||
|
||||
#Install observium bits
|
||||
wget -O /usr/bin/distro http://www.observium.org/svn/observer/trunk/scripts/distro
|
||||
chmod 755 /usr/bin/distro
|
||||
|
||||
#Pull down snmpd configuration files
|
||||
wget -O /etc/snmp/snmpd.conf http://slack-master.tplab.tippingpoint.com/snmp/snmpd.conf
|
||||
wget -O /etc/sysconfig/snmpd.options http://slack-master.tplab.tippingpoint.com/snmp/centos-snmpd.options
|
||||
|
||||
#Restart snmpd
|
||||
/etc/init.d/snmpd restart
|
||||
|
||||
chkconfig snmpd on
|
||||
}
|
||||
|
||||
|
||||
debian_snmp()
|
||||
#Install snmp on a debian box
|
||||
{
|
||||
#Install snmpd
|
||||
apt-get -y install snmpd
|
||||
|
||||
#Install observium bits
|
||||
wget -O /usr/bin/distro http://www.observium.org/svn/observer/trunk/scripts/distro
|
||||
chmod 755 /usr/bin/distro
|
||||
|
||||
#Pull down snmpd configuration files
|
||||
wget -O /etc/default/snmpd http://slack-master.tplab.tippingpoint.com/snmp/debian-default-snmpd.conf
|
||||
wget -O /etc/snmp/snmpd.conf http://slack-master.tplab.tippingpoint.com/snmp/snmpd.conf
|
||||
|
||||
#Restart snmpd
|
||||
/etc/init.d/snmpd restart
|
||||
|
||||
chkconfig snmpd on
|
||||
}
|
||||
|
||||
|
||||
DIST=$(lsb_release -d)
|
||||
|
||||
if [ $(echo $DIST | grep Ubuntu -c) -eq 1 ];
|
||||
then
|
||||
debian_snmp
|
||||
fi
|
||||
|
||||
if [ $(echo $DIST | grep Centos -c) -eq 1 ];
|
||||
then
|
||||
centos_snmp
|
||||
fi
|
10
CMDB/snmp/.svn/text-base/snmpd.conf.svn-base
Normal file
10
CMDB/snmp/.svn/text-base/snmpd.conf.svn-base
Normal file
@@ -0,0 +1,10 @@
|
||||
com2sec readonly default mng-actua1
|
||||
group MyROGroup v1 readonly
|
||||
group MyROGroup v2c readonly
|
||||
group MyROGroup usm readonly
|
||||
view all included .1 80
|
||||
access MyROGroup "" any noauth exact all none none
|
||||
syslocation Austin TX USA
|
||||
syscontact esplabsupport@hp.com
|
||||
#This line allows Observium to detect the host OS if the distro script is installed
|
||||
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
|
Reference in New Issue
Block a user