首页 > 解决方案 > Splunk MongoDB 插件:我们是否需要 root 权限来监控 MongoDB 数据?

问题描述

专家:</p>

如果我要监控以下数据 /1/,我们正在使用 Splunk MongoDB 插件,我们是否需要 root 权限才能获取监控数据?

/1/

Number of commands
Number of asserts users
Number of asserts messages
Number of available connections
Number of current connections
Connection Growth
Number of network bytes in
Number of network bytes out
Number of network requests
Mapped memory size 
Virtual memory size 
Resident memory size 
Replica Set availability   
Member status

标签: mongodbsplunk

解决方案


如果您使用的是 MongoDB 监控应用程序 ( https://splunkbase.splunk.com/app/2957/ ),则https://github.com/jruaux/mongodb-monitoring中列出的文档说它不需要 root,但是您可能需要启用管理员权限。

您可能需要使用 syslog 将数据发送出去,或者修改 mongod.log 的权限以允许 Splunk 读取它


推荐阅读