监控安全
Zabbix 是一个提供 Web 管理界面的开源系统/网络监控服务器。官方的文档写得非常好,许多内容这里就不介绍了,可以直接看官方文档:http://www.zabbix.com/documentation/本文只记录我的 Zabbix 1.8 的安装过程。以下我要在同一台服务器上安装 Zabbix Server、Zabbix Proxy 和 Zabbix Agent。安装前先配置好PHP,要求支持 php-gd、php-bcmath、php-xml、php-mysql、php-net-socket、php-mbstring,即 configure 参数中加上 --with-gd --enable-bcmath --enable-xml --with-mysql --enable-sockets --enable-mbstring。我的配置参数如下:./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-fpm --enable-sockets --enable-pdo --with-pdo-mysql=/usr/local/mysql --with-gd --enable-bcmath --enable-xml --enable-mbstring下面开始安装 Zabbix:* 下载并解压:wget http://prdownloads.sourceforge.net/zabbix/zabbix-1.8.tar.gz?downloadtar zxf zabbix-1.8.tar.gzcd zabbix-1.8* 创建 zabbix 用户组和用户:groupadd zabbixu...
zabbix编译时候遇到的问题在CentOS系统中,安装zabbix进行configure时会遇到以下问题./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl1 configure: error: MySQL library not foundthe problem is not installed mysql-devel#yum install mysql-devel  2 configure: error: Jabber library not foundthe problem is not installed jabber lib#wget http://iksemel.googlecode.com/files/iksemel-1.4.tar.gz 下载完成后解压、配置、安装:tar zxvf iksemel-1.4.tar.gz  cd iksemel-1.4  configure  make  make install  之后对zabbix进行configure还是会遇到这个问题,那么将jabber目录指定即可:#./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber=/usr/local/ --with-libcurl3 configure: error: Not found curl Library#yum install curl-devel (此项未经测试)  4 configure: error : Not found NET-SNMP libraryyum install net-snmp-devel  
安装 zabbixx 提示no found jabber librarychecking for IKSEMEL... noconfigure: error: Jabber library not foundconfigure: error: Not found Jabber library1.下载文件,然后编译安装。http://code.google.com/p/iksemel/2.The correct configure:     ./configure  --enable-server --with-mysql --with-net-snmp--with-jabber=/usr/local--with-libcurl
zabbix里图形中的汉字显示乱码或方框zabbix 1.8.5 1.8.6版本 添加好图形后,图形是的有些汉字是方框。明显是字体原因。方法:查看zabbix 相关信息,其字体文件放置在web目录:zabbix/fonts/DejaVuSans.ttf因此我们可以替换掉此字体文件。先备份:# mv /var/www/html/zabbix/fonts/DejaVuSans.ttf  /opt//DejaVuSans.ttf.bak 然后复制uming.ttf字体文件# cp  usr/share/fonts/chinese/TrueType/uming.ttf  /var/www/html/zabbix/fonts/DejaVuSans.ttf然后重新启动zabbix_server程序,打开图形显示正常了。可后来发现了一个问题,就是图形中显示的日期  又成乱码了。这可怎么办。后来发现在/usr/share/fonts/MSYH.TTF 这个字体。将其cp 到/var/www/html/zabbix/fonts/DejaVuSans.ttf然后重启httpd 服务或是重启zabbix_server 打开查看图形一切正常。终于完全解决了。
zabbix忘记密码怎么办?首先去看看mysql数据库查看数据库mysql> show databases;+--------------------+| Database           |+--------------------+| zabbix             |+--------------------+5 rows in set (0.00 sec)进入数据库mysql> use zabbix;Reading table information for completion of table and column namesYou can turn off this feature to get a quicker startup with -ADatabase changed查看数据有那些表mysql> show tables;查看是否存放用户、密码信息mysql> select * from users;更改密码为zabbixmysql> update  users set passwd=md5("zabbix") where userid='1';Query OK, 0 rows affected (0.01 sec)Rows matched: 1  Changed: 0  Warnings: 0
启动zabbix_server 进程时找不到libiksemel.so.3安装好zabbix 后,再启动zabbix_server 进程时,提示。error while loading shared libraries: libiksemel.so.3: cannot open shared object file: No such file or directory以前编译zabbix 时,已经编译了iksemel ,后来查看才知道。libiksemel.so.3此文件存在,我所安装iksemel目录lib里同。直接复制到/usr/lib/ 目录下,再重启zabbiz_server 就可以正常使用了。[root@localhost sbin]#./zabbix_server./zabbix_server: error while loading shared libraries: libiksemel.so.3: cannot open shared object file: No such file or directory[root@localhost sbin]# locate libiksemel.so.3/root/iksemel-1.4/src/.libs/libiksemel.so.3/root/iksemel-1.4/src/.libs/libiksemel.so.3.1.1/usr/local/lib/libiksemel.so.3/usr/local/lib/libiksemel.so.3.1.1[root@localhost sbin]# lltotal 1408-rwxr-xr-x 1 root root 1433467 Nov 27 09:01 zabbix_server[root@localhost sbin]# ldd zabbix_server         linux-gate.so.1 => (0x00b02000)         libcurl...
centos5.4下cacti的安装配置系统环境OS:CentOS5.4DataBase:MySQL5.0PHP Apachenet-snmp部署cacti需要的环境安装MySQLyum install mysqlyum install mysql-server安装apacheyum install httpd安装phpyum install phpyum install php-mysql启动各类服务并且加入启动列表service httpd startservice mysqld start #第一次启动会初始化MySQL的数据字典chkconfig httpd onchkconfig mysqld on由于cacti的运行需要大量的其它库的支持,我们还需要安装一些:zib:yum install ziblibpng:yum install libpngfreetype:yum install freetypejpeg:yum install libjpegfontconfig:yum install fontconfiggd:yum install gdlibxml:yum install libxml2另外,还需要rrdtool的支持: 从这里下载:http://www.express.org/~wrl/rrdtool/这里我下载对应centos5.4的版本,读者请对应自己的系统版本下载wgethttp://www.express.org/~wrl/rrdtool/rrdtool-1.2.30-1.el5.wrl.x86_64.rpmwgethttp://www.express.org/~wrl/rrdtool/rrdtool-perl-1.2.30-1.el5.wrl.x86_64.rpmrpm -ivh rrdtool-1.2.30-1.el5.wrl.x86_64.rpm rrdtool-perl-1.2.30-1.el5.wrl.x86_64.rpm安装snmp的支持工具yum install net-...
RedHat Linux安装mrtg监控主机流量 作者:leexoyo linux下需要的软件:gd-1.8.4-11、gd-devel-1.8.4-11、libpng-1.2.2-16、libpng- devel-1.2.2-16、libpng10-1.0.13-8、libpng10-devel-1.0.13-8、perl-5.8.0-88、 zlib-1.1.4-8、zlib-devel-1.1.4-8、httpd-2.0.40-21、gcc-3.2.2-5、net-snmp- 5.06-17、mrtg-2.14.5.tar.gz 需下载:http://people.ee.ethz.ch/~oetike ... /mrtg-2.14.5.tar.gz查看软件包是否已经安装,如:#rpm -qa | grep gd如果没有安装的话,光盘里都有。确定需要的软件都安装好后,现在继续MRTG的安装。管理站地址为192.168.1.30,被管理站地址为:192.168.1.50(1)首先,修改snmp的配置文件:#vi /etc/snmp/snmpd.conf把第89行前面的注释符号#去掉,变成view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc在62行进行修改:将access notConfigGroup "" any noauth exact systemview none none改为access notConfigGroup "" any noauth exact mib2 none none(2)启动http服务和snmp服务:首先查看两个服务在系统启动时是否已经开启#chkconfig --list | grep httpd没有启动的话需要修改下在什么启动模式下要自己启动:# chkconf...
    总共11页,当前第11页 | 页数:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11