• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
导航菜单
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • windows
  • 服务器硬件
  • 服务器运维
  • 云计算
  • 虚拟化
  • IIS教程
  • Linux
  • Apache
  • Ftp
  • DNS
  • Nginx
您的位置:首页 > 服务器 >windows > ganglia监控部署学习笔记分享

ganglia监控部署学习笔记分享

作者:网友 字体:[增加 减小] 来源:互联网

本文主要包含ganglia监控部署学习笔记分享等服务器相关知识,网友希望可以进行参考

本文章来给各位同学介绍一下关于ganglia监控部署学习笔记分享,希望些文章对各位同学学习会有一点帮助哦。

最近在捣鼓研究ganglia,汇总分享一些可能遇到的问题:


1.为什么编译ganglia的时候加了with-python还是没有lib/ganglia的目录下出现modpython.so?

这个问题主要是注意两点:

(1)with-python后面跟的是python的二进制路径,比如:

./configure --with-python=/usr/local/python/bin/python2.7
(2)python的libpython.so 必须软链到系统可识别的动态库路径下,就算在/et/ld.so.conf下指定了python的so路径都不行。例如
ln -s /usr/local/python/lib/libpython2.7.so /usr/local/lib/libpython2.7.so

软链后也要在/etc/ld.so.conf 下把/usr/local/python/lib 添加进去。

 

 


2. ganglia 的很多扩展插件在最新的ganglia的tar包下已经有封装了,直接拿来用就好了,不需要到网上到处找。路径就在解压缩后的路径下,例如:

ganglia-3.5.0/gmond/moduels 这个目录是用来告诉加载perl,python,php的so扩展。提供如下三个脚本插件的运行环境和相关配置。

ganglia-3.5.0/gmond/perl_moduels perl语言监控插件脚本

ganglia-3.5.0/gmond/php_moduels  php语言监控插件脚本

ganglia-3.5.0/gmond/python_moduels python语言监控插件脚本

 


具体的配置含义可以看官方的文档http://sourceforge.net/apps/trac/ganglia/wiki/ganglia_gmond_python_modules,

CchecklistTo confirm that your Ganglia installation has Python support correctly setup, double check the following:

gmond.conf has a line which reads something along the lines of include ("/etc/ganglia/conf.d/*.conf"). This is the directory where you should place configuration files for your Python modules as.pyconf files
modpython.conf exists in /etc/ganglia/conf.d - it contains a directive which will include the pyconf files
You have modpython.so in /usr/lib{64}/ganglia
The directory /usr/lib{64}/ganglia/python_modules exists. This is the directory where Python modules should be placed as .py files.
These things should be automatically done for you if you installed Python modules support via binary packages. If that is not the case please file a bug at the distribution's corresponding bug tracker.

Ubuntu 10.10 notesUbuntu 10.10 does not come with Python support for gmond fully setup. You will need to:

Create /etc/ganglia/conf.d/modpython.conf and make it look like https://sourceforge.net/apps/trac/ganglia/browser/trunk/monitor-core/gmond/modules/conf.d/modpython.conf.in - for instance:
modules {
  module {
     name = "python_module"
     path = "/usr/lib(64)/ganglia/modpython.so"
     params = "/usr/lib(64)/ganglia/python_modules"
  }
}

include('/etc/ganglia/conf.d/*.pyconf')Create the directory /usr/lib(64)/ganglia/python_modules
Ensure that /usr/lib(64)/ganglia/modpython.so already exists (Ubuntu 10.10 gets this one right when you install ganglia via apt)

分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

相关文章

  • windows服务器asp木马删除不了解决办法
  • windows storage server 2008创建iscsi磁盘
  • ESC键功能:你可能不知道的五个妙用
  • Windows 2008 R2 SP1 更新后远程登录RDP 失败
  • LVS算法,模型及ipvsadm工具的使用
  • windows/Linux查看端口占用命令
  • WINDOWS象2003服务器定时自动重启任务计划
  • DirectX:内存、显存太大引起的问题
  • Windows 系统查看端口占用以及解决端口占用
  • Windows 2003服务器怎么修改管理员密码

文章分类

  • windows
  • 服务器硬件
  • 服务器运维
  • 云计算
  • 虚拟化
  • IIS教程
  • Linux
  • Apache
  • Ftp
  • DNS
  • Nginx

最近更新的内容

    • Windows Server 2008 安装 IIS 7.0图文详解
    • Windows2003安装和使用FTP服务器(权限配置)
    • 浅淡系统页面文件和虚拟内存的关系
    • DirectAdmin 日志路径各种系统中查看方法
    • 如何通过组策略将域用户设置为本地管理员账户
    • 上传文件提示413 Request Entity Too Large错误
    • Mysql 分区技术
    • 谈谈重复数据删除
    • xampp修改mysql默认密码详解
    • iis配置php无法上传文件解决办法

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有