Deploying Cacti monitoring Windows

Source: Internet
Author: User
Tags php mysql rrdtool snmp import database

First, the Installation lamp architecture

This article mainly introduces cacti how to monitor the Windows host, cacti the building process is also very simple, similarly, monitoring the Linux host is not difficult. Here are the main records of two issues encountered during deployment monitoring Windows
1. LAMP

#yum install-y httpd php mysql-server

2. Plugins       

#yum install-y mysql-server php-mysql net-snmp* zlib libpng freetype libjpeg gd libxml2

3, installation RRDtool

#yum-y Install RRDtool

4, installation cacti           

# Tar XF cacti-0.8.8b.tar.gz-c/var/www/html/

5. Database Authorization

Mysql>grant all on cacti.* to ' cacti ' @ ' localhost ' identified by ' cacti '; mysql>flush privileges;mysql> Create Dat Abase cacti;

6. Import the database

MySQL Cacti </var/www/html/cacti/cacti.sql

          Toss for a half day, because there is no import database
          If you do not import the database, you will get an error:
          PHP Fatal error:  allowed Memory size of 548405248 bytes exhausted (tried to allocate 523800 bytes) in/var/www/html/cacti/lib/adodb/adodb.inc.php o N Line 833
7, modifying the configuration file

# vim/var/www/html/cacti/include/config.php$database_type = "MySQL"; $database _default = "cacti"; $database _hostname = "localhost"; $database _username = "cacti"; $database _password = "cacti"; $database _port = "3306";

8. Visit cacti
http://192.168.1.150/cacti/
The default user name and password is admin:admin
Second, monitoring Windows host

Firewall account opening UDP 161 (SNMP) port

1. Cacti Client Configuration:
Configuring the SNMP Service for the window system and installing SNMP informant
(1) Add feature SNMP service on win2008 server, not SNMP server
(2) run-to-services.msc SNMP Service
In the pop-up window, select the "Security" tab and set the community to: public
Optionally, set up to accept SNMP packets from any host or specify only individual machines.
Then determine and restart the SNMP Service.
(3) Unzip and install Informant-std-16.zip
Download Link: http://www.wtcs.org/informant/download.htm, currently STD 1.6
2, Cacti server configuration:
(1) Download template
Cacti_snmp_informant_standard_metrics_v13.zip
(The Cacti monitoring template supports winxp/vista/win7/win2000/2003/2008/2012 x32/x64)
: http://forums.cacti.net/download/file.php?id=26562
(2) Unzip and import the template
6 template files in the Templates folder are imported through the CACIT operator interface.
Then put the XML file in the folder resource\snmp_queries to the corresponding directory in the cacti server, my server is/var/www/html/cacti/resource/snmp_queries
3. Create monitoring host and monitor resource map
failure: After the installation, the creation is complete, the cacti does not plot
FIX: First confirm/var/www/html/cacti/rrd directory is writable, set user rights according to above;
Http://blog.sina.com.cn/s/blog_61c07ac50101cfja.html


This article is from the "Nmshuishui blog" blog, make sure to keep this source http://nmshuishui.blog.51cto.com/1850554/1540127

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.