collectd-x.y.z.tar.bz2 安装官方文档

浏览器插件利器--allWebPluginV2.0.0.18-alpha版发布 它将现有ActiveX控件直接嵌入浏览器,实现插件加载、界面显示、接口调用、事件回调等。支持Chrome、Firefox、Edge、360等浏览器,接口调用友好、集成方便。为用户提供“信息化系统 + allWebPlugin + 插件 + 浏览器”的解决方案。 阅读详情

First steps

This short and incomplete article should guide the novice user through the process of getting collectd to work. Pointers to the manpages are provided where appropriate.

Since no OS is like the other, I'll talk about my Linux distribution, Debian, here. So the location of some files or commands to install packages may differ for your system.

Contents

 [hide] 

Getting the daemon

There are currently two "major versions" of collectd: Version 4 and version 5. This is the first number of the full version number of a release. Version 4 is outdated and should not be used for new setups anymore, so make sure you get a version that starts with "5.*".

To get the executable binaries, you have the choice between two possibilities: Find a binary package or compile the source yourself. We strongly recommend to use a binary package unless you have very specific needs.

Get a binary package

For many Linux distributions there are binary packages. Please make sure not to use the old version 4 (Debian Squeeze ships version 4.10.1, for example). Pointers to available binary packages can be found on the download page.

Compiling the sources

If there is no binary package for your distribution, or the one existing is outdated, you can compile the sources. For that you will need to install the usual C-compiler (most likely called "gcc"), linker, and so on. Debian users can simply install the build-essential package:

# apt-get install build-essential 

The daemon itself doesn't depend on any libraries, but the plugins that collect the actual values will. What libraries are needed for which plugins is documented in the README file. Install the necessary libraries:

# apt-get install librrd2-dev libsensors-dev libsnmp-dev ...

After installing the build dependencies, you need to get and unpack the sources:

# cd /tmp/
# wget http://collectd.org/files/collectd-x.y.z.tar.bz2
# tar jxf collectd-x.y.z.tar.bz2
# cd collectd-x.y.z

Now configure the sources with the usual:

# ./configure 

After the configure script is done it will display a summary of the libraries it has found (and not found) and which plugins are enabled. Per default, all plugins whose dependencies are met are enabled. If a plugin you want to use is missing, install the required development package and run configure again.

Last but not least: Compile and install the program. Per default it will be installed to /opt/collectd. If you prefer another directory, call the configure script with the --prefix option.

# make all install
# cd /opt/collectd/

Configuration

The configuration will lie in <prefix>/etc/collectd.conf. It's manual page is collectd.conf(5). Open the file and pay particular attention to the LoadPlugin lines.

# vim etc/collectd.conf

Loading plugins

This section assumes Version 4.7 or later.

If you built the daemon from source, the configure script tries hard to provide you with a small, working default configuration. The configuration can usually be found in etc/collectd.conf.

For each plugin, there is a LoadPlugin line in the configuration. Almost all of those lines are commented out in order to keep the default configuration lean. However, the number of comment characters used is significant:

  • Lines commented out with two hash characters ("##") belong to plugins that have not been built. Commenting these lines in will result in an error, because the plugin does not exist.
  • The LoadPlugin lines commented out using one hash character ("#") belong to plugins that have been built. You can comment them in / out as you wish.
  • By default the following plugins are enabled: CPU, Interface, Load, and Memory.

By default exactly one write plugin is enabled. The first plugin available will be taken in this order: RRDtool, Network, CSV.

Likewise only one log plugin is enabled. If available, the SysLog plugin will be enabled, otherwise the LogFile plugin is used.

If you installed a binary package, the package vendor has hopefully enabled only a small number of standard plugins. Please see the binary package's documentation to find out which other plugins are included and can be enabled. There's a wiki page containing a table of all plugins.

The following is a list of the very basic plugins and a short description:

