注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

涅槃

文档收藏

 
 
 

日志

 
 
 
 

cacti中监控内存的一个好模板  

2013-06-27 13:41:19|  分类: 监控_cacti |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
http://seo.wangxianjin.com/?p=172

There's a simple solution to this, the CDEFs for the graphs are wrong. Seems like the graph now has some more RRD files (MAX in addition to AVERAGE) and therefore the calculation for the CDEFs are wrong ... 

To fix this do the following: 

Go to Management -> Graph Management -> CDEFs 
Select the Memory Used CDEF 
It should display something like "cdef=d,c,-,b,-,a,-,1024,*" 
you'll need to change this, so it states something like: "cdef=g,e,-,c,-,a,-,1024,*" 

In order to get the correct function, you need to look at the graph properties of the memory graph. There are some lines displaying the following: 
Code:
DEF:a="/home/cacti-087b/rra/cachebox_mem_buffers_49.rrd":mem_buffers:AVERAGE \
DEF:b="/home/cacti-087b/rra/cachebox_mem_buffers_49.rrd":mem_buffers:MAX \
DEF:c="/home/cacti-087b/rra/cachebox_mem_cache_50.rrd":mem_cache:AVERAGE \
DEF:d="/home/cacti-087b/rra/cachebox_mem_cache_50.rrd":mem_cache:MAX \
DEF:e="/home/cacti-087b/rra/cachebox_mem_free_51.rrd":mem_free:AVERAGE \
DEF:f="/home/cacti-087b/rra/cachebox_mem_free_51.rrd":mem_free:MAX \
DEF:g="/home/cacti-087b/rra/cachebox_mem_total_52.rrd":mem_total:AVERAGE \
DEF:h="/home/cacti-087b/rra/cachebox_mem_total_52.rrd":mem_total:MAX \
DEF:i="/home/cacti-087b/rra/cachebox_swap_free_53.rrd":swap_free:AVERAGE \
DEF:j="/home/cacti-087b/rra/cachebox_swap_free_53.rrd":swap_free:MAX \
DEF:ba="/home/cacti-087b/rra/cachebox_swap_total_54.rrd":swap_total:AVERAGE \
DEF:bb="/home/cacti-087b/rra/cachebox_swap_total_54.rrd":swap_total:MAX \
CDEF:cdefa=a,0,* \
CDEF:cdefb=g,e,-,c,-,a,-,1024,* \


So the CDEF needs to state the following: mem_used(average) = ( mem_total(average) - mem_free(average) - mem_cache(average) - mem_buffers(average) ) * 1024

  评论这张
 
阅读(1156)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018