On 1/28/08, JR Richardson <[EMAIL PROTECTED]> wrote: > > 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. > > I run the script without using mrtg but I don't get any reply: > > mrtg:# /var/mrtg/asterisk-mrtg -h [ipaddress] -u [user] -p [pass] -1 SIP -2 > IAX2 > mrtg:# > > I can see the script log into the manager on the asterisk server, but > doesn't return any figures. i haven't modified anything in the > script. I'm wondering if the script is OK and maybe Asterisk manager > is not setup correctly or asterisk is not returning proper value. > Here is what I have configured in manager.conf: > > [general] > enabled = yes > port = 5038 > bindaddr = 0.0.0.0 > > [user] > secret = pass > deny=0.0.0.0/0.0.0.0 > permit=[subnet of mrtg server] > read = system,call,log,verbose,command,agent,user > I added write = system,call,log,verbose,command,agent,user to manager.conf and things started working. I did not realize write was needed for the script to poll and get a response. no more errors and I get the proper channel count.
Thanks. JR -- JR Richardson Engineering for the Masses _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users