[asterisk-users] Asterisk and MRTG, a little help please...

Andres andres at telesip.net
Mon Jan 28 15:02:25 CST 2008


JR Richardson wrote:

>>  6. Re: >  That script runs fine. You should be able to run it first manually, if so
>>please copy and paste the error.
>>
>>    
>>
>mrtg:/var/www/mrtg# env LANG=C /usr/bin/mrtg
>2008-01-28 11:16:01: WARNING: Could not get any data from external
>command '/var/mrtg/10.10.14.102.cfg -h 10.10.14.102 -1 SIP -2 IAX2'
>Maybe the external command did not even start. (Illegal seek)
>
>2008-01-28 11:16:01: WARNING: Problem with External get
>'/var/mrtg/10.10.14.102.cfg -h 10.10.14.102 -1 SIP -2 IAX2':
>   Expected a Number for 'in' but nothing'
>
>2008-01-28 11:16:01: WARNING: Problem with External get
>'/var/mrtg/10.10.14.102.cfg -h 10.10.14.102 -1 SIP -2 IAX2':
>   Expected a Number for 'out' but nothing'
>
>2008-01-28 11:16:01: ERROR: Target[asterisklab2][_IN_] '
>$target->[0]{$mode} ' did not eval into defined data
>2008-01-28 11:16:01: ERROR: Target[asterisklab2][_OUT_] '
>$target->[0]{$mode} ' did not eval into defined data
>ntcp-mrtg:/var/www/mrtg#
>
>I can see the script log into the manager interface on the asterisk
>server at 10.10.14.102, and there are active SIP channels during
>script execution.
>
>Any ideas?
>  
>
You need to take a step back and first test the script without using 
MRTG.  Execute it like this:
# /opt/bin/asterisk-mrtg -h localhost -u XXX -p XXXX -1 SIP -2 Zap
10
10
10
10

You should get 4 lines of numbers.   That respresents your SIP and Zap 
channels.  Once you get past this step go back and plug it into your 
MRTG config.

Andres
http://www.neuroredes.com

>Thanks.
>JR
>  
>




More information about the asterisk-users mailing list