Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
jmr.richardson at gmai...
Guest





PostPosted: Mon Jan 28, 2008 9:59 pm    Post subject: [asterisk-users] Asterisk and MRTG, a little help please...W Reply with quote

On 1/28/08, JR Richardson <jmr.richardson at gmail.com> wrote:
Quote:
Quote:
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services