The company uses javastuserver, which uses cacti for monitoring through the SNMPD Protocol. However, when viewing system logs, snmpd generates a large number of logs, sometimes turning over many screens, to see the system information. This is a nightmare for administrators who want to view system logs every day. By using the following method, you can disable snmpd
The company is using Ubuntu server, with cacti to do the monitoring, through the SNMPD protocol monitoring, but when looking at the system log, SNMPD generated a lot of logs, sometimes to turn a lot of screen, to see system information, this to every day to see the System log Administrator, It was a nightmare. The following methods allow you to turn off SNMPD to
Today's Ubuntu system for SNMPD configuration, after completion can not be started, after viewing the syslog log, the following error:Mar 3 15:11:45 hk-en-prod-web02 snmpd[10060]: Error on subcontainer ' ia_addr ' Insert (-1)Mar 3 15:11:45 hk-en-prod-web02 snmpd[10060]:/etc/snmp/snmpd.conf:line 146:warning:unknown token:defaultmonitors.Mar 3 15:11:45 hk-en-prod-w
Note:
The original listening port of SNMP is UDP port 161, which needs to be changed to another port, for example, to port 2014.
VI/etc/init. d/snmpd
To the options line:
Before modification:
Option = "-LS0-6d-LF/dev/null-P/var/run/snmpd. PID"
After modification:
Options = "UDP: 2014-LS0-6d-LF/dev/null-P/var/run/snmpd. PID"
Save and exit
Restart
How does one compile and install net-snmp to generate snmpd. conf? -- Linux general technology-Linux technology and application information. For details, refer to the following section.
Recently, I wanted to build a MRTG traffic monitoring system on the gateway, but it was hard to install snmp. there is always a lot of dependency between the RPM package and the
Opensuse cacti snmpd. conf configuration cacti is successfully configured in centos. however, it took some time in opensuse. java code # Please see/usr/share/doc/packages/net-snmp/EXAMPLE. conf for a # more complete example and snmpd. conf (5 ). # Writing is disabled by default for security reasons. if you 'd like # to enable it uncomment the rwcommunity line and change the community # name to something nom
First, install the corresponding RPMRPM-IVH net-snmp-5.3.2.2-17.el5.x86_64.rpmnet-snmp-utils-5.3.2.2-17.el5.x86_64.rpm lm_sensors-2.10.7-9.el5.x86_ 64.rpmSecond, after the installation is successful, the configuration snmpd.confCom2secnotconfiguser 1
# My SNMP configuration file can be used with MRTG and cacti
##### First, map the community name "public" into a "security name"
# Sec. Name source communityCom2sec notconfiguser 127.0.0.1 public # define the community name as public and map it
1 to monitor a Linux host, you need to install the NET-SNMP related package on the monitored host, and the CentOS installation can use the "yum-y install NET-SNMP" command:# yum-y Install Net-snmpSetting up Install ProcessSetting up repositoriesReading repository metadata in from local filesParsing Package Install argumentsResolving Dependencies--Populating transaction set with selected packages. Please wait.---> Package net-snmp.x86_64 0:5.1.2-18.el4
Tags: top accept ACK Back add user cannot ref tar parameterLinux SNMPThe following example uses the SUSE10 Linux environment, but it also applies to other Linux distributions.Compiling and installingFirst we need to download NET-SNMP source code, choose a version, such as 5.7.1, the address is as follows:Http://sourceforge.net/projects/net-snmp/files/net-snmp/5.7.1/Next, unzip the downloaded source code pac
the make command. After the compilation succeeds, the following two lines are output.chmod a+x net-snmp-configtouch net-snmp-config-xAfter the compilation is complete, you can go to the agent folder to see if the file is exported snmpd .[emailprotected]:~/snmp/net-snmp-5.7.3/agent$ ll snmpd-rwxrwxr-x 1 o o 3029820 9月 16 20:31 snmpd*[emailprotected]:~/snmp/net-s
bytes of cp/usr/local/snmp/share/snmp/snmpd. conf/var/net-snmp/snmpd. conf www.2cto.com: Set the net-snmp environment variable. set the environment variable to append PATH =/usr/local/snmp/bin:/usr/local/snmp/sbin under the/etc/profile file: $ PATH export PATH is added to the startup file in/etc/rc. append/usr/local/snmp/sbin/snmpd-c/usr/local/snmp/share/snmp/
Configure the snmp service in linux and snmp in linux-- How to Configure snmp on Linux-- Attach an iso CD image file firstMount-o loop/soft/rhel-server-6.4-x86_64-dvd.iso/mnt/cdrom-- Check whether the snmp package is installed first.# Rpm-qa | grep snmp-- Install the package using yum to prevent Incomplete installation due to dependency.# Yum install net-snmp -*-
:
################################################################################ disk checks## The agent can check the amount of available disk space, and make# sure it is above a set limit. # disk PATH [MIN=100000]## PATH: mount path to the disk in question.# MIN: Disks with space below this value will have the Mib's errorFlag set.# Default value = 100000.# Check the / partition and make sure it contains at least 10 megs.#disk / 10000Set
# Disk/10000
Remove the # Before and cance
CactiIt is a network monitoring tool that I often use. It combines the advantages of LAMP to better serve you! Let's take a look at its specific configuration!
1. configuration of the snmp service in windows(1) Open "Control Panel"-"add deletion program"-"add deletion group"
In "management and monitoring tools", select "Simple Network Management Protocol (snmp )"
Click "Next" to start the installation. During the installation process, the i386 file (2) is required. Open "start"-"program"-"Manage
' MyGroup ' group, define group permissions
Group MyGroup v1 MyUser
Group MyGroup v2c MyUser
View all included 1
Access MyGroup "" Any noauth exact all none
root@server:~# Service SNMPD Restart
root@server:~# Chkconfig snmpd on
Restart the SNMPD service and add it to the Startup services list.
Testing SNMP
SNMP can be tested by running the Snmpwalk comm
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.