Table of basic plugins and short descriptions
NameTypeDescription
LogFileloggingWrites log messages to a file or standard output
SysLogloggingWrites debug and status information to syslog.
RRDtooloutputWrites data to RRD files
CSVoutputWrites data to CSV files
CPUinputCollects CPU usage
MemoryinputCollects memory usage
InterfaceinputCollects traffic of network interfaces

Setting options

The Interval setting controls how often values are read. You should set this once and then never touch it again. If you do, you will have to delete all your RRD files or know some serious RRDtool magic!

To have the daemon resolve the local fully qualified host-name (FQDN) and use this as the name of the current instance, set the FQDNLookup option to true. The system's host-name must be set correctly for this to work. Using this method is recommended.

Some plugins take an additional configuration. Of interest here are the LogFile and RRDtool plugins. Before setting anything explicitly, please read the relevant part of the collectd.conf(5) manpage. There are no undocumented options. The RRDtool plugin is especially prone of mis-configuration, please read the manual page especially careful when configuring this plugin.

Starting the daemon

If you're done configuring, you need to (re-)start the daemon. If you installed a binary package there should be an init-script somewhere. Under Debian, the command would be:

# /etc/init.d/collectd restart

If your system (Fedora, ArchLinux, OpenSUSE, etc.) is using systemd for managing services:

# systemctl start collectd.service

and to enable the service:

# systemctl enable collectd.service

Alternatively you can start the daemon "by hand". This is done by executing:

# /opt/collectd/sbin/collectd

or (if you are using a binary package):

# /usr/sbin/collectd

Some plugins require root privileges to work properly. If you're missing graphs and/or see error messages that indicate insufficient permissions, restart collectd as root.

The daemon should now collect values using the "input" plugins you've loaded and write them to files using the "output" plugin(s). Any problems or interesting behavior is reported using the "log" plugin(s).

Congratulations, as far as collectd is concerned, you're all set! :)

Creating graphs

First off: It is not collectd's focus to generate graphs! Other projects offer this. The focus is to collect the values and write it to files or send it to another host over a network. But since we have to visualize the data somehow, too, we have been nice enough to throw a script that's good enough for us into the contrib/ directory. This script, however, is not part of collectd and not supported by us. It just happens to work sometimes.

That being said, here's how it's installed: In the contrib/ directory (or the directory /usr/share/doc/collectd/examples/ if you installed the Debian package) you will find a directory named collection3. This directory holds all the necessary files for the graph generation, grouped again in subdirectories. Copy the entire directory somewhere, where your web server expects to find something.

# cp -r contrib/collection3 /var/www/
# cd /var/www/collection3/

In the subdirectory bin/ are the CGI scripts, which must be executed by the web-server. In the share/ subdirectory, there are supplementary files, such as style-sheets, which must not be executed. Since execution of files can't be turned off in directories referenced via ScriptAlias, using the standard cgi-bin directory provided by most distributions is probably problematic.

In some of the subdirectories, you will find files named .htaccess. They (try to) configure the web server, so that the appropriate files are executed, others are denied to visitors and so on. Please make sure to set the Apache option AllowOverride to an appropriate value or move the configuration to the main Apache configuration.

The script is written in Perl and requires a number of Perl modules to be installed. Many of them are shipped with the standard Perl distributions, but some you will need to install yourself. Here's a (hopefully complete) list:

  • RRDs
  • Config::General
  • HTML::Entities (Debian package libhtml-parser-perl)
  • Regexp::Common
# sudo apt-get install librrds-perl libconfig-general-perl libhtml-parser-perl  libregexp-common-perl


If everything worked out alright, you can now browse your graphs at http://localhost/collection3/bin/index.cgi or wherever you put the script. If you get an error, check Apache's error log. Common errors include wrong permissions on the files in bin/ (they need to be executable) and etc/ (needs to be readable by the web server). For web server specific problems, please refer to this how-to on CGI scripts.

There are also a couple of further, third-party front-ends available with a different focus each. Have a look at the list of front-ends for an overview.

Next Steps

