Hi! I’m trying to monitor calls using a MRTG script i found on this site:
https://karlsbakk.net/asterisk/scripts/asterisk-mrtg
But when i execute mrtg env the following error appears:
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
I already monitor CPU and network stats using mrtg, the only problem i’m having right now is with asterisk…
Does anyone ever came across this problem?