Configure cacti mail alarm, postfix and sendmail conflict environment: centos6.2, cacti0.8.8.a, net-snmp5.51, get cacti mail alarm today, just started sendmail failed, always prompt: sendmaildeadbutsubsyslockedsm-client (pid... configure cacti mail alarm, postfix and sendmail conflict environment: centos6.2, cacti 0.8.
The difference between Cacti Nagios Zabbix First of all, Cacti is a rrdtool to draw the network monitoring system, usually a talk about network management, we first think of is often mrtg, but the MRTG picture is relatively simple and ugly, rrdtool although drawing skills first-class, drawing out of the picture is beautiful, but after all, is a drawing work Data collection functionality, unlike MRTG itself.
Cacti is a network traffic monitoring graphical analysis tool, need to use the PHP language to achieve, installation needs to configure the database, so many people in the installation of the time encountered a lot of problems, the following small series to introduce the next in the Gentoo system to install the cacti.
Cacti is the use of SQL database to save con
Environment:
Ubuntu Server 12.04 x64
cacti-0.8.8a
Today, the installation of cacti monitoring, installation completed, import nginx monitoring template, found that monitoring, has not been out of the picture, is very depressed. Results The PL script of monitoring nginx state is called directly in the system, and the error is found.
cactiuser@00098:/var/tmp/cacti
Production environment:Database: MySQL 5.5.49-cll-lveProblem: In many cacti monitoring objects, because of the addition of the monitoring object nginx, resulting in cacti in the monitoring of all objects only 1 objects out of the graph data.Analysis:1.systemutilities–>rebuild poller Cache #需要重建cache吗?2. System time is not accurate, reset time #需要更新服务器时间吗?3. Image not generated, run#/usr/bin/php/var/www/html
Cacti is a system monitoring graphical analysis tool developed based on php, mysql, snmp, and rrdtool. It obtains data through snmp, you can use rrdtool to draw images without having to understand the complex command parameters of rrdtool. It provides a very powerful data and user management interface, you can specify that each user can view the tree structure and any image of the host, and perform user authentication in combination with LDAP. You can
Background: The figure ran for one months, the other graphs can be displayed normally, but there are a few pictures suddenly not out of the picture;Through RRDtool RRD view, all are Nan;The solution that has been tried:
Failed to restart SNMP---
CACTI Rebuild---Failed
Some people on the internet say that the deletion of the reconstruction is really so, but these pictures are business figures, cannot be deleted.
Check db table, all
Description: CactiEZ Chinese version V10.1 is based on CentOS6.0 system, integration of cacti and other related software, a recompile of an operating system!Advantages: Eliminate the complex cumbersome cacti configuration process, after installation can be used, all the culture, the interface more friendlyCons: CactiEZ is a complete operating system that requires a dedicated computer to install and useMonit
Requirements:
1. You do not need to log on to the image of cacti (only available to accessible users), but you need to log on to the image during other operations.
2. Send the Report to the specified email every morning.
Requirement 1:
File:/cacti/graph_image.php
//include("./include/auth.php");include("./include/global.php");
Tea: First remove the verification module, find that the number of Han is missin
#/usr/bin/envpython#-*-coding:utf-8-*-importtime,datetime,socket, urllib,urllib2,cookielib# because I was going to pick up Monday of the time today so write 10 here, time should be November 2014 24 last week Monday,threedayago= ( Datetime.datetime.now () -datetime.timedelta (days=10)) #时间格式化输出, Since the time inside the cacti is calculated with timestamps, I conveniently convert to timestamp otherstyletime=threedayago.strftime ("%y-%m-%d%h:%m:%s") p
1. Smokeping Smokeping is RRDtool's author Tobi Oetiker's work, written in Perl, mainly monitoring network performance, including regular Ping, using echoping to monitor the performance of the WWW server, monitoring DNS query performance, monitoring SSH performance, and so on. The bottom is also rrdtool do support, characterized by the picture is very beautiful, network packet loss and delay with color and shadow to express. Less used in the enterprise. 2 Ca
a brief introduction to cactiCacti is a set of graphical analysis tools for network traffic monitoring based on PHP,MYSQL,SNMP and RRDtool development. Use PHP for front-end code drivers. The data information of the monitored host is obtained through SNMP. RRDtool is related to the generation of data stores and graphs. MySQL works with PHP programs to store variable data and make calls to variable data. It provides very powerful data and user management functions, can specify each user can view
Tags: Configure alt lib assign share picture title 51cto ASE isCacti "Fatal:cannot Connect to MySQL server on ' localhost ' error[[email protected] cacti]# PHP poller.phpFatal:cannot Connect to MySQL server on ' localhost '. Please make sure the specified a valid MySQL database name in ' include/config.php 'When all the configuration in MySQL and cacti config.php are correct, but still the error occurs, tha
After downloading the CactiEZ on the Internet, I feel very good after one-click installation. However, MySQL monitoring is added, but MySQL is not a null value.The net turned down found that some parameters have not changed to this. Make a record nowFirst enter the CactiEZ server to modify the following filesvim/var/www/html/scripts/ss_get_mysql_stats.php1. Look for the following parameters, change the user name and password to the one you want as$mysql _user = '
the tarball:CD/USR/SRCTAR-XZVF rrdtool-1.2.12.tar.gzChange into the newly created directory:CD rrdtool-1.2.12Compile and install RRDTool:./configure--disable-tclmakemake InstallTCL is disabled, as compilation of some of the TCL components for RRDTool 1.2.12 would otherwise fail on RedHat 9.Run ./configure--help For more information on configuration options.The default installation is/usr/local/rrdtool-version, so make some symbolic links to the executables:Ln-sf/usr/local/rrdtool-1.2.12/bin/rrd
The code is as follows:Url= "/VAR/WWW/HTML/RRA/150/9517.RRD/VAR/WWW/HTML/RRA/256/11345.RRD/VAR/WWW/HTML/RRA/150/9518.RRD" fff= ' echo $url |awk ' {printnf} ' for ((i=1;iThe results of the operation are as follows:[Email protected]]# sh get_in2.35g 2016-04-103.69g 2016-04-096.84g 2016-04-08[[email protected]]#Get cacti rrd file daily peak shell
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/iptables
-A rh-firewall-i input-p udp-s 60.195.249.83--dport 161-j ACCEPT
-A rh-firewall-i input-p udp-s 60.195.252.107--dport 161-j ACCEPT
-A rh-firewall-i input-p udp-s 60.195
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 Cacti is based on
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.