仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 703|回复: 8
打印 上一主题 下一主题

[shell编程] 给大家带来反省指定历程内存利用情形的nagios剧本

[复制链接]
蒙在股里 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-1-14 20:18:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!因为最近线上情况的某些历程老是内存溢出,以是必要增加一下关于某些历程的内存利用情形监控,搜到的他人的剧本多数不太中意,因而本人写了个,代码以下:


<divstyle="text-transform:none;background-color:#ffffff;text-indent:0px;margin:0px;font:14px/28px宋体,arialnarrow,arial,serif;letter-spacing:normal;color:#555555;word-spacing:0px;-webkit-text-stroke-width:0px;padding:0px;"><divstyle="background-image:none!important;box-sizing:content-box!important;border-bottom:0px;position:relative!important;text-align:left!important;border-left:0px;padding-bottom:0px!important;line-height:1.1em!important;background-color:white!important;font-style:normal!important;margin:0.3em0px;outline-style:none!important;outline-color:invert!important;padding-left:0px!important;outline-width:0px!important;width:720px;bottom:auto!important;padding-right:0px!important;font-family:consolas,bitstreamverasansmono,couriernew,courier,monospace!important;float:none!important;font-size:1em!important;vertical-align:baseline!important;overflow:visible!important;border-top:0px;top:auto!important;right:auto!important;font-weight:normal!important;border-right:0px;padding-top:0px!important;left:auto!important;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-left-radius:0px;border-bottom-right-radius:0px"id="highlighter_191351"class="syntaxhighlighterbash">
[size=1em]1

[size=1em]2

[size=1em]3

[size=1em]4

[size=1em]5

[size=1em]6

[size=1em]7

[size=1em]8

[size=1em]9

[size=1em]10

[size=1em]11

[size=1em]12

[size=1em]13

[size=1em]14

[size=1em]15

[size=1em]16

[size=1em]17

[size=1em]18

[size=1em]19

[size=1em]20

[size=1em]21

[size=1em]22

[size=1em]23

[size=1em]24

[size=1em]25

[size=1em]26

[size=1em]27

[size=1em]28

[size=1em]29

[size=1em]30

[size=1em]31

[size=1em]32

[size=1em]33

[size=1em]34

[size=1em]35

[size=1em]36

[size=1em]37

[size=1em]38

[size=1em]39

[size=1em]40

[size=1em]41

[size=1em]42

[size=1em]43

[size=1em]44

<divstyle="background-image:none!important;box-sizing:content-box!important;border-bottom:0px;position:relative!important;text-align:left!important;border-left:0px;padding-bottom:0px!important;line-height:1.1em!important;font-style:normal!important;margin:0px;outline-style:none!important;outline-color:invert!important;padding-left:0px!important;outline-width:0px!important;width:auto!important;bottom:auto!important;padding-right:0px!important;font-family:consolas,bitstreamverasansmono,couriernew,courier,monospace!important;float:none!important;font-size:1em!important;vertical-align:baseline!important;overflow:visible!important;border-top:0px;top:auto!important;right:auto!important;font-weight:normal!important;border-right:0px;padding-top:0px!important;left:auto!important;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-left-radius:0px;border-bottom-right-radius:0px"class="container">
[size=1em]#!/bin/bash

[size=1em]HELP(){

[size=1em]echo"Usage:$0-p/var/run/pidfile-wused%-cused%"

[size=1em]echo"Exam:$0-p/var/run/pidfile-w85-c90"

<divstyle="background-image:none!important;box-sizing:content-box!important;border-bottom:0px;position:static!important;text-align:left!important;border-left:0px;padding-bottom:0px!important;line-height:1.1em!important;background-color:white!important;font-style:normal!important;margin:0px;outline-style:none!important;outline-color:invert!important;padding-left:1em!important;outline-width:0px!important;width:auto!important;bottom:auto!important;padding-right:1em!important;font-family:consolas,bitstreamverasansmono,couriernew,courier,monospace!important;float:none!important;font-size:1em!important;vertical-align:baseline!important;overflow:visible!important;border-top:0px;top:auto!important;right:auto!important;font-weight:normal!important;border-right:0px;padding-top:0px!important;left:auto!important;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-left-radius:0px;border-bottom-right-radius:0px"class="linenumber5index4alt2">
老尸 该用户已被删除
沙发
发表于 2015-1-15 21:02:36 | 只看该作者

给大家带来反省指定历程内存利用情形的nagios剧本

让我树立了很大的信心学好这门课程,也学到了不少专业知识和技能。?
小女巫 该用户已被删除
板凳
发表于 2015-1-24 23:52:23 | 只看该作者
掌握硬件配置,如显卡,声卡,网卡等,硬件只要不是太老或太新一般都能被支持,作为一名Linux系统管理员建议多阅读有关硬件配置文章,对各种不支持或支持不太好的硬件有深刻的了解。
透明 该用户已被删除
地板
发表于 2015-2-2 19:05:27 | 只看该作者
熟悉并掌握安装Linux,安装是学习的前提。目前较常见的安装方法有二种:
再见西城 该用户已被删除
5#
发表于 2015-2-8 06:31:18 | 只看该作者
尽量不要提问纯属是扯蛋.学习Linux特别是自己一个人初学入手的时候没人教很困难.当然如果可以的话平时多去买些Linux书...对学习Linux很有帮助.
老尸 该用户已被删除
6#
发表于 2015-2-25 02:17:41 | 只看该作者
一定要学好命令,shell是命令语言,命令解释程序及程序设计语言的统称,shell也负责用户和操作系统之间的沟通。
深爱那片海 该用户已被删除
7#
发表于 2015-3-7 19:09:55 | 只看该作者
其中不乏很多IT精英的心血。我们学透以后更可以做成自己的OS!?
乐观 该用户已被删除
8#
发表于 2015-3-15 19:37:12 | 只看该作者
其次,Linux简单易学,因为我们初学者只是学的基础部分,Linux的结构体系非常清晰,再加上老师循序渐进的教学以及耐心的讲解,使我们理解起来很快,短期内就基本掌握了操作和运行模式。
莫相离 该用户已被删除
9#
发表于 2015-3-22 04:41:47 | 只看该作者
上课传授的不仅仅是知识,更重要的是一些道理,包括一些做人的道理,讲课时也抓住重点,循序渐进,让同学理解很快;更可贵的是不以你过去的成绩看问题.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-5-12 02:40

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表