Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
nightingale
提交
4299c48a
N
nightingale
项目概览
DiDi
/
nightingale
9 个月 前同步成功
通知
46
Star
7053
Fork
1161
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nightingale
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4299c48a
编写于
8月 01, 2023
作者:
U
Ulric Qin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update markdown of IPMI integration
上级
ae0523de
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
52 addition
and
51 deletion
+52
-51
integrations/IPMI/markdown/README.md
integrations/IPMI/markdown/README.md
+52
-51
未找到文件。
integrations/IPMI/markdown/README.md
浏览文件 @
4299c48a
#
## 使用Categraf基于IPMI工具监控硬件温度、功率、电压
#
IPMI plugin
实现原理:
利用
`ipmitool sdr`
命令, 采集硬件的温度、功率、电压等信息,并转化为指标。 依赖工具
`ipmitool`
,所以需要安装
`ipmitool`
。
利用ipmitool sdr命令, 采集硬件的温度、功率、电压等信息,并转化为指标。 依赖工具ipmitool ,所以需要安装ipmitool。
IPMI配置:
## IPMI 配置
```
bash
# 此处的主机必须支持ipmi bmc,不然openipmi启动不了
...
...
@@ -100,53 +98,56 @@ MAC Address : xx:xx:52:xx:xx:81
SNMP Community String : public
```
### 采集配置
使用
[
categraf
](
https://github.com/flashcatcloud/categraf
)
中
[
inputs.ipmi
](
https://github.com/flashcatcloud/categraf/tree/main/inputs/ipmi
)
插件采集服务器指标:
```
yaml
cat /opt/categraf/conf/input.ipmi/conf.toml
[[instances]]
## optionally specify the path to the ipmitool executable
# path = "/usr/bin/ipmitool"
##
## Setting 'use_sudo' to
true
will make use of sudo to run ipmitool.
## Sudo must be configured to allow the telegraf user to run ipmitool
## without a password.
# use_sudo =
false
##
## optionally force session privilege level. Can be CALLBACK, USER, OPERATOR, ADMINISTRATOR
# privilege = "ADMINISTRATOR"
##
## optionally specify one or more servers via a url matching
## [username[:password]@][protocol[(address)]]
## e.g.
## root:passwd@lan(127.0.0.1)
##
## if no servers are specified, local machine sensor stats will be queried
##
servers = ["ADMIN:1234567@lan(192.168.1.123)"]
## Recommended
:
use metric 'interval' that is a multiple of 'timeout' to avoid
## gaps or overlap in pulled data
interval = "30s"
## Timeout for the ipmitool command to complete. Default is 20 seconds.
timeout = "20s"
## Schema Version
:
(Optional, defaults to version 1)
metric_version =
2
## Optionally provide the hex key for the IMPI connection.
# hex_key = ""
## If ipmitool should use a cache
## for me ipmitool runs about 2 to 10 times faster with cache enabled on HP G10 servers (when using ubuntu20.04)
## the cache file may not work well for you if some sensors come up late
# use_cache = false
## Path to the ipmitools cache file (defaults to OS temp dir)
## The provided path must exist and must be writable
## 采集配置
categraf 的
`conf/input.ipmi/conf.toml`
```
toml
[[instances]]
## optionally specify the path to the ipmitool executable
# path = "/usr/bin/ipmitool"
##
## Setting 'use_sudo' to true will make use of sudo to run ipmitool.
## Sudo must be configured to allow the telegraf user to run ipmitool
## without a password.
# use_sudo = false
##
## optionally force session privilege level. Can be CALLBACK, USER, OPERATOR, ADMINISTRATOR
# privilege = "ADMINISTRATOR"
##
## optionally specify one or more servers via a url matching
## [username[:password]@][protocol[(address)]]
## e.g.
## root:passwd@lan(127.0.0.1)
##
## if no servers are specified, local machine sensor stats will be queried
##
servers
=
["ADMIN:1234567@lan(192.168.1.123)"]
## Recommended: use metric 'interval' that is a multiple of 'timeout' to avoid
## gaps or overlap in pulled data
interval
=
"30s"
## Timeout for the ipmitool command to complete. Default is 20 seconds.
timeout
=
"20s"
## Schema Version: (Optional, defaults to version 1)
metric_version
=
2
## Optionally provide the hex key for the IMPI connection.
# hex_key = ""
## If ipmitool should use a cache
## for me ipmitool runs about 2 to 10 times faster with cache enabled on HP G10 servers (when using ubuntu20.04)
## the cache file may not work well for you if some sensors come up late
# use_cache = false
## Path to the ipmitools cache file (defaults to OS temp dir)
## The provided path must exist and must be writable
```
## 仪表盘效果
夜莺内置了 IPMI 的仪表盘和告警规则,克隆到自己的业务组下即可使用。
效果图:!
[
ipmi
](
http://download.flashcat.cloud/uPic/ipmi.png
)
\ No newline at end of file
![
ipmi
](
http://download.flashcat.cloud/uPic/ipmi.png
)
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录