cacti1.2.16提示FATAL: Unable to read configuration file! (Spine init)报错

在Debian系统中执行Cacti的poller.php时遇到Spine无法读取配置文件的问题,错误信息提到配置文件需位于/etc目录。将spine.conf复制到/etc后,问题得到解决,Spine开始正常处理设备数据。
摘要由CSDN通过智能技术生成

执行root@debian:~# /usr/bin/php /var/www/html/cacti/poller.php后提示读取spine配置文件错误!

详细报错信息如下:

root@debian:~# /usr/bin/php /var/www/html/cacti/poller.php
2023-01-09 13:41:57 - SYSTEM STATS: Time:7.6089 Method:spine Processes:6 Threads:6 Hosts:169 HostsPerProcess:29 DataSources:102 RRDsProcessed:0
root@debian:~# /usr/local/spine/bin/spine
2023/01/09 13:42:29 - SPINE: Poller[1] PID[1232862] FATAL: Unable to read configuration file! (Spine init)
root@debian:~# ^C

后台系统设置路径没问题,系统能够识别到

 原因:spine默认配置文件需要放在/etc才会生效

将spine.conf配置文件拷贝到/etc下一份即可。

root@debian:~# cp /usr/local/spine/etc/spine.conf /etc/spine.conf
2023-01-09 13:45:03 - SPINE: Poller[1] PID[1233950] Device[204] HT[1] Total Time: 0.11 Seconds
2023-01-09 13:45:03 - SPINE: Poller[1] PID[1233950] Device[204] HT[1] DEBUG: HOST COMPLETE: About to Exit Device Polling Thread Function
2023-01-09 13:45:03 - SPINE: Poller[1] PID[1233950] DEBUG: The Value of Active Threads is 5 for Device ID 204
2023-01-09 13:45:03 - SPINE: Poller[1] PID[1233950] DEBUG: In Poller, About to Start Polling of Device for Device ID 205
2023-01-09 13:45:03 - SPINE: Poller[1] PID[1233950] Device[205] DEBUG: Entering SNMP Ping
2023-01-09 13:45:03 - SPINE: Poller[1] PID[1233950] NOTE: Device[205] Updating Full System Information Table
2023-01-09 13:45:03 - SPINE: Poller[1] PID[1233950] Device[205] HT[1] RECACHE: Processing 1 items in the auto reindex cache for ''
2023-01-09 13:45:03 - SPINE: Poller[1] PID[1233950] Device[205] HT[1] DQ[4] RECACHE OID: .1.3.6.1.2.1.1.3.0, (assert: 1090974628 < output: 1090980577)
2023-01-09 13:45:03 - SPINE: Poller[1] PID[1233950] Device[205] HT[1] Total Time: 0.034 Seconds
2023-01-09 13:45:03 - SPINE: Poller[1] PID[1233950] Device[205] HT[1] DEBUG: HOST COMPLETE: About to Exit Device Polling Thread Function
2023-01-09 13:45:03 - SPINE: Poller[1] PID[1233950] DEBUG: The Value of Active Threads is 5 for Device ID 205
SPINE: Time: 8.9167 s, Threads: 6, Devices: 170

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值