/etc/nrpe. cfg-d
Echo "/usr/local/nagios/bin/nrpe-c/usr/local/nagios/etc/nrpe. cfg-d ">/etc/rc. local # allowed_hosts this line replaces the original 127.0.0.1 with the current server address 114.112.11.11 (which has been harmless). You can consider whether to add this line of code based on your actual needs, the next step is to debug the Nagios server. The specific process is skipped here.
In fact, before the machine enters the IDC, client software such as nagios and
Because the paper needs to use gnuplot mapping, and I like to use Python to generate data, so I studied the next gnuplot with the parameters of the script, so I can generate data at the same time call gnuplot, the implementation of a lot of methods, here I only say this.1 Reset 2 set term PNG 3 Set Output Output_fname 4 Plot input_fname using 1:2 w LP PT 0 title ' Data 'Above is a simple line chart of the gnuplot script, the parameters are the inside of the Output_fname and Input_fname, the scri
machine goes online, it must first focus on Kickstart in the local area network and then initialize it. At this time, the network is stable and debugging is convenient. Therefore, it is convenient and effort-saving to use puppet automatic maintenance, this prevents remote maintenance and installation after the machine goes online, which consumes manpower and increases machine risks.Note: many of my friends write their own SHELL
Python scripts remotely execute commands in batchesAbstract: This article mainly writes a python script to remotely connect to multiple servers, then executes commands in batches, and finally returns the command execution result. This is the simplest prototype of Ansible, Puppet, and other tools. Everyone who is doing O M should know about it. Body multi_task.py
#_*_coding:utf-8_*_import multiprocessingim
Let the code inserted into the innerHTML script run during ajax programming, we often need to assign the page content obtained by xmlhttp to a container (such as p, span, or td) through innerHTML, but there is a problem here, that is, if the page content we will assign to innerHTML contains scripts, these scripts, whether external scripts or internal
= yessetcharset = "UTF-8
4. Mail sending test (-s mail title,-a table with attachments)# Echo "Mail content 123456" | mutt-s "mail Title Test mail"-a/scripts/test.txt fuquanjun@xxxx.com
The following error message is displayed:
Msmtp: account default not found: no configuration file available
An error occurred while sending the mail. The sub-process has exited 78 ().
This email cannot be sent.
Solution:
Use msmtp to send a test:/usr/local/msmtp/bin/m
In ajax programming, we often need to assign the page content obtained by xmlhttp to a container (such as div, span, or td) through innerHTML, but there is a problem here, that is, if the page content we will assign to innerHTML contains scripts, these scripts, whether external scripts or internal scripts, may not be e
This problem may be insignificant or even negligible in some cases, but sometimes it is very serious, and it is likely that our program will not get the expected results. Therefore, we need to solve this problem.If you have read MSDN, you will find that not all scripts inserted into innerHTML cannot be executed. If the script tag of this script contains the defer attribute, IE will correctly execute these scripts
These days I have been studying shell scripts and writing some system load and CPU monitoring script programs. Without nagios monitoring software, as long as the server can access the Internet, you can send an email to remind the administrator of the system load and CPU usage. I. install the shell script and write some system load and CPU monitoring script programs in linux these days. Without nagios monitoring software, as long as the server can acce
As more and more sites evolve into "Web 2.0" apps, the amount of JavaScript increases. this is a performance concern because scripts have a negative impact on page performance. mainstream browsers (I. e ., IE 6 and 7) block in two ways:
Resources in the page are blocked from downloading if they are below the script.
Elements are blocked from rendering if they are below the script.
With more and more websites involving "Web 2.0" applications,
These days I have been studying shell scripts and writing some memory monitoring script programs. Without nagios monitoring software, as long as the server can access the Internet, you can send an email to remind the administrator of the system memory usage.1. Install a mail client msmtp software (similar to a foxmail tool) in linux)1, download installation: http://downloads.sourceforge.net/msmtp/msmtp-1.4.16.tar.bz2? Modtime = 1217206451 big_mirror
Original article: Python scripts as a replacement for Bash utility scripts
From: http://www.oschina.net/translate/python-scripts-replacement-bash-utility-scripts
Translator: enixyu,Showme,Onion noodles
For Linux users, the reputation of command line is quite high. Unlike other operating systems, the command line is a t
content 123456" | Mutt-s "Message header test Message"-a/scripts/test.txttest@126.com
Monitoring system memory using free command:
1, use the free command to view the Linux system memory usage: (in m)
Copy Code code as follows:
# free-m
(Execution results are the following style)
Copy Code code as follows:
Total used free Sharedbuffers Cached
mem:3952 34145380168484
-/+ buffers/cache:2760 1191
SWA
manage the server very conveniently, because we can specify a task schedule to execute a shell script to implement the requirements we want. This is a very proud thing for Linux system administrators. Now the 139 mailbox is very good, e-mail can also send an e-mail message to the user, using this, we can deploy the monitoring shell script on our Linux server, such as network card traffic is abnormal or the server Web server stopped can send a message to the administrator, At the same time sent
This article is from my translation of the Infoq Chinese station, the original address is: Http://www.infoq.com/cn/news/2016/02/gulp-grunt-npm-scripts-part1Cory House is the author of "Building Applications with React and Flux" and "clean code:writing Code for humans", and is also a lecturer on Pluralsight's many courses. He is a vinsolutions software architect who has trained a large number of software developers around the world, primarily in softwa
The roles and responsibilities of system administrators and DBAs are different. But in fact, this difference is usually not obvious. Many IT departments employ employees who can solve database-level and operating system-level problems. Of course, Oracle databases use operating system resources and can closely interact with their environments.
In addition, many system administrators and DBAs find it necessary or convenient to automate jobs related to their work. Software Installation, system reso
When I edited the kernel, the cold blog found an error in make menuconfig. The error code is as follows:
[Root @ fedora/usr/src/kernels/2.6.21-1.3194.fc7-i686] # MakeMenuconfigHostcc scripts/kconfig/lxdialog/checklist. oIn the file containing scripts/kconfig/lxdialog/checklist. C: 24:Scripts/kconfig/lxdialog/dialog. h: 32: 20: Error: Curses. H: No file or dire
The data dictionary in Oracle is a very important part of the database and provides information about the relevant database. It is used by all Oracle users (from application end users, application design developers to database administrators) is a very important source of information. The data dictionary is created by running related database management scripts after the Oracle database is created. When the Oracle Universal Installer is used to create
Assigning values to variablesDefining an integer class using Declare-i[[email protected] scripts]# Aa=5+6[[email protected] scripts]# echo $aa 5+6[[email protected] scripts]# declare-i Aa[[ema Il protected] scripts]# aa=5+6[[email protected] scripts]# echo $AA 11With let, yo
The roles and responsibilities of system administrators and DBAs are different. But in fact, this difference is usually not obvious. Many IT departments employ databases and operating systems.
The roles and responsibilities of system administrators and DBAs are different. But in fact, this difference is usually not obvious. Many IT departments employ employees who can solve database-level and operating system-level problems. Of course, Oracle databases use operating system resources and can clos
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.