Install Cacti+rrdtool monitor Windows under Ubuntu

Source: Internet
Author: User
Tags rrdtool snmp snmp error snmp port ftp access

Environment and materials required for the experiment

1. Ubuntu installation Please refer to: http://2686716.blog.51cto.com/2676716/1955951

2. SNMP INFORMANT-STD-17 (Note: is a Windows enhanced SNMP plugin that allows cacti to monitor more Windows information): http://down.51cto.com/data/2332201

3. Cacti Windows monitoring template,: http://down.51cto.com/data/1061582


The experiment begins formally:

Start Ubuntu and log in with your root account to ensure your Ubuntu has access to the Internet

Install update type: Apt-get update

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/9E/53/wKioL1mQJMCzupv2AAAP7qYrku8653.png-wh_500x0-wm_ 3-wmp_4-s_357052560.png "style=" Float:none; "Title=" W (1). png "alt=" wkiol1mqjmczupv2aaap7qyrku8653.png-wh_50 "/>

Installing Snmpd,cacti,cacti-spine,rrdtool related components

Command: Apt-get install snmpd cacti cacti-spine RRDtool

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/9E/64/wKiom1mQJMHjs8u7AAAiyfSnsss632.png-wh_500x0-wm_ 3-wmp_4-s_351248736.png "style=" Float:none; "Title=" W (2). png "alt=" wkiom1mqjmhjs8u7aaaiyfsnsss632.png-wh_50 "/>

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/9E/64/wKiom1mQJMHCGWAtAAAnSWDTK00560.png-wh_500x0-wm_ 3-wmp_4-s_1662926484.png "style=" Float:none; "Title=" W (3). png "alt=" wkiom1mqjmhcgwataaanswdtk00560.png-wh_50 "/ >

Set the MySQL root password

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/9E/53/wKioL1mQJMLRvlutAAAEWL439qA702.png-wh_500x0-wm_ 3-wmp_4-s_535417250.png "style=" Float:none; "Title=" W (5). png "alt=" wkiol1mqjmlrvlutaaaewl439qa702.png-wh_50 "/>

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/9E/64/wKiom1mQJMKxsCVdAAAKLMoQC5I613.png-wh_500x0-wm_ 3-wmp_4-s_4230140783.png "style=" Float:none; "Title=" W (6). png "alt=" wkiom1mqjmkxscvdaaaklmoqc5i613.png-wh_50 "/ >

Installing Apache2

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/9E/64/wKiom1mQJMKCAd50AAAIyO1xeMc072.png-wh_500x0-wm_ 3-wmp_4-s_702802532.png "style=" Float:none; "Title=" W (7). png "alt=" wkiom1mqjmkcad50aaaiyo1xemc072.png-wh_50 "/>

Database Admin Password

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/9E/53/wKioL1mQJMPA-S34AAAI4p1w1yU062.png-wh_500x0-wm_ 3-wmp_4-s_2323702841.png "style=" Float:none; "Title=" W (8). png "alt=" wkiol1mqjmpa-s34aaai4p1w1yu062.png-wh_50 "/ >

CACTI uses the password of the database, which is an internal password

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/9E/64/wKiom1mQJMOhwXC-AAAIfFH4xR4742.png-wh_500x0-wm_ 3-wmp_4-s_2486721680.png "style=" Float:none; "Title=" W (9). png "alt=" wkiom1mqjmohwxc-aaaiffh4xr4742.png-wh_50 "/ >

Confirm Password

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/9E/53/wKioL1mQJMOCHJ3-AAADtKqERS4173.png-wh_500x0-wm_ 3-wmp_4-s_3450884887.png "style=" Float:none; "title=" W (Ten). png "alt=" wkiol1mqjmochj3-aaadtkqers4173.png-wh_50 "/ >

Wait until the installation is complete

Modifying the snmpd.conf configuration file

Type: nano/etc/snmp/snmpd.conf

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/9E/53/wKioL1mQJxGROxNxAAAdwDtC7bE603.png-wh_500x0-wm_ 3-wmp_4-s_2208454727.png "style=" Float:none; "title=" W (one). png "alt=" wkiol1mqjxgroxnxaaadwdtc7be603.png-wh_50 "/ >


