In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces Cacti how to monitor Linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
1. Cacti monitors Windows hosts:
Snmp simple Network Management Protocol needs to be installed on Windows
(1) Open "Control Panel"-"add and remove programs"-"add and remove build", select "simple Network Management Protocol (snmp)" in "Management and Monitoring tools", and click "next" to start the installation.
I want the i386 file
(2) Open "start"-"programs"-"Management tools"-"Services", find "snmp service", right-click "Properties", select "Security", at "accept Group name", click "add", and click "Group name".
Write the community used by your Cacti at, select "accept snmp packets from these hosts", default is "localhost", click "Edit", and change "localhost" to the actual ip address of the Cacti monitoring server.
2. Cacti monitors Linux hosts
The configuration file of net-snmp needs to be modified: otherwise, the data of CPU and system load cannot be fetched.
Configuration of Linux (RedHat)
Open the default / etc/snmp/snmpd.conf file and change the configuration as follows:
(1) Cacti monitors Linux and looks for the following fields:
# sec.name source community
Com2sec notConfigUser default public
Change the "comunity" field to the password you want to set. Such as "public".
Change "default" to which machine you want to see your snmp information, such as 10.10.10.10.
(2) Cacti monitors Linux and looks for the following fields:
# group context sec.model sec.level prefix read write notif
Access notConfigGroup "" any noauth exact all none none
Change the "read" field to all.
(3) Cacti monitors Linux and looks for the following fields:
# # incl/excl subtree mask
# view all included. 1 80
Remove the "#" in front of the line.
Save off.
(4) run the / etc/init.d/snmpd start command to run snmpd.
* run netstat-ln to see if port 161 is open.
3. Cacti Monitoring Linux: install FreeBSD
If you install net-snmp using port, the default configuration file should be in / usr/local/share/snmp/snmpd.conf (there is no default file).
You can create a simple configuration file, such as:
Syslocation YourDefineName
Syscontact YourEmailAddress
Sysservices 77
Rocommunity public (please change)
Load 12 12 12
Then run snmpd,netstat to see if port 161is open.
4. Monitor the squid server:
(1)。 In the beginning, let squid support snmp. Edit squid.conf
# vi / etc/squid/squid.conf
Acl CactiServer src 127.0.0.1 / / write to the local machine because net-snmp is used as a proxy
Acl SNMP snmp_community passwd
Snmp_port 3401
Snmp_access allow SNMP CactiServer
Snmp_access deny ALL
# squid-k reconfigure
Reload the configuration
Use netstat-tunlp | grep squid
Check to see if port 3401 is listening.
To test whether squid's snmp is normal, install a snmp toolkit.
# yum install-y net-snmp-utils
# snmpwalk-v 1-c passwd localhost:3401 .1.3.6.1.4.1.3495.1
It is right if there is data. If not, check the configuration above.
(2)。 Snmp that proxies squid in snmpd.conf
# vim / etc/snmp/snmpd.conf
Add the following line to snmpd.conf
# proxy-v 1-c passwd 127.0.0.1 3401 .1.3.6.1.4.1.3495.1
Test it。 See if there's any data.
# snmpwalk-v 1-c passwd localhost:161 .1.3.6.1.4.1.3495.1
(3)。 Import squid templates written by others in Cacti
Download address: http://forums.Cacti.net/download.php?id=79
1) copy the following files to this directory / resource/snmp_queries:
Webcache_squid_core.xml
Webcache_squid_median.xml
2) Import Cacti_host_template_webcache_squid_server_snmp.xml in the configuration interface "Import Templates" of Cacti
(4) all the information of squid can be plotted.
Thank you for reading this article carefully. I hope the article "how Cacti monitors Linux" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.