CPU utilization, indicating that a certain part of the system bottleneck indicates that the system kernel consumes more CPU resources, usually the lower the better, this is not benign performance, we should check the cause.3) Latency (waiting time)The amount of time the CPU spends waiting for the I/O operation to complete. The system department should spend a lot of time waiting for I/O operations, otherwise the I/O has a bottleneck.4) Idle time (idle)The system is in an idle period, waiting fo
1, after a period of time to carry out the Munin configuration, a big problem, causing me a long time in this bottleneck, is the SELinux firewall caused Munin custom plug-ins can not be used, I now do not understand why Munin's own plug-in to go to the data, Online Pit Dad's tutorial is said to be plug-in permissions in the Conf file definition or the plug-in itself permissions.2, mail alarm, mail contact must be written in the configuration file of the head3, custom mail mail.rc write your user
normal to explain this website.Example: 10-7 use the while daemon to monitor the Web site, every 10s to determine whether the site is normal.Reference Answer 1: Introducing a library of functions and introducing email alerts in a way that simulates user access#!/bin/bashsource/etc/init.d/functionswhile Truedo If ["' Curl-o/dev/null--connect-timeout 5-s-W"%{http_code}\n ""$ "|Egrep "200|301|302" |Wc-l ' "-eq 1];Then action ' This is url:$1 is ok '/bin/true else action ' This is url:$1 is ' bad '
Tags: SRE pre distrib amp release max insert gets upperOriginal: SQL Server monitors the number of commands that are not distributed in the publicationWe usually look at the number of commands that are not distributed. However, when the server has a lot of releases, it is troublesome to open the view Of course, if you want to use a script to see the more convenient, run the following statement --View the
1 used the official template, location in Https://www.zabbix.org/wiki/Zabbix_Templates, feel a bit more, and after the addition of {$SQL 1} is still no such service, so decided to write a bit of custom, By the way, the main reference online this eldest brother, http://mayulin.blog.51cto.com/1628315/514509/2 Windows Add Monitoring item generally with PerfCounter, this is a counter, used to monitor the performance parameters of the system, give me the o
Script for monitoring server downtime:$ Sudo VI ping. ShPress a or I to enter the editing mode.#! /Bin/bashDate = 'date + % m % d % y'Touch/log/ping/$ date. LogServer = "ming1 ming2 ming3 ming4 ming5"For server in $ ServerDoPing = '/bin/ping-C 4 $ server | grep % | awk-f [: ""] +' {print $6} '| tr-d' %''Ping2 = '/bin/p
Monitor system calls made and received by a process--stracecommand line monitoring of raw network traffic--tcpdumpKeep track of open files--lsofThe birth of Sysdig-a tool that integrates strace tcpdump lsof, using LUA integrated tools.Can analyze the status of Linux system, and can be a system state saved to a dump file for offline detection.You can use your own scripts to extend additional functionality.Sysdig Installation Script:Curl-s Https://s3.am
A Negios server was set up in the company today. After adding the monitored server, several monitored services are OK, but the host display is down.Environment Description:Nagios Server:Redhat 6.3 x64 Minimized installationTurn off SELinux and iptablesNagios-3.4.1.tar.gzNagios-plugins-2.0.3.tar.gzNrpe-2.15.tar.gzFollow the previous manual step-by-step procedure. Used to be OK, do not know why this error.650
-djava.rmi.server.hostname=xxx.xxx.xxx.xxxjava_options+= ("-djava.rmi.server.hostname=xxx.xxx.xxx.xxx")If necessary, you can see the corresponding property configuration in Etc/jetty-jmx.xml and Jetty-jmx-remote.xmlLike what:Jetty.jmxrmiportJetty.jmxrmihostView the processes that are started under[Email protected] logs]# jps-vml |grep WebApp13165.. /jetty-man/start.jar-server-xms2g-xmx2g-xx:permsize=64m-xx:maxpermsize=128m-djava.rmi.server.hostname= 1
upload. Bytes per second.)Content_Type is Content-type, needless to say, this is a visit to my blog home page returned results example (text/html; charset=utf-8); (The content-type of the requested Document, if there is any.)Num_connects number of new connects made in the recent transfer. (Added in 7.12.3)Num_redirects number of redirects that were followed in the request. (Added in 7.12.3)Redirect_url when a HTTP request is made without-l to follow redirects, this variable would show the actua
time, total statement execution time, and so on.The use of the method is also very simple, a line of codeSET STATISTICS time onThrough this parameter, we can analyze the above information, which is mainly used to compare the execution time in the query statement tuning, our goal is to reduce the execution time.Example: We compare the above query statement to the time of the first run and later run (the data has been cached) to understand the importance of the cache by turning on time statistics
the data cache in memory, you can see the following DMV script?
1234
SELECT*FROM sys.dm_os_buffer_descriptorsWHERE DB_NAME(database_id)=‘Northwind‘AND page_type=‘DATA_PAGE‘ORDER BYpage_id
The DMV can also be used to analyze the size ratio of each library in memory, and the script is as follows:?
1234567891011
--清除缓存dbcc dropcleanbuffers--查看缓存内容中在内存大小SELECT COUNT(*)*8/1024 as ‘Cached Size(MB)‘,CASE database_idWHEN32767 THEN‘ResourceDB‘ELSE DB_NAME
One: Prepare before installationNagios server:192.168.1.10Nagios client:192.168.1.11This post installs Nagios only using the Nagios mail alarm feature, if you need to paint another installation of cacti, or other pluginsSecond: Installation ServicesTo operate on the Nagios server:Installing apache+phpYum install httpd httpd-devel php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml gcc glibc glibc-co Mmon GD Gd-devel OpenSSL opens
When monitoring the internal performance of zabbix, we usually use the following metric to measure the service performance:
Nvps, queue, update percent, process busy, pending sync data, cache.By adding corresponding monitoring, zabbix performance problems can be effectively found, and targeted optimization can be carried out. 1. nvps: the amount of data processed per second is a theoretical value. Value SQL
: /nagios-plugins-1.4.16#./configure--prefix=/usr/local/nagios--with-nagios-user=nagios--with-nagios-group=nagios# Make make installcompiling and installing Nrpe# CD: /nrpe-2.13#./configure--prefix=/usr/local/nagios# make all# make Install-pluginset nagios directory Permissions# Chown–r nagios:nagios/usr/local/nagios/Configure user password access#/usr/local/apache/bin/htpasswd-cm/usr/local/nagios/etc/htpasswd nagiosadminnew password:re-type New password: Adding Password for usernagiosadminThre
/monitor.shdirectly when I set the command, I found that this configuration will not execute the shell script, before adding SH can be executed.Then we started writing monitor.sh this shell script.#! /bin/sh proc_name= "worldframe_d" #进程名 proc_num () #查询进程数量 { num= ' ps-ef | grep $proc _name | grep-v grep | Wc-l ' return $num}proc_num number=$? #获取进程数量if [$number-eq 0] #如果进程数量为0then #重新启动服务器, or ex
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.