Cacti is a set of graphical analysis tools for network traffic monitoring based on PHP,MYSQL,SNMP and RRDtool development.Recently in the company to build cacti system, for monitoring the company's project dozens of machine network card traffic, to reach a lot of articles on the net, and finally all plume undercover and return, the article on the internet is larg
Snmp installation, snmp
Switch to the system administrator account1. Install snmpCheck that the snmp agent is installed.Rpm-q net-snmpIf not, install snmpYum install net-snmpSet automatic snmp running upon startup/Sbin/chkconfig snmpd on
2. Configure snmpModify/etc/snmp/snm
from (poller_output,poller_ Item) where (POLLER_OUTPUT.LOCAL_DATA_ID=POLLER_ITEM.LOCAL_DATA_ID and Poller_output.rrd_name=poller_item.rrd_name ) LIMIT 10000 "Solution:Mysqlcheck--auto-repair--databases cacti-pOr (MySQL does not set the password)Mysqlcheck--auto-repair--databases CactiBug message:Cmdphp:poller[0] host[47] ds[517] Warning:result from CMD not valid. Partial Result:uSolution:chmod a+x/var/www/html/ca
Mysql itself is not powerful in performance monitoring, which makes many MySQL DBAs sleep at night,Fortunately, the MySQL database status is monitored through cacti (note that monitoring is not monitoring ).With the powerful drawing function of cacti + rrdtool and dedicated MySQL templates, You can flexibly and quickly create and monitor multiple MySQL instances.
(I) For RPM installation, the following RPM
NO1:Installation Environment:Execute a command to install the required packages1.#yum Install httpd php php-mysql mysql mysql-server perl-dbd-mysql php-pdo net-snmp net-snmp-libs net-snmp-utils net-snmp- Devel Ruby Php-snmp Ruby-devel Rrdtool-ruby rrdtool-perl-yModify the Ap
Net-snmp Add User-Defined MIB and net-snmp User-Defined mibI know three methods to add a user-defined MIB. static Load. c and. add the H file to the corresponding location and re-compile the snmp library. The advantage is that you do not need to modify the configuration file. The disadvantage is that you have to re-compile each addition. 2. dynamically load the g
30.10SNMP Message Format Unlike most TCP/IP protocols, SNMP messages does not have a fixed fields. Instead, they use the standard ASN.1 encoding. Thus, a message can be difficult for humans to decode and understand. After examining the SNMP message definition in ASN.1 notation, we'll review the ASN.L encoding scheme briefly, and see a n example of an encoded SNMP
0x00 SNMP Protocol Introduction
The SNMP protocol is the Simple Network Management Protocol (Snmp,simple Networks Management Protocol). There are currently 3 versions: V1,v2c,v3. V3 is the latest version and has been greatly improved in its safety design. However, there are many V1 and V2C versions that are widely used, and the content discussed in this art
I. cacti script and template
Cacti script and template Forum: http://forums.cacti.net/forum-12.html
A complete list of cacti scripts and templates: http://forums.cacti.net/about15067.html
1. Advance Ping script and template
: Http://forums.cacti.net/about10049.html
Note: To use this template, you must add the -- enable-sockets option to support sockets during
Performance monitoring has always been an issue that every website must seriously consider. For a large system, if you do not know the running status of each module, it is an accident, I don't even know how to cancel it. I think many software developers have noticed this. Therefore, various monitoring data, such as the number of web connections, request concurrency, and database connections, are added to the corresponding web and database products, for your use. In addition, when the system is d
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
Software required to install the environment:1, Cacti: http://www.cacti.net/downloads/(This is cacti's web display program, which is done in PHP, you will put him in your web directory after completion.) )2, Cactid: http://www.cacti.net/downloads/cactid/packages/Windows/(This is the program that cacti generated graphics from the RRDtool.) )Spine This is the new version of Cactid. This is used as the interfa
Cacti is a set of graphic analysis tools for network traffic monitoring developed based on PHP, MySQL, SNMP, and RRDTool. You can use snmpget to obtain data and use RRDtool to draw images. You do not need to understand the complex parameters of RRDtool. It provides powerful data and user management functions, allowing you to specify that each user can view the tree structure, host, and any
Copy Code
Detect NET-SNMP
We can use Snmpwalk to detect if the SNMP service is turned on properly.
Snmpwalk-v 3-u jiankongbao-a md5-a "Snmp@jiankongbao"-l authnopriv 127.0.0.1 SYSDESCR
Copy Code
Configuring the Iptables Firewall
NET-SNMP uses UDP protocol, port 161. Add the following rules to the/etc/sysconfig/
Cacti defines three types of templates:
Host Template
Data Template
Graphic Template
Host templates)It is a collection of image templates and data queries. It describes the images that need to be generated by monitoring a certain type of machines.
Data templates)Which describes the data stored by cacti to the specified type of RRD file. This template is related to the CREATE command of rrdtool.
Graph t
Cacti is a set of graphical analysis tools for network traffic monitoring based on PHP, MySQL, SNMP and RRDtool.
If you want to use CACTI to monitor the Linux server's network card traffic, you need to install Net-snmp-utils-related packages on the monitored Linux servers, and we can install them via yum online, for e
Conclusion: Using net-snmp to develop an SNMP proxy client
I have been working on the SNMP proxy for some time ago. From ignorance to project completion. Some summaries are written here and shared with those who need them.
1.Develop MIB files
The MIB file format is: start line; import; start from the root node, layer by layer, each layer can find dependencies o
:
################################################################################ 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
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.