浏览模式: 标准 | 列表 2010年06月28日的文章

解决zabbix在configure时候遇到的问题(CentOS)

在CentOS系统中,安装zabbix进行configure时会遇到以下4个主要问题

./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl

1 configure: error: MySQL library not found
  the problem is not installed mysql-devel
  #yum install mysql-devel

2 configure: error: Jabber library not found
  the problem is not installed jabber lib
  #wget http://iksemel.googlecode.com/files/iksemel-1.4.tar.gz
  下载完成后解压、配置、安装:

  1. tar zxvf iksemel-1.4.tar.gz
  2. cd iksemel-1.4
  3. configure
  4. make
  5. make install

之后对zabbix进行configure还是会遇到这个问题,那么将jabber目录指定即可:#./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber=/usr/local/ --with-libcurl

3 configure: error: Not found curl Library
  #yum install curl-devel (此项未经测试)

4 configure: error : Not found NET-SNMP library
  yum install net-snmp-devel

本文资料由本人整理实践所得,转载请注明出处。谢谢!

Tags: zabbix

解决zabbix在configure时候遇到的问题(Ubuntu)

在Ubuntu系统中,安装zabbix进行configure时会遇到以下4个主要问题

./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl

1 configure: error: MySQL library not found
  the problem is not installed mysql-devel
  #apt-get install  libghc6-hsql-mysql-dev (ubuntu )

2 configure: error: Jabber library not found
  the problem is not installed jabber lib
  #apt-get install libphp-jabber
  #apt-get install libnet-jabber-loudmouth-perl
  #apt-get install jabber-dev
  #apt-get install libiksemel-dev  (* this packet important)

3 configure: error: Not found curl Library
  the problem is not installed libcurl4-openssl-dev
  #apt-get install libcurl4-openssl-dev

4 configure: error : Not found NET-SNMP library
  #apt-get install libsnmp-dev
  #apt-get install snmp

本文资料来自:http://blog.chinaunix.net/u1/57035/showart_2089940.html

Tags: zabbix

Linux或Unix下怎样修改系统时间

Linux/Unix下一般使用“date -s”命令来修改系统时间。

比如将系统时间设定成2010年6月28日的命令如下:

#date -s 06/28/2010

将系统时间设定成下午11点12分0秒的命令如下:

#date -s 11:12:00

这里说的是系统时间,是linux由操作系统维护的。在系统启动时,Linux操作系统将时间从CMOS中读到系统时间变量中,以后修改时间通过修改系统时间实现。为了保持系统时间与CMOS时间的一致性,Linux每隔一段时间会将系统时间写入CMOS。由于该同步是每隔一段时间(大约是11分钟)进行的,在我们执行date -s后,如果马上重起机器,修改时间就有可能没有被写入CMOS,这就是问题的原因。如果要确保修改生效可以执行如下命令:

#clock -w

该命令强制把系统时间写入CMOS。