cacti

apache server reached MaxClients setting, consider raising the MaxClients setting

偶尔善良 提交于 2019-11-29 19:34:08
I am running centos 5.5 with 768mb ram. i keep getting server reached MaxClients setting, consider raising the MaxClients setting in the logs also apache runs really slow. when i look at cacti graphs it shows the server is not even using all the resources.. here is the current configuration <IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 10 ServerLimit 1024 MaxClients 768 MaxRequestsPerChild 4000 </IfModule> <IfModule worker.c> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule> free -m total used free

Cacti安装详细步骤

落爺英雄遲暮 提交于 2019-11-28 21:58:39
Cacti安装详细步骤 前提LNMP或LAMP架构已搭建完成 一、cacti概述 1. cacti是用php语言实现的一个软件,它的主要功能是用snmp服务获取数据,然后用rrdtool储存和更新数据,当用户需要查看数据的时候用rrdtool生成图表呈现给用户。因此,snmp和rrdtool是cacti的关键。Snmp关系着数据的收集,rrdtool关系着数据存储和图表的生成。 2. Mysql配合PHP程序存储一些变量数据并对变量数据进行调用,如:主机名、主机ip、snmp团体名、端口号、模板信息等变量。 3. snmp抓到数据不是存储在mysql中,而是存在rrdtool生成的rrd文件中(在cacti根目录的rra文件夹下)。rrdtool对数据的更新和存储就是对rrd文件的处理,rrd文件是大小固定的档案文件(Round Robin Archive),它能够存储的数据笔数在创建时就已经定义。 二、安装rrdtool 先试试这个: yum install rrdtool rrdtool-perl -y 如果不行,可能是在主监控机上安装rrdtool,rrdtool依赖的包过多,所以选择增加源,然后用yum安装,试试下边的: [root@localhost /]# vi /etc/yum.repos.d/dag.repo [dag] name=Dag RPM

apache server reached MaxClients setting, consider raising the MaxClients setting

你离开我真会死。 提交于 2019-11-28 15:11:35
问题 I am running centos 5.5 with 768mb ram. i keep getting server reached MaxClients setting, consider raising the MaxClients setting in the logs also apache runs really slow. when i look at cacti graphs it shows the server is not even using all the resources.. here is the current configuration <IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 10 ServerLimit 1024 MaxClients 768 MaxRequestsPerChild 4000 </IfModule> <IfModule worker.c> StartServers 2 MaxClients 150

Cacti+nagios 整合监控部署文档

萝らか妹 提交于 2019-11-28 10:53:40
目录 Cacti+nagios监控部署步骤... 2 一、Cacti安装... 2 1需要安装的依赖软件包:... 2 2安装rrdtool 2 3启动数据库和httpd服务... 3 4将servername和ip对应写入hosts 3 5安装cacti 3 6创建cacti数据库并授权:... 3 7导入cacti的数据表... 3 8修改配置文件,提供php连接mysql的用户名、密码(如图)... 3 9登录网页按照向导提示完成安装:... 4 10 配置本机snmp. 6 11 通过WEB页面添加监控设备... 7 12 为新创建图形生成数据,并将轮询加入计划任务... 9 13 更改php时区... 9 14 安装高效轮询器spine. 9 二、Cacti插件安装... 11 1 如不需打补丁(在cacti-0.8.8b版中默认已带plugin management),则只修改配置文件即可 11 2 安装monitor、settings、thold插件... 11 3 刷新web页面plugin management,出现插件的蓝色图标,依次全部启用... 12 4 thold警报功能... 12 5 安装weathermap插件... 15 三、cacti系统的客户端配置... 18 1 linux主机... 18 2 windows主机... 19 四

Cacti-0.8.8b详细安装及配置步骤

半腔热情 提交于 2019-11-28 04:03:21
1. Cacti环境安装 1.1 安装LAMP环境 安装LAMP环境,当然,如果你有兴趣可以采用编译,我线上Mysql是编译的,其余是yum安装的。在这次实验采用yum安装。 关闭iptables与selinux,如果有需要,后面再开启。配置好yum源,开始安装。 yum -y install httpd httpd-devel httpd-manual mysql mysql-devel mysql-server php php-devel php-mysql php-common php-pdo php-gd lm_sensors net-snmp net-snmp-devel php-snmp net-snmp-utils dejavu-* patch chkconfig mysqld on chkconfig httpd on chkconfig snmpd on service mysqld start service httpd start service snmpd start 在浏览器中输入http://serverip,查看测试页有没有出现。 1.1 配置snmp vim /etc/snmp/snmd.conf #/etc/init.d/snmpd restart 验证snmp配置是否正确 # snmpwalk -v 2c -c public 127.0.0.1

Cacti 管理员密码忘记找回

