Python monitors windows CPU, Memory, Disk, and pythonmemory
A batch of windows systems need to be monitored. Both zabbix and nagios need to install related plug-ins, Which is troublesome to perform.
Python's psutil module monitors linux, windows, mac, and so on across platforms. Therefore, you can use python to write a monitoring script and then use py2exe to package it into an exe, directly put it in windo
PHP Script monitors nginx 502 error and automatically restarts PHP-FPM
This article mainly introduces PHP script monitoring Nginx 502 error and automatically restart PHP-FPM, this article directly give implementation code, and then put in cron execution, the need for friends can refer to the next
Recently the server occasionally appeared Nginx 502 bad Gateway, if in the computer next to good, if midnight or go out, how to do?
No problem, write a scri
Python monitors the number of Linux processesHow it works: Based on the/proc file system#!/usr/bin/python#coding:utf-8importosdefget_all_pid (): return[ Dfordinos.listdir ("/proc") ifd.isdigit ()]defget_cmdline (pid=[]): ret=[]forpid_dirinpid: withopen ("/proc/{}/cmdline". Format (Pid_dir)) asf: cmdline=f.readline () ifcmdline: ret.append (cmdline) returnretdefget_process_num (process_name): pids=get_all_ PID () cmdlines=get_cmdline (PIDs) num=0 for
/osyunwei.com/cache/ # excluded Directory: Wq! # Save and exitChmod + x/home/inotify/inotif. sh # Add execution permissionVi/etc/rc. d/rc. local # edit, add a line at the end, and automatically executeSh/home/inotify/inotif. sh: Wq! # Save and exitIf any file in the/home/web/osyunwei.com/directory changes, the/tmp/rsync.txt file will be recorded.Now, inotify-tool is used in Linux to monitor server files in real time.Method 2Inotify-tools is a command line tool that
] mnt]#/check_traffic.sh-v 2c-c public-h 192.168.10.107-i 2-w 500,600 -C 800,900 -k–bOk-the traffic in are 0.0Kbps, out are 0.0Kbps, Total is 0.0Kbps. The Check Interval is 68s | In=0.0kbps;500;800;0;0 Out=0.0kbps;600;900;0;0 Total=0.0kbps;1100;1700;0;0 Interval=68s;1200;1800;0;0Compare the red digital font-the threshold that is set for monitoring, followed by the actual flow value, which is the monitoring point.==================Execute Command error:./check_nrpe-h 192.168.10.249-c CHECK_TRAFFI
Recently, the company's ERP server irregular, uninterrupted, occasional convulsions, often hung up a few hours after the other departments of the people call to say the server hung. So I wrote a simple web-monitoring with Python. The program mainly monitors the page status code, 200 is normal, otherwise as the server hangs. Every 70 seconds, if you find three consecutive queries reported errors, the pre-set mailbox sent warning messages. The settings
For computer users, the closest thing is the display, it can be said that it is an integral part of the computer system. At present, we commonly used CRT monitors, and CRT monitors are also very prone to failure, so how can you check and troubleshoot these failures?
The following for you to introduce some of the common troubleshooting, hope to be able to use a good computer to help.
Q: How to troublesho
Label:LR monitors mysql under Linux with SNMPTo install SNMPunder Linux: 1. Use system disk to install RPM package (this is the best way) 2. Download the NET-SNMP installation at www.net-snmp.org (you may not find the snmpd.conf file after installation) Tar xzvf net-snmp-5.4.2.1.tar.gzCD net-snmp-5.4.2.1./configureHere you will be asked to enter some information, one step (as if the second step) is asking what version to install: 1, 2, 3, enter 2 to r
This question raised by Galactica is actually a broad question. So here I use a completeArticleTo answer.
First of all, can the Undo window be used in non-programmer GNU Emacs... shell mode 11th ??? In this article, I demonstrated a four-window working area. It looks like this. Galactica raised a question: "Can four windows be distributed on four monitors? When answering this question, I need to clarify several concepts first.
First, the so-
Screensiz. es helps you quickly find the screen types of the most popular devices and monitors on the market. Dimensional Data comes from Wikipedia and uses pixel density for better understanding. Estimation of popularity from Google queries (Estimation of AdWords traffic) and some fuzzy mathematical algorithms.Articles you may be interested in
Metronic-Bootstrap-based responsive background management template
Verlet-js: Awesome open-source Java
Ngios The first disk partition is monitored by default, you need to define multiple monitoring items in the service, such as:defineservice{ service_description check_disk3 max_check_attempts 3 check_interval 1 retry_interval 3 notification_interval 0 notification_options w,u,c,r,f,s notifications_enabled 1 check_command check_nrpe!check_disk3 check_period 24x7 notification_period 24x7 host_name afa_ebs_db}defineservice{ service_description check_disk4 max_check_attempts 3 check_interval 1 ret
Analysis of how SiteScope monitors resources such as Linux or UnixCPU memory-Linux Enterprise Application-Linux server application information. The following is a detailed description. The working principle of SiteScope in Linux (Unix) monitoring is as follows: SiteScope logs on to Linux (Unix) through different connection methods (note: the logon method can be ssh, telnet, rsh, rlogin), and then execute the corresponding commands in the login termina
remote DBs may be having problemsORA-3113:Ora-3136:inbound Connection timed outORA-1555: Snapshot Too old: Fallback segment number in the name "" Too small snapshot tooORA-1461: You can only assign a long value to insert a long columnORA-00600: DeadlockORA-1580: Error Creating control backup fileOra-27054:nfs file system where the file is created or resides are not mounted with correct optionsORA-6512: Similar to this Ora-06512:at "SYS. Dbms_isched ", Line 3761Ora-06512:at "SYS. Dbms_isched ",
Article Title: monitors the usage of Linux system resources. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Although the Linux operating system is much more stable than the Windows operating system. However, this stability is relative. That is to say, the Linux operating system may also get angry. In some cases, t
of NIC that matches the type of network card that is being alerted, the problem is foundView the monitoring entries for Nagios monitoring 245 network card traffic:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/6A/wKiom1SZXhvyrjo0AAEosYQ8IxM094.jpg "title=" 5.jpg " alt= "Wkiom1szxhvyrjo0aaeosyq8ixm094.jpg"/>
5. It is found that the monitor is the interface of the network card 11, and 11 the corresponding network card type is not the network card type on the actual 245. Figure 15
;NBSP;NBSP;0}I'm also a split line ************************************Error message7. Nagios Server Errorunknown-read or Write file/var/tmp/check_traffic_192.168.1.247_2__itnms.hist_dat_64 Error with User uid=501 (Nagios) G id=503 (Nagcmd) groups=502 (Nagios), 503 (nagcmd). Workaround:chmod nagios.nagcmd /var/tmp/check_traffic_192.168.1.247_2__itnms.hist_dat_64 This article is from the "Linux related sharing" blog, make sure to keep this source http://2860664.blog.51cto.com/2850664/1567068Na
Article Title: Linux Server monitors and loads hardware information in real time. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Linux Server monitoring: real-time monitoring of loading hardware information
One of the notable features of Linux is its extraordinary stability. However, if your hardware is defective
Nagios (Icinga) monitors HP server hardware information with the CHECK_HP pluginHttp://cpan.metacpan.org/authors/id/D/DT/DTOWN/Net-SNMP-v6.0.1.tar.gzhttp://exchange.nagios.org/directory/plugins/hardware/server-hardware/hp-(COMPAQ)/check_hp/detailsMonitored side:$ sudo apt-get install SNMPD$ sudo vi/etc/snmp/snmpd.conf (written under access control, it is partially removed above, except for the remainder of the access control)Press A or I to enter edit
Nagios monitors HP server hardware information with the CHECK_HPASM plugin:Http://labs.consol.de/wp-content/uploads/2011/10/check_hpasm-4.3.tar.gzMonitored side:$ sudo tar zxfv check_hpasm-4.3.tar.gz$ CD Check_hpasm$./configure--enable-hpacucli--enable-perfdata--enable-extendedinfo$ sudo make$ sudo make install$ sudo vi/etc/nagios/nrpe.cfgCommand[check_hpasm]=/usr/local/nagios/libexec/check_hpasm--perfdata Short: Wq$ sudo service nagios-nrpe-server re
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.