Cacti 在英文中的意思是仙人掌的意思,Cacti是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具。它通过snmpget来获取数据,使用RRDtool绘画图形,而且你完全可以不需要了解RRDtool复杂的参数。
1. cacti是用php语言实现的一个软件,它的主要功能是用snmp服务获取数据,然后用rrdtool储存和更新数据,当用户需要查看数据的时候用rrdtool生成图表呈现给用户。因此,snmp和rrdtool是cacti的关键。Snmp关系着数据的收集,rrdtool关系着数据存储和图表的生成。
CentOS搭建Cacti监控平台以及故障解决
这次讲2 个小小知识点,一个关于监控交换机端口流量,一个关于store value。
-A INPUT -m state --state NEW -m tcp -p tcp--dport 80 -j ACCEPT(允许80端口通过防火墙)
众所周知,用Linux系统自带的sendmail发送邮件是有限制的,可能对有些邮箱无法正常发送,导致报警邮件不能够及时发送到,因此就可能会产生不必要的麻烦!对此,我们可以用其他方法来发送邮件,就是在cacti上登陆自己的邮箱,设定自己的邮箱来发送报警邮件!简而言之就是把系统当做一个邮件客户端,登陆自己的邮箱来发送邮件!
Zabbix是一个高度集成的企业级开源网络监控解决方案,与Cacti、nagios类似,提供分布式监控以及集中的web管理界面。zabbix具备常见商业监控软件所具备的功能,例如主机性能监控,网络设备性能监控,数据库性能监控,ftp等通用协议的监控,能够灵活利用可定制警告机制,允许用户对事件发送基于E-mail的警告,保证相关人员可以快速解决。还能够利用存储数据提供杰出的报表及实时的图形化数据处理,实现对监控主机7x24小时集中监控。
linux系统、常用命令、应用软件(特别是nginx,tomcat,redis,mysql)、shell
一,安装cacti所需要的环境(mysql、mysql-server、httpd、php、php-mysql)-此部署环境并没有默认安装mysql,php,httpd等
cacti是一款使用php语言开发的性能与流量监测工具,监测的对象可以是Linux或Windows服务器,也可以是路由器、交换机等网络设备,主要基于SNMP(简单网络管理协议)来搜集CPU占用、内存占用、运行进程数、磁盘空间、网卡流量等各数据。 ——以下是cacti的相关知识和应用示例。 1、cacti:流量和性能检测 nagios:服务与性能检测 RRDtool:轮询数据工具,记录数据并绘制图形 cacti基于lamp平台,SNMP协议,RRDtool数据轮询工具以web方式显示监控信息
今天我们来讲一下监控软件Cacti。Cacti的工作结构是:C/S模式采集监控数据,B/S模式管理检测平台,其实呢Cacti利用的是SNMP(简单网络管理协议)。
Cacti是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具。Cacti通过 snmpget来获取数据,使用 RRDtool绘画图形,而且你完全可以不需要了解RRDtool复杂的参数。它提供了非常强大的数据和用户管理功能,可以指定每一个用户能查看树状结构、host以及任何一张图,还可以与LDAP结合进行用户验证,同时也能自己增加模板,功能非常强大完善。界面友好。软件 Cacti 的发展是基于让 RRDTool 使用者更方便使用该软件,除了基本的 Snmp 流量跟系统资讯监控外,Cacti 也可外挂 Scripts 及加上 Templates 来作出各式各样的监控图。
◆ 概述 为什么今天的网络这么慢?您是否在监控 Linux 网络带宽使用情况时遇到问题?如果你想可视化网络中正在发生的事情,以便了解和解决导致网络缓慢的任何原因,今天的工具可以帮助到你。下面列出的工具都是开源的,包括用于监视单个 Linux 机器上的带宽的小工具和完整的监视解决方案。 ◆ 1. vnStat – 网络流量监视器 VnStat是一个功能齐全的基于命令行的程序,用于在 Linux 和 BSD 系统上实时监控 Linux 网络流量和带宽利用率。 与其他工具相比,它的一个优势是它记录网络流量和带宽
Cacti安装插件之thold 基本环境 os:rhel5.5 i386 rpm:lamp cacti:0.8.8a rrdtool:1.4.5 1,安装settings插件 #wget http://docs.cacti.net/_media/plugin:settings-v0.7-1.tgz #mv plugin\:settings-v0.7-1.tgz settings-v0.7-1.tgz #tar zxvf settings-v0.7-1.tgz -C /var/www/html/cacti/plugins 2,安装thold插件 #wget http://docs.cacti.net/_media/plugin:thold-v0.4.9-3.tgz #mv plugin\:thold-v0.4.9-3.tgz thold-v0.4.9-3.tgz #tar zxvf thold-v0.4.9-3.tgz -C /var/www/html/cacti/plugins 3,更改config.php主配置文件 #cat /var/www/html/cacti/include/config.phps $database_type = "mysql"; $database_default = "cacti"; $database_hostname = "localhost"; $database_username = "cacti"; $database_password = "cacti"; $database_port = "3306"; $database_ssl = false; $plugins[] = 'ntop'; $plugins[] = 'npc'; $plugins[] = 'settings'; $plugins[] = 'thold'; 4,设置cacti添加进thold 控制面板-----插件管理---settings和thold安装和启用
Cacti是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具。 Cacti是通过 snmpget来获取数据,使用 RRDtool绘画图形,而且你完全可以不需要了解RRDtool复杂的参数。它提供了非常强大的数据和用户管理功能,可以指定每一个用户能查看树状结构、host以及任何一张图,还可以与LDAP结合进行用户验证,同时也能自己增加模板,功能非常强大完善。界面友好。软件 Cacti 的发展是基于让 RRDTool 使用者更方便使用该软件,除了基本的 Snmp 流量跟系统资讯
收获最大的部分,我觉得是在应用上如何更好的对缓存进行使用和处理,来解决 Cache Stamples 的问题。通常只进行一次缓存判断的逻辑,在应对高并发的访问时,经常会引起问题,因此增加锁机制和Mutex就非常必要。
Cacti是一款功能完整的网络图形化解决方案,Cacti旨在利用RRDtool的数据存储以及图形化功能来给广大安全研究人员提供以下功能性帮助:
Cacti插件安装之syslog 基本环境 os:rhel5.5 i386 rpm:lamp cacti:0.8.8a rrdtool:1.4.5 一,在cacti官网下载syslog日志 #wget http://docs.cacti.net/_media/plugin:syslog-v1.22-2.tgz #tar zxvf syslog-v1.22-2.tgz -C /var/www/html/cacti/plugins 二,http://ip/cacti安装插件 1, 控制面板-----插件管理---syslog安装
1.环境:Centos7+Python3.6 rrdtool(round robin database)工具为环状数据库的存储格式,round robin是一种处理定量数据以及当前元素指针的技术。rrdtool主要用来跟踪对象的变化情况,生成这些变化的走势图,比如业务的访问流量、系统性能、磁盘利用率等趋势图,很多流行监控平台都使用到rrdtool,比较有名的为Cacti、Ganglia、Monitorix等。更多rrdtool介绍见官网rrdtool。
1、RHEL 6.3 X64 最小化安装 2、已经安装cacti 0.8.8 3、已经配置epel源 4、已经在cisco路由器上配置好flow-export了。
一,安装ntop 在官网获得最新源码包 wget http://cdnetworks-kr-2.dl.sourceforge.net/project/ntop/ntop/ntop-4.0.1/ntop-4.0.1.tar.gz 安装环境如下 Quick Instructions ================== 1. Get and install mandatory packages/tools These instructions assume your system is already provided with the normal source compile tools. Most are gnu packages, available through http://www.gnu.org or your favorite prebuilt package source. Using their RedHat package names, these are: - glibc, glibc-devel, gcc, cpp - Some version of awk - libtool (1.4+) Note that there are reports of success with libtool 1.3.x under FreeBSD so the script allows this. - m4 - autoconf (2.53+) - automake (1.6+) - gdbm, gdbm-devel - libpcap (http://www.tcpdump.org) - librrdtool 1b. Optional packages - openssl, openssl-devel (http://www.openssl.org) - zlib, zlib-devel 2. Build ntop - cd ntop - ./autogen.sh - make - make install 如果./autoen.sh后make时报错过不去 错误一 checking for GeoIP_record_by_ipnum in -lGeoIP... no Please install GeoIP (http://www.maxmind.com/) 解决方法: wget http://www.maxmind.com/download/geoip/api/c/GeoIP.tar.gz tar xzvf it ./configure it make it make install it 错误二 If you run into problems, you can ALWAYS recreate the generated files via this procedure: rm -f acinclude.m4 aclocal.m4 Makefile.in config.h.in configure Makefile find current versions of libtool, config.guess and config.sub and cp them into your working directory. cat acinclude.m4.ntop libtool.m4.in > acinclude.m4 aclocal autoheader autoconf automake --gnu --copy --add-missing and then: ./configure ... make make install as usual. 二,安装后调试 1,设置ntop # chown -R nobody /usr/local/var/ntop 安全 # ntop -A设置密码 # ntop -i eth0 -d -l echo " ntop -i eth0 -d -l " >>/etc/rc.local >& /dev/null开机启动 http://ip:3000测试 2,配置文件中加入插件 在cacti官网上下载ntop插件 wget http://docs.cact
Cacti 在英文中的意思是仙人掌的意思,Cacti是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具。它通过 snmpget来获取数据,使用 RRDtool绘画图形,而且你完全可以不需要了解RRDtool复杂的参数。它提供了非常强大的数据和用户管理功能,可以指定每一个用户能查看树状结 构、host以及任何一张图,还可以与LDAP结合进行用户验证,同时也能自己增加模板,功能非常强大完善。
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/localhost/htdocs/cacti/lib/functions.php on line 486 02/11/2014 06:25:10 AM - SYSTEM STATS: Time:0.1238 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:1 RRDsProcessed:1 OK u:0.00 s:0.00 r:0.02 解决如下
具体下载目录在 /2013年资料/11月/15日/RHEL6.4环境Cacti中spine安装
spine插件介绍 考虑到生产环境机器的不断增加,系统自带的cmd.php轮询可能没法在设定的时间完成所有机器的采集,可以将采集模式修改为更快的spine轮询,修改方法如下
一,安装nagios useradd nagios必须的,要不make install时过不去 wget http://cdnetworks-kr-1.dl.sourceforge.net/project/nagios/nagios-3.x/nagios-3.4.1/nagios-3.4.1.tar.gz #tar zxvf nagios-3.4.1.tar.gz -C /opt #cd /opt/nagios #./configure --prefix=/usr/local/nagios #make all # make install install-base install-cgis install-html install-exfoliation install-config install-init install- commandmode fullinstall nagios.conf文件已生成,不用修改 # egrep 'AuthUserFile' /etc/httpd/conf.d/nagios.conf AuthUserFile /usr/local/nagios/etc/htpasswd.users AuthUserFile /usr/local/nagios/etc/htpasswd.users 创建HTTP认证用户登录Nagios,用户名nagiosadmin,密码123456 #htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin 重启apache #service httpd restart 其他配置基本不用改,启动nagios # service nagios start # chkconfig nagios on http://ip/nagios访问即可
nagios: http://sangh.blog.51cto.com/6892345/1263981
具体下载目录在 /2013年资料/11月/15日/RHEL6.4中使用cact_spine监控主机实现发送邮件报警
Cacti 是一套基于PHP、MySQL、SNMP和RRDTool开发的网络流量监测图形分析工具。
Cacti是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具。被广泛的用于对服务器的运维监控中,Cacti提供了一种插件式的管理,只要按要求写好特定的模板,那么你就可以对任何服务进行流量监控。本文就是要为大家介绍两个模板,分别是MongoDB和Redis的Cacti模板,使用它,你可以对你的MongoDB和Redis服务进行流量监控。
黑客组织利用 Cacti“Network Weathermap”插件中一个存在 5 年之久的漏洞,在 Linux 服务器上安装了 Monero 矿工,赚了近 75,000 美元。来自美国安全公司趋势科技的专家表示,他们有证据证明这些攻击与过去发生在 Jenkins 服务器上的攻击有关:黑客组织利用 CVE-2017-1000353 漏洞在 Jenkins 设备上安装 Monero 挖矿程序,获得了约 300 万美元。
操作系统:Centos,※,Ubuntu,Redhat※,,suse,Freebsd
大家好,又见面了,我是你们的朋友全栈君。 Nagios:最大的亮点是轻量灵活,且报警机制很强,如果你只是需要监控服务器/服务是否在运行,Nagios 以前只是从目标主机收集信息,,并且有很强大的发送报警信息的功能。适合监视大量服务器上面的大批服务是否正常, 重点并不在图形化的监控, 其集成的很多功能例如报警,都是 cacti 没有或者很弱的. cacti 主要用途还是用来收集历史数据和画图, 所以界面比 nagios 漂亮很多 cacti:比较着重于直观数据的监控,易于生成图形,用来监控网络流量、cpu使用率、硬盘使用率等可以说很在合适不过。 ganglia:更加关注收集和跟踪指标 zabbix:相对来说配置简单,基本上在web上配置就行了,商业开源软件。zabbix只是一个脚本监控触发器 具体需求诸如网站挂马 sql注入是需要个人定制的 zabbix自带了一些系统级别的监控脚本。学习成本和定制模板比较大 zenoss:将状态监控,性能监控,资源管理,更好的报告机制进行有机的整合。Zenoss主要的特点是可以无agent来进行监控。Zenoss主要的监控协议为SNMP,支持通过ssh、telnet的方式采集数据。
建议读者范围 1、有开发经验者。 2、科研人员(由其Numrical)。 3、动手能力强的。 4、只是好奇,对于Linux只是浅尝辄止的就不建议继续往下看了。 端正学习态度 1、Linux不等于骇客(or Cracker)。 当然众所周知很多“黑客工具”都是Linux平台上的,我帮助过很多Linux小白发现他们殊途同归都是朝着类似Aircrack-ng去的。但他们不知道的是: 2、Linux只是一个工具,工具不是目的,只是手段。这一点很重要。 Linux很快的完成你的需求目标。因为他是个专业级别的工具。 工
Linux监控平台介绍 监控存在的原因 站点出了问题,没有人知道,等用户发现了,才提醒供应商;对公司影响很大 常见开源监控软件 cacti、nagios、zabbix、smokeping、open-falcon等等,其中nagios、zabbix流行度非常高 cacti、smokeping偏向于基础监控,成图非常漂亮,适合监控网络设备 cacti监控网络的设备 cacti、nagios、zabbix服务端监控中心,需要php环境支持(用Apache的php,用nginx的php都可以),其中zabbi
1> 数据采集: 可用性和性能检测,自动发现,支持agent,snmp,JMX,telnet等多种采集方式,支持主动和被动数据传输、支持用户自定义插件,自定义间隔收集数据.
常见的有 cacti、nagios、zabbix、smokeping、open-falcon等等。 cacti、smokeping偏向于基础监控,成图非常漂亮。 cacti、nagios、zabbix服务端监控中心,需要php环境支持,其中zabbix和cacti都需要mysql作为数据存储,这几款监控软件均有web操作界面。 nagios不用存储历史数据,注重服务或者监控项的状态。 zabbix优势: zabbix会获取服务或者监控项目的数据,会把数据记录到数据库里,从而可以成图,可以增加配置节点,增加具
前言:出于想监控ubuntu server 8.04下的Mysql是否在正常运行,于是找到了Nagios,Cacti及cactiez,cacti的绘图能力很强,nagios3报警能力强;经过简单试用,我觉的cacti的配置没有Nagios配置简单,所以就先试下nagios。用的版本是3.2.0
Nagios是一款开源免费的网路监视工具,可以监控的设备:Windows,Linux,Unix,Router,Switch,打印机等,具有报警功能,是一个网络监控系统。在系统或服务状态异常时发出邮件或短信报警第一时间通知网站运维人员,在状态恢复后发出正常的邮件或短信通知。
以往,在缺少告警机制的情况下,企业无法第一时间洞悉到系统发生故障,只能通过用户的反馈来获取,系统运维人员往往也只是充当了一个“救火” 队员,大面积的系统瘫痪往往也会给企业和用户带来极大的损失
一、系统自带 1.1 iostat 系统systat包里的工具,以kB/s为单位统计,2表示以2秒为频率统计一次: iostat –x –k 2 10000 rrqm/s:每秒这个设备相关的读取请求
应客户需求并且与王同事商讨,在BJD环境缺少一台备用Cacti监控服务器,需要将原Cacti监控服务器的数据迁移到新的监控主机上去,实现监控数据同步。
19.1 Linux监控平台介绍 Linux监控平台介绍 监控存在的原因 站点出了问题,没有人知道,等用户发现了,才提醒供应商;对公司影响很大 常见开源监控软件 cacti、nagios、zabbix、smokeping、open-falcon等等,其中nagios、zabbix流行度非常高 cacti、smokeping偏向于基础监控,成图非常漂亮,适合监控网络设备 cacti监控网络的设备 cacti、nagios、zabbix服务端监控中心,需要php环境支持(用Apache的php,用ngin
需单独安装 yum install iotop 用法:iotop -d 1 -o
wget ftp://mirror.switch.ch/pool/1/mirror/epel/5/i386/xemacs-21.5.29-12.el5.1.i386.rpm
在http://www.net-snmp.org/download.html选择最新版本进行下载
监控对企业来说至关重要,以确保必要的系统正常运行。监控IT基础架构设置的不同,可能会导致大量的发故障和问题,如果不正确的使用监控工具难于保证系统健康运行。
Cacti进行服务器监控时,5分钟的高精度数据默认只保留2天的数据记录,也就是说,两天以外的流量,我们就看不到5分钟的数据了。这对于我们现有的业务需求有所冲突,所以找了一些修改RRD保存周期的方法,可以对现有的RRD文件的保存周期进行修改。对于新建的rrd,可以通过 Data Source –> RRAs 中修改对应的 row,这样新建的数据,就默认使用新值。
领取专属 10元无门槛券
手把手带您无忧上云