Nagios Monitors XenServer Traffic

Source: Internet
Author: User

Cat check_xen_pif.sh#!/bin/shcount=0uuid_list= ' xe bond-list | grep master |  awk  ' {print $4} ' #get  io_read_kbs paramfor uuid in  $uuid _listdoio_ read[$count]= ' xe pif-param-get param-name=io_read_kbs uuid= $uuid ' #echo  ${io_read[$count]}         let count=count+1done#get io_write_kbs  paramcount=0for uuid in  $uuid _listdo        io_write[$ count]= ' xe pif-param-get param-name=io_write_kbs uuid= $uuid ' #         echo ${io_write[$count]}        let count= count+1donecount=0performance1= "performance2=" "while [  $count  -lt ${#io_read [@]} ] Doperformance1= "$performance 1 bond${count} (r,w):  ${io_read[$count]}kb,${io_write[$count]}kb;" Performance2= "$performance 2 bond${count}_io_read_kbs=${io_read[$count]};1500;2000;0;10000;bond${count}_io_write_kbs=${io_write[$count]};1500;2000 ; 0;10000; " let count=count+1doneecho  "$performance 1 |  $performance 2" exit 0


This article from "Month Child" blog, declined reprint!

Nagios Monitors XenServer Traffic

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.