Python exports monitored service contacts and other information to an excel table based on the nagios configuration file
A few times ago, I had to count the services monitored by nagios to the table. I thought that if every change was required to
Generally, for processes that require a large amount of CPU computing, the higher the front-end pressure, the higher the CPU utilization. However, for I/O network-intensive processes, even if there are many requests, the CPU of the server may not be
I. Regular Expression Introduction
Basic metacharacters (basic regular expressions): character matching :. match any character except the line break [] character group metacharacters. If the metacharacters are within [], it will lose special meaning
As a LinuxSA, daily operations in many places will use the script, and the server's IP generally use static IP or Mac binding, of course, the latter is relatively cumbersome to operate, while the former we can set the hostname, IP information,
SHELL notes 1. View the size of a file or directory ls du2. View status Stat file name3, the system itself, usually uppercase4. System variables are viewed by set or declare instructions5. UDV variable (user defined variable)User creation and
I. Viewing file time and related commands1. Stat View file time[Email protected] ~]# stat install.log File: "Install.log" size:33386 blocks:80 IO block:4096 General file device:fd00h/64768d inode:7692962 links:1access: (0644/-rw-r-
CPU usage is actually the CPU resource that your program runs on, indicating that your machine is running a program at some point in time. Higher usage means that your machine runs a lot of programs at this time, whereas lessThe top command is a
21st Chapter SED AdvancedN: Add the next line in the data flow to create a multiline group (multiline) to process.D: Delete the first row in a multiline group.P: Prints the first row in the multiline group.Sed '/header/{n; d} ' Data.txtFirst match
#!/bin/sh#auto Change IP netmask Gateway scripts#wugk 2012-12-17Cat ++++++++ automatically modifies IP and host name information +++++++++Ethconf=/etc/sysconfig/network-scripts/ifcfg-eth0Hosts=/etc/hostsNetwork=/etc/sysconfig/networkdir=/data/backup/
Shell Features:History is saved in ~/.bash_hostory and retains 1000 records: defined inEcho $HISTSIZE!: Previous Command!$: Last parameter of previous command! 950: No. 950 order!c: The most recent command in history that starts with CTAB: Command
Experience the difficulties and experiences:1. In the course of operation, the Youdao job is to create a opt/forloutest file, and I have established aOpt file, cd opt, but show not a directory, by reading "Linux embedded" this book using mkdir to
Function: Automatically detect if there are not partitioned data disks, format new data disks and mount
Solved what problem: one-click to detect whether there are not partitioned data disks, and can be formatted and automatically mounted,
As a Linux SA, many parts of the day-to-day operation of the script, and the server's IP is generally static IP or Mac binding, of course, the latter comparison is relatively cumbersome, and the former we can set the host name, IP information,
How to Use awk to output fields and columns in text
First, we need to know that awk can automatically separate the input rows into several fields. Each field is a group of characters separated from other fields by an internal field separator.
If you
Shell programming in Linux: for Loop statement, linuxshell
For Loop statements for shell programming in Linux.
1. The for loop statement is similar to the while LOOP, but the for loop is mainly used for a loop with a limited number of executions,
It is estimated that the node of the easyui tree has its own attributes (ID, text, iconcls, checked, state, attribute, target ). However, if you want to assign values to instances using HTML, these attributes cannot be fully implemented. Attribute
Environment: dwr3 + jsp
During development, I really don't want dwr to bring up alter. I only need to print the error log. The client does not need alert to generate an error or a server error has occurred. such a prompt does not require alert to
Rs:record Separator, Record delimiterOrs:output record separate, output current record delimiterFs:field Separator, Field delimiterOfs:out of field Separator, output fields delimiterPs:rs, ORS, FS, OFS's English explanation is by no means the case,
In general, the sys. stdout function is similar to the file output function fprintf in C ++.
Next, let's take a look at the Code:
>>> Import sys >>> temp = sys. stdout >>> sys. stdout = open ('e: \ pythonCode \ 1.txt ', 'w') # Note: dual \> print 1
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.