1. Check network connectivity through timed sending and receiving email
Copy codeThe Code is as follows: #/bin/bash
Echo "Daily test mail"> state.txt
Mail-s Server_State abc@jbxue.com Rm-df./state.txt
~Crontab-eAdd the following task10 07 ***/root/checkNKmail Time-sharing day-month week
2. timed detection of network status sent by email
Checkserverstat script con
:8.8.8.8″http://www.miotour.com-v-I.Curl feedback time, such as connection time, download time and other informationCurl-w%{time_connect}:%{time_starttransfer}:%{time_total}-s-o/dev/nullSave a file to your hard disk, named file.htmlCurl-o file.html http://www.miotour.com/index.htmlDownload index.html file,-O is uppercase letterCurl-o http://www.miotour.com/index.htmlCurl submits user name and passwordCurl Http://name:[email protected]Curl-u name:passwd http://www.miotour.com-B "Cookie" This para
When the number of TCP connections is very large, the current internal IP, the connection of the external IP is counted[[emailprotected]account_tcp]#cataccount_tcp.sh#!/bin/bash# Statistics the current network connection situation Netstat -na|awk '/^tcp/{s[$6]++}end{for (keyins) Printkey,s[key]} ' > /root/account_tcp/state.txt# statistics localaddress TCP connection number netstat-na|awk '/^tcp/' |awk-vfs= "[:]+" ' {print$4} ' |sort|uniq-c |sort-n>/r
Python obtains the code for CPU usage, memory usage, and network usage status, and pythoncpu
Since psutil has been updated to version 3.0.1, the latest code is as follows:
#!/usr/bin/env pythonimport osimport timeimport sysimport atexitimport psutil#print "Welcome,current system is",os.name," 3 seconds late start to get data"time.sleep(3)line_num = 1#function of Get cpu statedef getCPUstate(interval=1): re
The complete error prompt is:An error occurred while verifying the view status MAC. If this application is hosted by a network farm or cluster, make sure that the
If you encounter such a problem today, record the solution as usual to prevent you from encountering such a problem in the future.
This problem occurs after google. The solutions provided by many posts are as follows:
1: Modify the @ page attr
Tags: Publicstaticvoidmain (String[]args) throwsthrowable{/*1, before running the program, To the CMD console to see if Netstat has a database connection c:\>netstat-nptcp|grep1521*/ Oracle.jdbc.driver.OracleDriver.class.newInstance (); Connectioncon=drivermanager.getconnection ( "JDBC:ORACLE:THIN:@192.168.10.10:1521:ORCL", "H2do", " H2do "); System.in.read ();/*2, io blocking, to cmd console view netstatc:\>netstat-nptcp|grep1521tcp 192.168.10.192:63198192.168.10.10:1521 Established*/con.clo
D3 is a chart class library based on JS and SVG, which has rich examples. I wanted to find a ready-made one to express the system status and network traffic transmission. Unfortunately, this one that is the closest to the requirement only supports the tree structure using d3.js to visualise hierarchical classification, so I made some changes myself. effect:
Features:
Supports both tree and mesh Struct
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.