The following steps are optional and depend on your infrastructure and the kind of setup you are about to build.

Good luck and have fun ;)

Categories: 

源码安装collectd系统监控和统计工具 1、介绍 collectd 是一个守护(daemon)进程,用来收集系统性能和提供各种存储方式来存储不同值的机制。比如以 RRD 文件形式。当系统运行和存储信息的时候,Collectd 会周期性统计系统的相关统计信息。那些信息可以用来找到当前系统性能瓶颈。 2、安装 1) 下载安装包,下载地址:https://collectd.org/documentation.shtml 2) 解压:tar z... 阅读详情

相关推荐

collectd_exporter:服务器通过HTTP POST接受收集的统计信息,并通过HTTP导出以供Prometheus使用

集合出口商 对于出口 。 它接受收集的发送的的,以及的发送的HTTP POST通过JSON格式的JSON度量标准,并将其转换并公开以供Prometheus使用。 该导出器对于从现有收集的设置中导出度量标准以及核心Prometheus导出器(如未涵盖的度量很有用。 二进制网络协议 collectd的网络插件使用轻量级二进制协议将指标从一个实例发送到另一个实例。 要使用collectd_exporter消耗这些数据包,首先配置collected将这些度量发送到适当的地址: LoadPlugin network <Plugin> Server "prometheus.example.com" "25826" </Plugin> 然后用启动collectd_exporter --collectd.listen-address=":25826"开始消耗和导出这些指标。 JS

collectd使用

1.什么是collectd collectd是一款基于C语言研发的插件式架构的监控软件,它可以收集各种来源的指标,如操作系统,应用程序,日志文件和外部设备,并存储此信息或通过网络提供。这些统计数据可用于监视系统,查找性能瓶颈(即性能分析)并预测未来的系统负载(即容量规划)。官方文档:http://collectd.org/documentation.shtml2.安装collect...

acr7720的博客 672

xfce-4.10.tar.bz2

由于xfce官网下载速度太慢故上传一个共享

【转】collectd的部署

以版本三为例,因为版本四有太多的改动wget http://collectd.org/files/collectd-3.11.7.tar.gzcd /root/collectd-3.11.7./configure --prefix=/opt/collectd --with-rrdtool=/usr/local/rrdtool/ && make && make ins...

weixin_30466039的博客 289

collectd-5.8.1.tar.bz2

collectd-5.8.1.tar.bz2用来收集主机的监控信息,包括cpu、内存、网络、磁盘、负载等等

WebKit-r174650.tar.bz2

WebKit-r174650编译所需要的源码,具体编译过程可以参考我的博文

T113 Buildroot 裁剪Flash Memory

查看进程列表sh-4.4# psPID USER COMMAND 1 root init 2 root [kthreadd] 3 root [rcu_gp] 4 root [rcu_par_gp] 5 root [kworker/0:0-eve] 6 root [kworker/0:0H-kb] 7 root [kworker/u4:0-ev] 8 root [mm_percpu_wq

szembed的博客 2612

collectd-5.4.2.tar.gz

collectd

ubuntu部署collectd小例子

首先是编译源: sudo apt-get install build-essential 接着安装一些必要的包,在后期安装必要插件时可能还需要一些包,参见http://collectd.org/wiki/index.php/First_steps#Creating_graphs: sudo apt-get install librrd2-dev libsensors-dev libsnmp-

吴静的blog 4291

lnx64_profiler_plugins.tar.bz2

lnx64_profiler_plugins.tar.bz2

西门子TM PosInput1模块SSI编码器配置与速度测量实战

本文详细介绍了西门子TM PosInput1模块配置SSI绝对值编码器的实战步骤,涵盖硬件组态、工艺对象配置、编程实现与速度测量优化。重点解析了高分辨率编码器的数值处理技巧和常见调试问题,帮助工程师快速实现高精度位置与速度检测,提升自动化项目效率。

emacs5lisp的博客 340

linux交叉编译VLC的webPlugin--npapi-vlc/npapi-vlc的交叉编译

linux交叉编译npapi-vlc1.下载依赖包和安装依赖$ sudo apt-get install -y gcc-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64-tools $ sudo apt-get install -y lua5.2 libtool automake autoconf autopoint make gettext $ sudo ap

勿忘初心,方得始终 2580

深入排查127.0.0.1拒绝连接:从端口占用到Tomcat服务启动的完整解决方案

本文针对开发者访问127.0.0.1时遭遇“拒绝连接”的常见问题,提供了一套完整的排查与解决方案。文章从端口占用检查入手,详细讲解了使用netstat命令识别进程,并深入分析了服务监听地址、IPv6配置、防火墙以及Tomcat服务安装与启动等核心环节。通过实战演练,指导读者系统性地解决从网络层到应用层的各类连接问题,最终确保本地服务成功运行并可通过本地回环地址正常访问。

weixin_29279047的博客 3205

守护进程collectd工具中python插件不可用解决办法

笔者在Redhat、ubuntu两个系统中都用collectd-5.7.2.tar.bz2的包装了collectd工具,系统自带python,其中Redhat自带python2.6,ubuntu自带python2.7。在collectd装好以后,进入/opt/collectd/etc/collect.conf配置文件中,可以看到##LoadPlugin python,这代表python插件不可用,

musouyanlei的博客 656

【技术笔记】Cadence实现Orcad与Allegro软件交互式布局设置

为了达到原理图和PCB两两交互的功能,需要在ORCAD中将允许交互进行勾选,这样才可以,执行菜单命令Options-Preference后,我们打开参数界面,进行选择Miscellaneous菜单,将交互模式进行勾选。在做硬件pcb设计的时候,原理图选中一个元器件,希望可以再PCB中可以直接选中。对于网表必须是导入第一方网表,第三方是无效的。在allegro中使能/关闭交互式布局功能。

weixin_50499137的博客 2082

Scratch 3.0角色控制避坑指南:为什么你的键盘移动总卡顿?

本文深入剖析了Scratch 3.0中角色移动卡顿的根本原因,指出依赖`当按下`事件积木的局限性。通过对比分析,推荐采用`重复执行`结合`如果<键被按下?>`的循环控制方案,并引入速度变量模拟惯性,从而实现流畅、实时的键盘控制优化,显著提升游戏操作体验。

dd012的博客 1015

系统性能监控利器-collectd详解

系统监控是作为网站运维、网站性能优化必不可少的工具,目前比较常用的有Nagios、Cacti以及Zabbix,笔者用过后两个,其中Zabbix确实很强大,web界面操作也比较不错。不过这几个工具安装起来那可并不简单,其中Nagios的复杂那可是出了名的。 插播:关于服务器端监控命令请参考前文《Linux服务器性能追踪以及服务器监控常用命令》 笔者近期一直在尝试用Collectd,一款性

第27号专栏 7509

FPGA远程升级避坑指南:用AXI Quad SPI IP读写N25Q128 Flash的完整流程

本文详细介绍了FPGA远程升级过程中使用AXI Quad SPI IP读写N25Q128 Flash的完整流程,包括IP核配置、Flash操作指令集、双镜像备份设计及生产级远程升级协议。通过最佳实践和避坑策略,帮助开发者实现可靠的镜像更新方案,提升系统可靠性和可维护性。

weixin_30542079的博客 675

webplugin插件无法安装_谷歌插件无法下载安装?这里教你怎么办~

一,插件下载网站目前国内可以提供下载的插件网址有下面这几个。1、浏览器插件下载中心 https://www.chromefor.com/2、Chrome 网上应用店镜像 https://www.gugeapps.com/3、一个英文的下载网站 https://www.crx4chrome.com//4、Crx离线安装包下载 http://yurl.sinaapp.com/crx.php5...

weixin_39669163的博客 7517

PostGIS 小白入门详细指南

PostGIS 是 PostgreSQL 的一个扩展,它将 PostgreSQL 转变为一个功能强大的空间数据库,使其能够存储、查询和分析地理空间数据。PostGIS 遵循开放地理空间联盟(OGC)的标准,支持各种空间数据类型和操作,如点、线、多边形、缓冲区、空间连接等。存储各种空间数据类型(如几何类型和地理类型)空间索引,提高查询性能丰富的空间函数和操作支持投影和坐标系统转换城市规划与管理环境监测与分析物流与运输优化地图制作与可视化位置服务与导航。

落魄书生的职业学习生涯 1万+

YOLOv11改进 | Conv篇 | DWRSeg扩张式残差助力小目标检测 (附创新修改后的C3k2DWRSeg)

本文内容给大家带来的DWRSeg中的DWR模块来改进YOLOv11中的C2f和Bottleneck模块,主要针对的是小目标检测,主要创新点可以总结如下:多尺度特征提取机制的深入研究和创新的DWR模块和SIR模块的提出这种方法使得网络能够更灵活地适应不同尺度的特征,从而更准确地识别和分割图像中的物体。DWRSeg的基本原理和框架,并且能够在你自己的网络结构中进行添加DWRSeg需要增加一定的计算量一个DWR模块大概增加0.4GFLOPsYOLOv11改进系列专栏——本专栏持续复习各种顶会内容——科研必备。

Snu77的博客 4189

Ubuntu下如何安装 tar.bz2 文件

Ubuntu下如何安装 tar.bz2 文件

NOI Study 7653

基于深度学习的火焰检测系统:YOLOv8 + UI界面 + 数据集详解

YOLO(You Only Look Once)是一种端到端的目标检测算法,其最大优势在于将目标检测任务转化为一个回归问题,可以在一次前向传播中同时完成目标定位和分类。YOLOv8是YOLO系列中的最新版本,相比之前的版本,YOLOv8在精度和推理速度上都做了显著提升,特别是在小物体检测方面表现更加优秀。实时性:YOLOv8具有较高的推理速度,适用于实时火焰检测。高精度:相较于YOLOv7,YOLOv8在精度和小物体检测上有所改进。简单易用:YOLOv8的API简单直观,易于集成和使用。

YOLO 660

Centos系统下安装collectd

一、本机配置: Linux version 2.6.32-504.el6.x86_64   CentOS release 6.6 (Final) Kernel \r on an \m 二、下载collectd最新安装包 访问官网:https://collectd.org/documentation.shtml,最左边Download,下载最新版本压缩包collectd-5.8.1.tar...

qq_29859617的博客 1766

SAP B1中文培訓教材_SDK

公司内部培训资料,对开发工具 ,DIAPI, UIAPI,Add-ON有详细解说

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

Centos 6.5 安装icingaweb1 中文版部署

ICINGA项目是 由MichaelLuebben、HendrikB?cker和JoergLinge等人发起的,他们都是现有的Nagios项目社区委员会的成员,他们承诺,新的开源项 目将完全兼容以前的Nagios应用程序及扩展功能。在新项目的网站上,他们是如此定义ICINGA的,这将是一个介于Nagios社区版和企业版间的产 品。特别将致力于解决Nagios项目现在的问题,比如不能及时处理Nagi

极致,细节 2288

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

collectd mysql_Collectd+mogodb plugin 源码 安装

cd mongo-c-drivergit checkout secondarymake && make installcd collectd修改Collectd得文件src/curl.cif (wp->response_time)start = cdtime ();+ else+ start = cdtime ();src/write_mongodb.c- status = ...

weixin_39607865的博客 212

Outlook Express 6 (OE6) for Win7/Win8/Win10

英文版 Outlook Express6.0, 兼容Win7/Win10/WinXP,解压就可用。

上一篇: collectd 修改配置重新启动
下一篇: CentOS7系统操作httpd服务 - 开机启动/重启/查看状态
王树民
博客等级 码龄10年 912粉丝 560原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值