首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

Linux Mrtg系统监控

#通过public监控localhost上的192.168.1.68地址流量 Target[eth1_lan]:/192.168.1.68:public@localhost #图片右对齐方式 Options[eth1_lan]:growright #生成图片存放目录 Directory[eth1_lan]:eth1 #网卡最大流量 MaxBytes[eth1_lan]:100000000 #图片Y轴单位数 Kmg[eth1_lan]:K,M,G #Y轴标题 YLegend[eth1_lan]:Bytes per Second #Y轴单位 ShortLegend[eth1_lan]:B/s #接下来是网页上的数据,因为Mrtg需要把生成的图片渲染到网页中,下面这写都是网页上的属性标签 #网页中颜色对应值 Legend1[eth1_lan]:每秒流入量(单位Bytes) Legend2[eth1_lan]:每秒流出量(单位Bytes) LegendI[eth1_lan]:流入 LegendO[eth1_lan]:流出 #网页标题 Title[eth1_lan]:eth1网络流量[流入+流出] PageTop[eth1_lan]:eth1网络流量[流入+流出]

02

setuid与setgid

/etc/crontab文件和crontab -e命令区别 1、格式不同 前者 # For details see man 4 crontabs # Example of job definition: # .—————- minute (0 - 59) # | .————- hour (0 - 23) # | | .———- day of month (1 - 31) # | | | .——- month (1 - 12) OR jan,feb,mar,apr … # | | | | .—- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat # | | | | | # * * * * * user-name command to be executed 后者 #50 1 * * * command 2、使用范围 修改/etc/crontab这种方法只有root用户能用,这种方法更加方便与直接直接给其他用户设置计划任务,而且还可以指定执行shell等等, crontab -e这种所有用户都可以使用,普通用户也只能为自己设置计划任务。然后自动写入/var/spool/cron/usename 3.服务重启 1 /etc/init.d/crond restart 2 service crond restart

01

python学习-python与rrdt

rrdtool(round robin database)工具为环状数据库的存储格式,round robin是一种处理定量数据以及当前元素指针的技术。rrdtool主要用来跟踪对象的变化情况,生成这些变化的走势图,比如业务的访问流量、系统性能、磁盘利用率等趋势图,很多流行监控平台都使用到rrdtool,比较有名的为Cacti、Ganglia、Monitorix等。更多rrdtool介绍见官网http://oss.oetiker.ch/rrdtool/。rrdtool是一个复杂的工具,涉及较多参数概念,本节主要通过Python的rrdtool模块对rrdtool的几个常用方法进行封装,包括create、fetch、graph、info、update等方法,本节对rrdtool的基本知识不展开说明,重点放在Python rrdtool模块的常用方法使用介绍上。

01

扫码

添加站长 进交流群

领取专属 10元无门槛券

手把手带您无忧上云

扫码加入开发者社群

相关资讯

热门标签

活动推荐

    运营活动

    活动名称
    广告关闭
    领券