不羁的心 提交于 2019-11-27 12:06:15
1、登陆数据库; # mysql -uroot -p MariaDB [(none)]> show databases; +--------------------+ | Database | +--------------------+ | cacti | | information_schema | | mysql | | performance_schema | | test | +--------------------+ 5 rows in set (0.02 sec) MariaDB [(none)]> use cacti; Database changed MariaDB [cacti]> show tables; MariaDB [cacti]> MariaDB [cacti]> update user_auth set password=md5("admin") where id='1'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 2、上面的cacti 就是数据库,对其中的 user_auth 表当中的 id 为1 的用户进行密码重置(默认安装完成后管理员密码的ID就是这个); 3、把密码重置成 admin 这个地方你可以改成你想修改的密码; 4

shell编程基础(二)

自闭症网瘾萝莉.ら 提交于 2019-11-27 11:13:29
Shell是命令解释器,是Unix/Linux系统中用户和内核交互的接口。Shell脚本是shell程序设计语言编写的程序。 一、交互式或登录(注册)shell 交互式注册(交互式登录)shell:输入用户名(/etc/passwd)、密码(/etc/shadow)成功登录系统,即调用交互式注册shell。 会运行初始化文件,设置用户运行环境。 交互式非注册shell:在提示符下,输入任意shell,如ksh等,将进入交互式非注册shell。 会运行对应shell初始化文件,也会继承注册shell的环境。 非交互式shell:主要是运行shell脚本。 不执行初始化文件,但会继承注册shell环境。 交互式模式就是在终端上执行,shell等待你的输入,并且立即执行你提交的命令。 这种模式被称作交互式是因为shell与用户进行交互。 这种模式也是大多数用户非常熟悉的:登录、执行一些命令、退出。 当你退出后,shell也终止了 非交互式模式以shell script(非交互)方式执行。 在这种模式下,shell不与你进行交互,而是读取存放在文件中的命令,并且执行它们。 当它读到文件的结尾EOF,shell也就终止了 二、shell和shell脚本 Shell是命令解释器,是Unix/Linux系统中用户和内核交互的接口。 Shell脚本是shell程序设计语言编写的程序

了解linux web的监听工具

社会主义新天地 提交于 2019-11-27 00:51:53
zabbix cacti Nagios 本想安装的,但是安装需要一个 空的服务器,因为服务器已经有安装 LAMP,故没有去了解 尝试了 cacti ,因为本地环境版本问题,只能使用 0.8.8a 版本,并且出现 配置的php等路径之后,cacti 显示 [ERROR: FILE NOT FOUND] rrdtool centos sudo yum install rrdtool librrd-dev ubuntu: sudo apt-get install rrdtool librrd-dev centos 6.10 尝试cacti 因虚拟机已经安装好 php 5.6.40,mysql 5.5.31,因为php和mysql的版本比较低,故选择了 cacti-0.8.8a 版本进行安装 mysql -u root -p # 进入mysql终端 sql(创建cacti) create database cacti default character set utf8; #创建cacti数据库 grant all on cacti.* to cacti@localhost identified by 'asd123'; #创建cacti用户,密码为 asd123,并赋予 cacti数据库的所有权限给cacti用户 GRANT SELECT ON mysql.time_zone_name

mysql5.5.x 安装cacti报语法错误

无人久伴 提交于 2019-11-27 00:21:13
安装cacti时,在导入cacti.sql 这个文件时报错: The command "mysql -u root -p cacti < cacti.sql' gets the following error: ERROR 1064 (42000) at line 5: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 6 原因是mysql5这后不再支持 TYPE=MyISAM 这样的语法了,改成 ENGINE=MyISAM 就可以了。 转载于:https://www.cnblogs.com/jmax/archive/2011/06/06/2073666.html 来源: https://blog.csdn.net/weixin_38166557/article/details/99222552

Cacti Install

試著忘記壹切 提交于 2019-11-26 20:32:31
一、Cacti简介 Cacti是通过snmpget来获取数据,使用RRDtool绘画图形,而且你完全可以不需要了解RRDtool复杂的参数。它提供了非常强大的数据和用户管理功能,可以指定每一个用户能查看树状结构、host以及任何一张图,还可以与LDAP结合进行用户验证,同时也能自己增加模板,功能非常强大完善。界面友好。软件 Cacti 的发展是基于让 RRDTool 使用者更方便使用该软件,除了基本的 Snmp 流量跟系统资讯监控外,Cacti 也可外挂 Scripts 及加上 Templates 来作出各式各样的监控图。 Cacti是用php语言实现的一个软件,它的主要功能是用snmp服务获取数据,然后用rrdtool储存和更新数据,当用户需要查看数据的时候用rrdtool生成图表呈现给用户。因此,snmp和rrdtool是cacti的关键。Snmp关系着数据的收集,rrdtool关系着数据存储和图表的生成。 Mysql配合PHP程序存储一些变量数据并对变量数据进行调用,如:主机名、主机ip、snmp团体名、端口号、模板信息等变量。 snmp抓到数据不是存储在mysql中,而是存在rrdtool生成的rrd文件中(在cacti根目录的rra文件夹下)。rrdtool对数据的更新和存储就是对rrd文件的处理,rrd文件是大小固定的档案文件(Round Robin Archive)