Find related code

Edit the agent behavior Agent Behavio, comment out the agentaddress udp:127.0.0.1:161 line at the beginning of the file, and uncomment the #agentAddress udp:161,udp6:[::1]:161 line:

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/9E/65/wKiom1mQJxHw1InlAAAeXbGsrZE932.png-wh_500x0-wm_ 3-wmp_4-s_1968929963.png "style=" Float:none; "title=" W (n). png "alt=" wkiom1mqjxhw1inlaaaexbgsrze932.png-wh_50 "/ >

Locate Access CONTROL

Uncomment #rocommunity public localhost

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/9E/65/wKiom1mQJxLDemVSAAAPrDe-rBE577.png-wh_500x0-wm_ 3-wmp_4-s_2892799999.png "style=" Float:none; "title=" W (+). png "alt=" wkiom1mqjxldemvsaaaprde-rbe577.png-wh_50 "/ >

Restart SNMPD Service

Type: Service snmpd restart

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/9E/53/wKioL1mQJxLjg0KcAAACUlE-KHM900.png-wh_500x0-wm_ 3-wmp_4-s_4012992270.png "style=" Float:none; "title=" W (+). png "alt=" wkiol1mqjxljg0kcaaacule-khm900.png-wh_50 "/ >

Find a PC that can access your Ubuntu server, open IE Input:/http/ your ubuntuip address /cacti

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/9E/53/wKioL1mQJxOzvwG9AADbcgGtaMY689.png-wh_500x0-wm_ 3-wmp_4-s_2543937543.png "style=" Float:none; "title=" W (. png "alt=" wkiol1mqjxozvwg9aadbcggtamy689.png-wh_50 "/ >

Select New Install

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/9E/65/wKiom1mQJxOyJbFsAAAYXykvyTU384.png-wh_500x0-wm_ 3-wmp_4-s_222408264.png "style=" Float:none; "title=" W (+). png "alt=" wkiom1mqjxoyjbfsaaayxykvytu384.png-wh_50 "/ >

Relevant current status display "OK", press Finish

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/9E/65/wKiom1mQJxSQhKtCAABcwlZ_OGo126.png-wh_500x0-wm_ 3-wmp_4-s_3081962971.png "style=" Float:none; "title=" W (n). png "alt=" wkiom1mqjxsqhktcaabcwlz_ogo126.png-wh_50 "/ >

Enter the admin account and password for the Cacti Web page

Default account and password is admin

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/9E/53/wKioL1mQJxShPTi9AABIkivaTXM977.png-wh_500x0-wm_ 3-wmp_4-s_1399722895.png "style=" Float:none; "title=" W (+). png "alt=" wkiol1mqjxshpti9aabikivatxm977.png-wh_50 "/ >

First login prompt to change password

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/9E/65/wKiom1mQJxTSow-bAABIySmw4S8160.png-wh_500x0-wm_ 3-wmp_4-s_2102247648.png "style=" Float:none; "title=" W (+). png "alt=" wkiom1mqjxtsow-baabiysmw4s8160.png-wh_50 "/ >

After logging in, click on the left menu "Settings"

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/9E/53/wKioL1mQJxXxSsd9AAAxI__60T8676.png-wh_500x0-wm_ 3-wmp_4-s_3891774781.png "style=" Float:none; "title=" W (). png "alt=" wkiol1mqjxxxssd9aaaxi__60t8676.png-wh_50 "/ >

Under the "General" tab

SNMP Version selected as "Version2"

SNMP Community value is "public"

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/9E/65/wKiom1mQKyHB3xMBAABiucaV-BM637.png-wh_500x0-wm_ 3-wmp_4-s_3955259407.png "style=" Float:none; "title=" W (+). png "alt=" wkiom1mqkyhb3xmbaabiucav-bm637.png-wh_50 "/ >

Click on the "Poller" tab

Poller type-> "Spine"

Poller interval-> "Every Minute"

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/9E/65/wKiom1mQKyHzTj0KAABgv4pn3s8462.png-wh_500x0-wm_ 3-wmp_4-s_1051425111.png "style=" Float:none; "title=" W (n). png "alt=" wkiom1mqkyhztj0kaabgv4pn3s8462.png-wh_50 "/ >

Find a network of Windows here with Windows Server R2 For example, install the SNMP,SNMP installation process slightly

Turn on SNMP Service->security as set

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/9E/54/wKioL1mQKyHBbm9eAAAzCC8EUqI596.png-wh_500x0-wm_ 3-wmp_4-s_1562118418.png "title=" W (23°c). png "alt=" wkiol1mqkyhbbm9eaaazcc8euqi596.png-wh_50 "/>

Installing SNMP INFORMANT-STD-17 (: http://down.51cto.com/data/2332201)

Finally, restart the SNMP server and SNMP trap service.


Go back to Ubuntu to test if the SNMP installation was successful

Type: Snmpwalk-c public-v 2c 192.168.1.100 (IP address is just configured for Windows IP)

If a lot of information is returned, it means the SNMP configuration succeeds

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/9E/54/wKioL1mQKyLhzyIhAAAPJYNdglM471.png-wh_500x0-wm_ 3-wmp_4-s_3530838576.png "style=" Float:none; "title=" W (. png "alt=" wkiol1mqkylhzyihaaapjyndglm471.png-wh_50 "/ >

Ubuntu installs FTP in order to upload the downloaded cacti Windows Monitor template to Ubuntu

Type: Apt-get Install VSFTPD

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/9E/65/wKiom1mQKyLheRY5AAAShpUUrPM514.png-wh_500x0-wm_ 3-wmp_4-s_721347092.png "style=" Float:none; "title=" W (+). png "alt=" wkiom1mqkylhery5aaashpuurpm514.png-wh_50 "/ >

Wait until the installation is complete

Type: nano/etc/vsftpd.conf

Modify the following line to make sure it is not commented out, save the exit (CRTL+X)

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/9E/54/wKioL1mQK5mSq9SPAAAe4Fh5jyk532.png-wh_500x0-wm_ 3-wmp_4-s_10087917.png "Title=" W (-) PNG "alt=" wkiol1mqk5msq9spaaae4fh5jyk532.png-wh_50 "/>

Setting Up FTP Access users

Type: nano/etc/ftpusers

Delete root user, save exit (Note: The user here is not able to access the FTP user)

Type: Reboot reboot.

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/9E/54/wKioL1mQK0Tz5PhIAAAfTjAznAA190.png-wh_500x0-wm_ 3-wmp_4-s_1288217529.png "style=" Float:none; "title=" W () PNG "alt=" wkiol1mqk0tz5phiaaaftjaznaa190.png-wh_50 "/ >

Go back to Windows and access your FTP server

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/9E/65/wKiom1mQK0SxqgROAABo3_0do54155.png-wh_500x0-wm_ 3-wmp_4-s_1870544386.png "style=" Float:none; "title=" W (). png "alt=" wkiom1mqk0sxqgroaabo3_0do54155.png-wh_50 "/ >

Create a new Windows folder and copy all the files in the downloaded cacti Windows monitoring template "resource\snmp_queries" directory

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/9E/54/wKioL1mQK0XgJvtdAAAZTRDqXlQ015.png-wh_500x0-wm_ 3-wmp_4-s_1726477661.png "style=" Float:none; "title=" W () PNG "alt=" wkiol1mqk0xgjvtdaaaztrdqxlq015.png-wh_50 "/ >

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/9E/65/wKiom1mQK0XgPSjgAABLWTiBPoc208.png-wh_500x0-wm_ 3-wmp_4-s_3379436414.png "style=" Float:none; "title=" W (+). png "alt=" wkiom1mqk0xgpsjgaablwtibpoc208.png-wh_50 "/ >

Go back to Ubuntu and check.

Type: cd windows

Copy all files under the Windows directory to the corresponding folder in the cacti directory

Type: CP */usr/share/cacti/resource/snmp_queries

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/9E/54/wKioL1mQLDOjRCIGAAAMIE98SFQ486.png-wh_500x0-wm_ 3-wmp_4-s_3340824463.png "style=" Float:none; "title=" W (+). png "alt=" wkiol1mqldojrcigaaamie98sfq486.png-wh_50 "/ >

and give read and write permissions

Type: cd/usr/share/cacti/resource/snmp_queries

Type: chmod 666 *-R

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/9E/65/wKiom1mQLDORQ2JCAAASSj984Gc965.png-wh_500x0-wm_ 3-wmp_4-s_977906322.png "style=" Float:none; "title=" W (31-2). png "alt=" wkiom1mqldorq2jcaaassj984gc965.png-wh_50 "/ >

Back to cacti Web Administration page, left "Import Templates"

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/9E/65/wKiom1mQLDTyazeoAAAyDgk2PYI409.png-wh_500x0-wm_ 3-wmp_4-s_513228779.png "style=" Float:none; "title=" W (+). png "alt=" wkiom1mqldtyazeoaaaydgk2pyi409.png-wh_50 "/ >

Select download all files under the "template" Directory of the Cacti Windows Monitoring template one import

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/9E/54/wKioL1mQLDSzesyvAAA_WkGYRNc639.png-wh_500x0-wm_ 3-wmp_4-s_2643181106.png "style=" Float:none; "title=" W (. png "alt=" wkiol1mqldszesyvaaa_wkgyrnc639.png-wh_50 "/ >

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/9E/54/wKioL1mQLDSAVW-vAAAnaXfT0Ko354.png-wh_500x0-wm_ 3-wmp_4-s_1452420195.png "style=" Float:none; "title=" w (. png) "alt=" wkiol1mqldsavw-vaaanaxft0ko354.png-wh_50 "/ >

Left "Devices"

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/9E/65/wKiom1mQLDWgH6aWAAAn1r7Xchs101.png-wh_500x0-wm_ 3-wmp_4-s_2469897014.png "style=" Float:none; "title=" W (+). png "alt=" wkiom1mqldwgh6awaaan1r7xchs101.png-wh_50 "/ >

The right "add" adds information for windows that needs to be monitored.

Description "self-defined"

Hostname-> just got that Windows IP address.

Host template->windows Host-snmp informantion

SNMP Version->version2

SNMP Community->public

SNMP port->161

Note: The information configuration error here may lead to the prompt "SNMP error"

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/9E/65/wKiom1mQLDXxQQudAADW0Cq0jIs712.jpg-wh_500x0-wm_ 3-wmp_4-s_1196176541.jpg "style=" Float:none; "title=" W (35-2). jpg "alt=" wkiom1mqldxxqqudaadw0cq0jis712.jpg-wh_50 "/ >

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/9E/54/wKioL1mQLDXDk8cEAABiC-DmJC8132.png-wh_500x0-wm_ 3-wmp_4-s_346915004.png "style=" Float:none; "title=" W (. png "alt=" wkiol1mqldxdk8ceaabic-dmjc8132.png-wh_50 "/ >

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/9E/65/wKiom1mQLDaBHNmsAAAa0X4mkE0893.png-wh_500x0-wm_ 3-wmp_4-s_4166140131.png "style=" Float:none; "title=" W (PNS). png "alt=" wkiom1mqldabhnmsaaaa0x4mke0893.png-wh_50 "/ >

Save it, configure it successfully

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/9E/54/wKioL1mQLDbi156YAACVWS76MhE427.png-wh_500x0-wm_ 3-wmp_4-s_3628004440.png "style=" Float:none; "title=" W (37-1). png "alt=" wkiol1mqldbi156yaacvws76mhe427.png-wh_50 "/ >

Delete the following 5 unwanted items

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/9E/54/wKioL1mQLDeTpL-4AAGBOENX5mk976.jpg-wh_500x0-wm_ 3-wmp_4-s_2972849598.jpg "style=" Float:none; "title=" W (37-2). jpg "alt=" wkiol1mqldetpl-4aagboenx5mk976.jpg-wh_50 "/ >

Left "New Graphs"

Host Select the windows you added

Depending on what you need to monitor, please click on the right green circle to refresh

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/9E/65/wKiom1mQLDfAUG22AACBX18885U337.png-wh_500x0-wm_ 3-wmp_4-s_3528263849.png "style=" Float:none; "Title=" W (in). png "alt=" wkiom1mqldfaug22aacbx18885u337.png-wh_50 "/ >

Click "Create"

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/9E/54/wKioL1mQLDiCb6lzAAAPt8p5ky0935.png-wh_500x0-wm_ 3-wmp_4-s_2409401079.png "style=" Float:none; "title=" W (+). png "alt=" wkiol1mqldicb6lzaaapt8p5ky0935.png-wh_50 "/ >

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/9E/65/wKiom1mQLDigHwAdAAAuLo1Cwms165.png-wh_500x0-wm_ 3-wmp_4-s_183093744.png "style=" Float:none; "title=" W (All). png "alt=" wkiom1mqldighwadaaaulo1cwms165.png-wh_50 "/ >

"Graph Trees", "Add" on the Left

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/9E/54/wKioL1mQLDjAf3XMAABWuPDjn7U316.png-wh_500x0-wm_ 3-wmp_4-s_203122287.png "style=" Float:none; "title=" W (41-2). png "alt=" wkiol1mqldjaf3xmaabwupdjn7u316.png-wh_50 "/ >


650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/9E/65/wKiom1mQLGSzwewmAABFdm58BA0933.png-wh_500x0-wm_ 3-wmp_4-s_1373427318.png "style=" Float:none; "title=" W (. png "alt=" wkiom1mqlgszwewmaabfdm58ba933.0ng/wh_50 "/ >

Parent Item-Root

Tree Item Type, Host

Host-> Choose your Windows

Click "Create"

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/9E/65/wKiom1mQLGWQeO2NAAERXPQirlQ375.jpg-wh_500x0-wm_ 3-wmp_4-s_2503183238.jpg "style=" Float:none; "title=" W (+). jpg "alt=" wkiom1mqlgwqeo2naaerxpqirlq375.jpg-wh_50 "/ >

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/9E/54/wKioL1mQLGXgMUONAABJ67O0nVA889.png-wh_500x0-wm_ 3-wmp_4-s_2637750527.png "style=" Float:none; "title=" W (43-1). png "alt=" wkiol1mqlgxgmuonaabj67o0nva889.png-wh_50 "/ >

To ensure the normal generation of graphics and data, clear the cache

Left "System Utilities", "Rebuild poller Cache"

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/9E/65/wKiom1mQLGbAmvUBAABO6z4E7OI421.png-wh_500x0-wm_ 3-wmp_4-s_4091095487.png "style=" Float:none; "title=" W () PNG "alt=" wkiom1mqlgbamvubaabo6z4e7oi421.png-wh_50 "/ >

Select your windows on the left side of "graphs" at the top, and you're done quietly waiting for the image to appear.

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/9E/66/wKiom1mQPGeAvJTaAABRqNxTesM195.png-wh_500x0-wm_ 3-wmp_4-s_1704227482.png "Title=" W ($). png "alt=" wkiom1mqpgeavjtaaabrqnxtesm195.png-wh_50 "/>

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/9E/65/wKiom1mQLGeAXi7jAABJ9NdIX-c829.png-wh_500x0-wm_ 3-wmp_4-s_4155773449.png "style=" Float:none; "title=" W (+). png "alt=" wkiom1mqlgeaxi7jaabj9ndix-c829.png-wh_50 "/ >


Cacti is still very powerful, not used MRTG do not know how to compare, you can also use cacti monitoring: Firewall, Switch, router and other equipment, have the opportunity to discuss together.

I am also because of the need to just contact Linux, write bad hope forgive me, if there is a clerical error, please point out, tired ah ...



This article is from the "Think Micro Technology" blog, please make sure to keep this source http://2686716.blog.51cto.com/2676716/1955948

Install Cacti+rrdtool monitor Windows under Ubuntu

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.