监控软件cacti之安装

1.安装系统依赖包和搭建LAMP环境

[[email protected] ~]# yum install rrdtool net-snmp net-snmp-libs net-snmp-utils -y

[[email protected] ~]# yum install httpd php php-mysql php-snmp php-xml php-gd mysql-server mysql -y

[[email protected] ~]# vim /etc/httpd/conf/httpd.conf

ServerName localhost

DirectoryIndex index.php index.html index.html.var

AddType application/x-httpd-php .php

[[email protected] ~]# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

[[email protected] ~]# vim /var/www/html/index.php

<?php

phpinfo();

?>

[[email protected] ~]#

测试:

2.安装cacti监控软件

[[email protected] ~]# wget http://www.cacti.net/downloads/cacti-0.8.8c.tar.gz

[[email protected] ~]# tar xvf cacti-0.8.8c.tar.gz

[[email protected] ~]# mv cacti-0.8.8c /var/www/html/cacti

[[email protected] ~]# cd /var/www/html

[[email protected] html]# chown -R apache:apache cacti/

[[email protected] html]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.6.21-log MySQL Community Server (GPL)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

mysql> grant all privileges on cacti.* to [email protected]‘localhost‘ identified by ‘system‘;
Query OK, 0 rows affected (0.01 sec)

mysql> flush privileges;

mysql> create database cacti;

mysql> \u cacti

mysql> source /var/www/html/cacti/cacti.sql ;

mysql> exit
Bye 
[[email protected] html]# vim cacti/include/config.php

$database_type = "mysql";                    
$database_default = "cacti";                      --指定数据库

$database_hostname = "localhost";            --数据库服务器主机
$database_username = "cacti";                  --用户名
$database_password = "system";              --密码
$database_port = "3306";                          --端口
$database_ssl = false;

[[email protected] html]# crontab  -e     --rrdtool绘图

*/5 * * * * /usr/bin/php /var/www/html/cacti/poller.php >/dev/null 2>&1

[[email protected] html]# /etc/init.d/crond restart
Stopping crond:                                            [  OK  ]
Starting crond:                                            [  OK  ]
[[email protected] html]# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[[email protected] html]#

3.测试

初使密码:admin

修改密码:system

时间: 2024-07-28 13:15:51

监控软件cacti之安装的相关文章

监控软件介绍、安装zabbix

一:监控软件介绍 cacti.nagios.zabbix.smokeping.open-falcon等等cacti.smokeping偏向于基础监控,成图非常漂亮cacti.nagios.zabbix服务端监控中心,需要php环境支持,其中zabbix和cacti都需要mysql作为数据存储,nagios不用存储历史数据,注重服务或者监控项的状态,zabbix会获取服务或者监控项目的数据,会把数据记录到数据库里,从而可以成图open-falcon为小米公司开发,开源后受到诸多大公司和运维工程师的

监控软件nagios之安装

1.安装软件依赖包和创建nagios用户 [[email protected] ~]# yum install gcc gcc-c++ make -y [[email protected] ~]# groupadd -g 500 nagios[[email protected] ~]# useradd  -r -u 500 -s /sbin/nologin -g nagios nagios[[email protected] ~]# 2.安装apache和php环境 [[email protec

监控之cacti的安装部署(监控本机及其他主机+支持多线程+命令行监控)

主机环境   redhat6.5 64位 实验环境   服务端1 ip 172.25.25.1            服务端2 ip 172.25.25.2 安装包     cacti-0.8.8h.tar.gz      php-snmp-5.3.3-26.el6.x86_64.rpm cacti-spine-0.8.8g.tar.gz 防火墙状态:关闭 Selinux状态:Disabled 1.配置安装cacti及测试 A)配置安装cacti [[email protected] Asia]

Nagios监控软件源码安装

nagios是目前非常流行的系统,服务器监控免费软件,很多大的国内站点像搜狐,网易都在使用nagios进行服务器监控.nagios的有点在于他本身只是一个框架,对于nagios扩展监控模块,以及报警模块非常方便,能很方便的加入自己编写的服务监控,以及手机短信,邮件,gtalk ,msn报警等等.以下是nagios在linux REDHAT AS4U4 下的安装和简单的配置过程:下载软件:http://pan.baidu.com/s/1c02EzZy http://pan.baidu.com/s/

关于开源监控软件cacti

cacti是用php语言实现的软件,它的主要功能是用snmp来实现获取数据的功能,然后用rrdtool来实现存储和更新数据,当用户需要查看数据的时候通过rrdtool这个工具来实现将数据生成图标呈现给用户.因此,snmp和rrdtool是cacti的关键.snmp关系着数据的收集,rrdtool关系着数据的存储和图表的生成.

监控软件zabbix之安装

1.搭建LAMP环境和安装系统依赖包 [[email protected] ~]# yum install gcc gcc-c++ crul crul-devel mysql mysql-server httpd php-gd php php-xml php-mbstring net-snmp snmp net-snmp-devel php-mysql php-bcmath -y [[email protected] ~]# cd /etc/httpd/conf[[email protected

系统监控软件Ganglia的安装

1.实验环境 Centos6.4 2.安装rrdtool(注rrdtool-1.5.3不支持3.6.1) 1 2 #安装ganglia相关包 yum -y install apr-devel apr-util check-devel cairo-devel pango-devel libxml2-devel rpmbuild glib2-devel dbus-devel freetype-devel fontconfig-devel gcc-c++ expat-devel python-deve

监控软件之open-falcon安装配置篇

2019-07-10 一.open-falcon简介 open-falcon是由小米运维团队,从互联网公司角度为出发点,开发出来的一套面向互联网行业的企业级的开源监控系统,截至2019年7月,open-falcon最新稳定版本为v0.2 二.open-falcon特性 数据采集方式多样灵活:支持agent.snmp.用户主动push.自定义插件等多种方式进行数据采集 高效率报警策略管理 人性化的告警设置 dashboard多维度数据展示 模板支持继承的同时支持覆盖策略项 server端无需做配置

开源监控软件-Nagios-Rhel5.9安装手册

一.安装Nagios所需组件(事先需配置好yum环境) # yum -y install httpd php gcc glibc glib-common gd gd-devel libpng libjpeg zlib 二.安装Nagios(软件包位置:http://down.51cto.com/data/1906099) 1.解压软件包 # tar -zxf nagios-3.2.1.tar.gz -C /usr/local/ # cd /usr/local/nagios-3.2.1/ 可以参照