我正在使用 mrtg 来监控服务器上的 cpu 和网络统计信息。一切正常......我无法让它工作的一件事是星号 - 我正在使用我在以下网站上找到的脚本:https ://karlsbakk.net/asterisk/scripts/asterisk-mrtg
我根据我的服务器信息进行了相应的配置,然后继续使用 mrtg 在星号上生成并发调用的统计信息......但出现以下错误:
2020-03-04 10:34:36: WARNING: Could not get any data from external command '/etc/mrtg/bin/mrtgasterisk.pl -h localhost -1 SIP -2 IAX2'
Maybe the external command did not even start.
2020-03-04 10:34:36: WARNING: Problem with External get '/etc/mrtg/bin/mrtgasterisk.pl -h localhost -1 SIP -2 IAX2':
Expected a Number for 'in' but nothing'
2020-03-04 10:34:36: WARNING: Problem with External get '/etc/mrtg/bin/mrtgasterisk.pl -h localhost -1 SIP -2 IAX2':
Expected a Number for 'out' but nothing'
2020-03-04 10:34:36: ERROR: Target[asterisk][_IN_] ' $target->[2]{$mode} ' did not eval into defined data
2020-03-04 10:34:36: ERROR: Target[asterisk][_OUT_] ' $target->[2]{$mode} ' did not eval into defined data
有没有人经历过这个并能够解决它?