serialization 4: Nagios monitoring Mysql ServerO M monitoring Nagios serialization 5: Important policies for key application monitoring
Monitoring Mysql requires processing in the nagios and Mysql servers: Installing nrpe on the Mysql server, creating Mysql monitoring users, configuring
Nagios's monitoring principle: actually very simple. We have installed the Nrpe service on the server side, then all the client data is collected through this Nrpe and uploaded to the Nagios server, which is called by Nagios to generate.Working process:(1) The client has defined, in the Nrpe.cfg file, the way the modul
There is check_nt this plugin under Nagios's libexec, which is used to check the services of Windows machines. Its function is similar to Check_nrpe. But it also needs to be paired with another software nsclient++, which is similar to Nrpe. We need to download the appropriate version of Nsclient and install it on the monitored Windows host.Overview of NRPEThe principle of nsclient++ is as follows:You can see that the biggest difference between nsclien
NagiosYou need to unzip the downloaded Nagios main program and compile it on the Linux machine. After compiling, make sure that the following subdirectories are present in the/usr/local/nagios directory, and that their owner is the Nagios user and group.bin etc include libexec share Configure ApacheThe Yum-loaded Apache itself does not require much configuration
Nagios itself does not provide the corresponding monitoring, it is to implement monitoring is dependent on the SNMP protocol or the relevant plug-in to complete the corresponding monitoring, and usually in order to deploy quickly and easily, on the Linux host generally more Nrpe extension, And on the Windows host on the use of more is the nsclient++ extension, the difference is
I. Preface:
1. Make sure that you have the root permission on the machine before installation.
2. confirm that the following software package has been installed on your installed linux system and continue.
Gcc compiler, gd library and Development Library
Note:
You can use the yum command to install these software packages. type the command:
Yum-y install httpd gcc glibc-common gd-devel
Read more: round-robin and progressive Nagios --- operation (2) Co
Check if the package is installed because Nagios needs to rely on these packages to provide services [[emailprotected]nagios]#rpm-qgccglibc Glibc-commongdgd-develxinetdopenssl-devel[[emailprotected]nagios] #yum install-ygdgd-develxinetdopenssl-devel Build Nagios Account [[email protected]~]#useraddnagios-s/sbin/nologin
interface can be insecure.Warning: Using a password on the command line interface can be insecure.OK-TRANSACTIONS RAN successfully.
[Root @ wgq_idc_dbm_3_61 binlog] #
Add monitoring command in nrpe. cfg
[Root @ wgq_idc_dbm_3_61 binlog] # vim/usr/local/nagios/etc/nrpe. cfg
Command [check_mysql_trx] =/usr/local/nagios/
One, add usersGroupadd NagcmdUseradd-g Nagcmd Nagiospasswd Nagios123456usermod-a-G nagcmd ApacheIi. installation of NagiosCd/root/downloadwget http://jaist.dl.sourceforge.net/project/nagios/nagios-4.x/nagios-4.0.7/nagios-4.0.7.tar.gzcan also be downloaded from here: http://www.nagios.org/download/tar xzvf
The Nagios-plugins plugin is based on the installation of Nagios core, and the installation details of Nagios core are as follows: [Nagios monitor Nagios Core installation]http://4709096. blog.51cto.com/4699096/17022191. Compiling the installation#
Nagios Monitor NginxOpen Firewall 161 port252.10760.195.252.110Iptables-i input-p udp-s 60.195.252.107–dport 161-j ACCEPTIptables-i input-p udp-s 60.195.252.110–dport 161-j ACCEPT2012-03-21 23:07:38| Category: monitoring | reporting | font size subscription1. Perform operation on the controlled side: put the Check_nginx plugin into the/usr/local/nagios/libexec, and authorize the host and the group to be
One, installation of Nagios client for Linux serverSteps:1, create the directory, upload files to the directoryMkdir/dataNagios-plugins-2.1.1.tar.gzNrpe-2.12.tar.gz2. Creating Nagios Groups and usersGroupadd NagiosMkdir/usr/local/nagiosUseradd nagios-d/usr/local/nagios-s/sbin/nologin-g NagiosChown-r nagios:nagios/usr/l
First, the principleintegrating cacti and Nagios is a plugin of cacti, nagios for cacti, which works by importing Nagios data through ndo2db into the MySQL database (the cacti library). Then cacti reads the database information and displays the results of Nagios. Second, cacti expansion moduleCacti extension modules ne
1, usually configure Nagios client nrped boot most commonly used is in the/etc/rc.local file configuration:/usr/local/nagios/bin/nrpe-c/usr/local/nagios/etc/nrpe.cfg-d2, but there is a better way (so it is easy to use the script to start or close):Create the nrped script file under the/ETC/INIT.D directory and execute
Software and plugins to be installedServer A nagios-3.2.3,nagios-cn-3.2.3 Chinese version of nagios-plugins-1.4.15 Client Server B nrpe-2.12;nagios-plugins-1.4.15 First step: Create accounts and Groups first (note: First confirm that there are no accounts and groups, if not,
/share/pnp"
Options None
AllowOverride None
Order allow, deny
Allow from all
Authname "nagios access"
Authuserfile/etc/nagios/htpasswd. users
Require valid-user
Authtype basic
6. Start apache and nagios. The default username and password of nagios are both nagiosadmin.
V. Error Reporting
1. Nic traffic error: Retur
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.