JR Richardson
2008-Jan-29 02:59 UTC
[asterisk-users] Asterisk and MRTG, a little help please...WORKING
On 1/28/08, JR Richardson <jmr.richardson at gmail.com> 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
Apparently Analagous Threads
- Asterisk and MRTG, a little help please...
- Using SIPPEER status with CUT function? SOLVED
- Asterisk to Cisco 2600 GW DTMF Not Working, Working now
- Re: regcontext, NoOp extension vanishes when extension reload, WORKING
- Re: Voicemail on Different Server, Voicemail with NFS