cassandra monitoring scripts

Want to know cassandra monitoring scripts? we have a huge selection of cassandra monitoring scripts information on alibabacloud.com

Shell scripts-monitoring and email alerts

) ipaddr:$ (ifconfig|awk 'Nr==2{print $}') MSG: High Memory High! Already used the ${mem}%" Echo$msg/usr/bin/pymail.py $msgfisystemctl status Nginxif(($?! =0)) Thenmsg="time:$ (date +%f_%t)hostname:$ (hostname) ipaddr:$ (ifconfig|awk 'Nr==2{print $}'Msg:nginx Process exception please check! " Echo$msg/usr/bin/pymail.py $msgfiSystemctl Status NFSif(($?! =0)) Thenmsg="time:$ (date +%f_%t)hostname:$ (hostname) ipaddr:$ (ifconfig|awk 'Nr==2{print $}'Msg:nfs Proc

Linux system resources and account security monitoring scripts

Tag:linuxlocal resource #!/bin/bash#createdbyliteron2014/7/11path=/opt/jdk1.6.0_45/bin:/usr/local/sbin:/usr/ Local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/binexportpath#cpuinfoid_cpu= ' top-b-d 2-n10|grepcpu|grep-vgrep|cut-d ', ' -f4|tr-d-c ' 0-9.\n ' |sort-n| Head-n1 ' use_cpu= ' echo "100-$id _cpu" NBSP;|NBSP;BC echo-e "\e[32m*********** \e[0m "echo-e" \e[1;42mcpuinfo\e [0m "echo-e" if ($id _cpuRun the sample (CPU, memory, swap, disk, password table information):650) this.width=650; "src="

Using bash scripts for process performance monitoring

Monitor a Linux process with a bash script implementation.Monitor the process using the PS command, and use the Loop plus sleep time for continuous monitoring.Usage:PSMONITOR.SH-P [PID]-D [Interval]-n [Statistics count]Parameters:-p Monitored process ID-D read performance data interval-N statistics, up to the number of times, automatic exit#!/bin/bashinterval=0count=0pid= "While getopts" p:d:n: "Argdo case $arg in p) pid= $OPTARG echo" pid : $pid "

Shell Common monitoring scripts

1. CPU Idle ScriptTop-b-n1 |grep ' Cpu ' |awk ' {print $} ' |sed ' s/%//' |sed ' s/id,//'Assigning values to variablesCpu_id= ' top-b-n1 |grep ' Cpu ' |awk ' {print $} ' |sed ' s/%//' |sed ' s/id,//'Echo $cpu _idIf you only intercept integers, the last sed can use cut-f 1-d '. ' To intercept the first partition with a decimal pointYou can use the If parameter to compare the operator, send the message has the corresponding script, you can judge the load.Shell Common

Total Pages: 4 1 2 3 4 Go to: Go

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.