Nagios + check_logifiles for log monitoring
During Log check, we usually use a lot of monitoring methods. To check logs, we need to use the nagios plug-in, such as the check_logfile provided by nagios, which has limited functions; we use check_logfiles produced by ConSol Labs to process log truncation, support macro definition, support for regular expressions, and other functions, making our monitoring more flexible.
1. Installation
1. Install check_logfiles
tar -zxvf check_logfiles-3.6.3.tar.g
, memcached cannot be started by the root user. Therefore, you must specify this parameter when the current user is root.-l indicates the address of the listening server if multiple addresses exist.[Root @ localhost memcached-1.4.13] # ps-e | grep mem16499? 00:00:00 memcached[Root @ localhost memcached-1.4.13] # netstat-tunlp | grep memTcp 0 0 0.0.0.0: 11211 0.0.0.0: * LISTEN 16499/memcachedUdp 0 0 0.0.0.0: 11211 0.0.0.0: * 16499/memcached[Root @ localhost memcached-1.4.13] #
Disable memcached
[
/libtool/libtool-2.4.6.tar.gz tar-xvf libtool-2.4.6.tar.gz cd libtool-2.4.6./ Bootstrap--force./configure make make install CD.6, Installation libbson-1.6.3wget https://github.com/mongodb/libbson/releases/download/1.6.3/libbson-1.6.3.tar.gz TAR-XVF libbson-1.6.3.tar.gz CD libbson-1.6.3./configure-prefix=/usr--libdir=/usr/lib64 make make install CD.7, Installation m4-1.4.18wget http://mirrors.kernel.org/gnu/m4
First, IOS-NGN-STATCK project1.Tests---Functional testing2. Underlying modules (c and C + +)Doubango---Open source framework based on 3GPP Ims/rcs and can be used in embedded and desktop systems1) Tinywrap---C + + code, the C code is encapsulated in an object-oriented manner, and is provided to the upper call.2) Tinydav---doubango Media Audio/video control, Tinymedia core frameworkA) Audio---b) Codecs---Codecc) MSRP---file transferd) Video---Videos3)
SERVER_BASEPRODUCT "Apache" # define SERVER_BASEREVISION "1.3.20" can be changed to other information as needed, I changed Microsoft-IIS/5.0. In the SSH edit file/etc/ssh/sshd_config, find this line: Banner/etc/issue.net. Add # In front of this line to comment out the SSH Banner. Sendmail is in sendmail. remove the $ v and $ z macros from the mc file and include the following content: define ('confsmtp _ LOGIN_MSG ', $ j Sendmail Secure/Rabid; $ B) then generate sendmail. cf file: #
is the name of the software suite to be generated, and the version is the version number.
3. Add the output file linuxmakefile after ac_output
Modified results:
#-*-Autoconf -*-
# Process this file with Autoconf toproduce A configure script.
Ac_prereq ([1, 2.65])
Ac_init (hello, 1.0, cai@126.com)
Ac_config_srcdir ([Hello. C])
Ac_config_headers ([config. H])
Am_init_automake (hello, 1.0)
# Checks for programs.
Ac_prog_cc
# Checks for libraries.
# Checks for header files.
# Checks for type
Today I want to talk about the php extension in linux.
Next, let's talk about how to make a php extension.First, you must have a set up php environment.I installed php in/usr/local/php. Of courseA php path for configuring php. ini, but pay attention to it.Php extensions installed in this way cannot be implementedThe/usr/local/php/bin directory after php installationFind the file phpize. We will use it later.He is a shell script. You can use vi phpize to view his content.But you should note that
code to it to complete your function expansion. Next we will introduce how to use this tool. First, transfer your directory to the ext directory under the php Directory. if you only need a basic extension framework, execute the following command :. /ext_skel -- extname = module_namemodule_name is the name of the extension module you can choose, for example, my_module. After the tool is executed, the directory named module_name of your choice is automatically created under the ext directory, whi
your directory to the ext directory under the php Directory. if you only need a basic extension framework, execute the following command :. /ext_skel -- extname = module_namemodule_name is the name of the extension module you can choose, for example, my_module. After the tool is executed, the directory named module_name of your choice is automatically created under the ext directory, which generates the relevant code. in the code, you only need to adjust the config. the three lines of comments
and expanded. the above reason is that the LIBTOOL macro definition cannot be found. the reason is that aclocal and libtool are not installed in the same directory. aclocal searches for all aclocal files under the default installation directory/usr/share/aclocal. find the macro defined in the m4 file, but because multiple aclocal files are installed, the aclocal directory may not exist, and the actual directory is/usr/share/aclocal1.10, this causes a
Recently began to learn to use composer, installation is to find PHP need to open php_openssl this extension, when I try to expand the prompt cannot find config.m4, I also Baidu a bit but still can't solve.
Baidu for a moment most of the answer is to find CONFIG0.M4 and then renamed to CONFIG.M4 but I looked for a while still do not have this file, but also on the official web-site to find the following file for my own package is not right.
Is there
directory. aclocal searches for all aclocal files under the default installation directory/usr/share/aclocal. find the macro defined in the m4 file, but because multiple aclocal files are installed, the aclocal directory may not exist, and the actual directory is/usr/share/aclocal1.10, this causes aclocal to fail to find the m4 file. The solution is to rename the aclocal1.10 folder to aclocal. or the speci
1, in the Ubuntu environment to install SVN needs a dependency packagesubversion-1.8.10.tar.gz:http://download.csdn.net/detail/luo849278597/8208909sqlite-amalgamation-3071501.zip:http://download.csdn.net/detail/luo849278597/8208923m4-1.4.17.tar.gz:http://download.csdn.net/detail/luo849278597/8208927autoconf-2.69.tar.gz:http://download.csdn.net/detail/luo849278597/8208931libtool-2.2.6b.tar.gz:http://download.csdn.net/detail/luo849278597/82089332, decompression subversion-1.8.10.tar.gz, Sqlite-ama
nobody-d" >>/etc/rc.d/rc.sysinit
# (1) Make compile error (may occur)items.c:1141: Warning: Comparison results are always true due to data type range limitationsBecause Makefile has-werror let the warning also does not pass through compiles, modifies the makefile to remove the-werror parameter to be possible.-werror means that a warning is an error, that is, a warning occurs during compilation and cannot be compiled.and the source code of memcached may not be strict enough, out of
that the necessary software is installed
Rpm-qa | grep sendmail #发信服务器Rpm-qa | grep dovecot #imap POP3 serverRpm-qa | grep Cyrus #sasl认证支持If all the above have returned information, congratulations, this step you save. If not, do it with one side.
#缺哪个就装哪个, if the updated version is displayed, you can skip the
Yum Install SendMail SENDMAIL-CFYum Install DovecotYum Install CYRUS-SASLYum Install Cyrus-sasl-md5Yum Install Cyrus-sasl-plainYum Install Cyrus-sasl-libNow we can configure the SendMa
environment
Host
IP Address
MYSQL-M1 Primary Server
192.168.58.131
MYSQL-M2 Primary Server
192.168.58.136
MYSQL-M3 from the server
192.168.58.146
MYSQL-M4 from the server
192.168.58.147
Mysql-monitor Monitoring Proxy Server
192.168.58.148
Constructing MySQL multi-master multi-slave mode in the experiment process1
.
An error is returned.
#/Usr/local/php/bin/phpize
Processing ING:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
Cannot find autoconf. Please check your autoconf installation and the $ PHP_AUTOCONF
Environment variable is set correctly and then rerun this script.
You can solve this problem by installing autoconf.
Run yum install autoconf in centos.
Run apt-get install autoconf in Ubuntu.
17)
-config file can be specified after./configure.In this way, the compilation is complete. you also need to add the extension value to the php. ini file. The code is as follows:Extension = "memcache. so"Note: Cannot find config. m4.This error is a silly one. after decompression, you need to cd to the folder. otherwise, phpize will report an error.The memcache extension library of PHP is dynamically compiled. an error occurs when/usr/localphp/bin/phpize
cannot be found if an error is found. m4, config0.m4 is config. m4. Rename the mv config0.m4 config directly. m4/var/www/php5/bin/phpize. /configure -- with-openssl -- with-php-config =/var/www/php5/bin/php-configmakemake install # After the installation is complete, a mess
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.