|
|
| Author |
Message |
raiten
Joined: 12 May 2006 Posts: 34
|
Posted: Fri Aug 25, 2006 4:37 pm Post subject: |
|
|
on note for permission
you need one entry in your manager like this (with minimum perm)
; cacti
; http://www.voip-info.org/wiki/view/Asterisk+config+manager.conf
[cactiuser]
secret = xxx
deny=0.0.0.0/0.0.0.0
permit=192.168.x.x/255.255.255.0
;read = system,call,log,verbose,command,agent,user
;write = system,call,log,verbose,command,agent,user
;read = command
write = command
and you can report info in the pollcall.php
next is there any new files availables to get more than the graph, for example list of registered users and menus ?
thanks a lot |
|
| Back to top |
|
 |
raiten
Joined: 12 May 2006 Posts: 34
|
Posted: Sat Sep 02, 2006 1:21 pm Post subject: |
|
|
seems cacti, can't graph script output:
in cacti log, i have this
09/02/2006 08:10:32 PM - CMDPHP: Poller[0] Host[17] DS[53] WARNING: Result from CMD not valid. Partial Result:
09/02/2006 08:10:33 PM - CMDPHP: Poller[0] Host[17] DS[54] WARNING: Result from CMD not valid. Partial Result:
but in command line
$ php -q /var/www/cacti/scripts/pollcalls.php
1$
$ php -q /var/www/cacti/scripts/pollcalls.php 2
2$
(same with adding "\n" at the end of the output)
ideas ? |
|
| Back to top |
|
 |
Flu
Joined: 20 Sep 2006 Posts: 1
|
Posted: Wed Sep 20, 2006 3:34 pm Post subject: Got it working. |
|
|
Thanks for the great code, I finally got it working. Here are some things I had to do in order to make it properly function:
Check to make sure the files are owned by the proper user (cactiuser in my case)
Check to make sure the files have the proper permissions on them (I ran chmod 755 on the php files).
Inside of the "Data Input Methods" section, make sure that Cacti is pointing towards the proper location of your script. I had to alter this, because the xml template file I imported didn't coincide with the proper location of pollcalls.php on my computer.
Adjust the input string inside of "Data Input Methods" to include |awk NF on the end of the line. The |awk NF removes any blank lines from the output of the pollcalls.php command. You can run php -q pollcalls.php directly in a terminal to see if it's including a blank line above any numerical output.
For reference, my Input String is as follows: php -q /var/www/html/cacti/scripts/pollcalls.php <value>|awk NF
Use System Utilities/View Poller Cache to make sure the input string you entered is actually active. If it isn't, you'll need to use the Clear Poller Cache link to make it active.
I think that about wraps up the things I needed to look into to make sure it worked for me..hopefully the above information was of some use to you. |
|
| Back to top |
|
 |
kruz
Joined: 19 Sep 2006 Posts: 22
|
Posted: Fri Sep 22, 2006 3:24 pm Post subject: |
|
|
could you post any of your output?
or even how you did any of this?
i want to make a script to tell me what calls are passing, and how many...
keep us updated, this is a very interesting project! |
|
| Back to top |
|
 |
krish905
Joined: 16 Oct 2006 Posts: 2
|
|
| Back to top |
|
 |
adrianmarsh Cacti User
Joined: 17 Aug 2005 Posts: 417 Location: UK
|
Posted: Fri Nov 03, 2006 4:54 pm Post subject: |
|
|
docelmo,
Do you graphs show collective last-5 mins, or just whats active at the scanning time (from A*ks perspective) ? |
|
| Back to top |
|
 |
jobu
Joined: 13 Nov 2006 Posts: 12
|
Posted: Thu Nov 30, 2006 4:41 pm Post subject: |
|
|
Is this still an active project? I have some scripts that monitor asterisk for me through mrtg, but I like look of this.
Question: What username/password combo is supposed to go in the astman.php file? |
|
| Back to top |
|
 |
mojiro Cacti User
Joined: 24 Jul 2005 Posts: 60 Location: Greece, Korydallos - Athens (AWMN)
|
Posted: Sun Dec 03, 2006 6:28 am Post subject: |
|
|
active but very-slow-developing.
I'm in the state of developing the admin panel |
|
| Back to top |
|
 |
kruz
Joined: 19 Sep 2006 Posts: 22
|
Posted: Tue Dec 19, 2006 1:28 pm Post subject: |
|
|
look at the other posts
im developing a real plugin instead of just xml and php scripts ( it might start out as that in early beta though ;], alpha rather )
keep a look out |
|
| Back to top |
|
 |
adrianmarsh Cacti User
Joined: 17 Aug 2005 Posts: 417 Location: UK
|
Posted: Sat Jan 27, 2007 7:07 am Post subject: |
|
|
| Anything new on this? |
|
| Back to top |
|
 |
lftoledo
Joined: 06 Feb 2007 Posts: 3
|
Posted: Tue Feb 06, 2007 10:02 am Post subject: |
|
|
| Nothing new ? |
|
| Back to top |
|
 |
enjay
Joined: 12 Feb 2007 Posts: 1
|
Posted: Mon Feb 12, 2007 4:58 pm Post subject: |
|
|
All of my channel results return a 0
Asterisk: 1.2.14
I do see the cacti user logging into the Asterisk CLI but returning 0's even though show channels has a ton of open channels.
ideas?
-Art
| Code: |
[root@cp-db01 scripts]# php -q /var/www/html/mon/scripts/pollcalls.php | awk NF
PHP Notice: Undefined offset: -1 in /var/lib/cacti/scripts/pollcalls.php on line 31
PHP Notice: Undefined offset: -1 in /var/lib/cacti/scripts/pollcalls.php on line 31
PHP Notice: Undefined offset: -1 in /var/lib/cacti/scripts/pollcalls.php on line 31
0
|
| Code: |
02/12/2007 03:55:03 PM - CMDPHP: Poller[0] Host[6] DS[17] CMD: php -q /var/www/html/mon/scripts/pollcalls.php |awk NF, output: 0
02/12/2007 03:55:03 PM - CMDPHP: Poller[0] Host[6] DS[18] CMD: php -q /var/www/html/mon/scripts/pollcalls.php x |awk NF, output: 0
|
|
|
| Back to top |
|
 |
DavidT
Joined: 18 Mar 2007 Posts: 4 Location: Australia & Singapore
|
Posted: Sun Mar 18, 2007 1:02 am Post subject: |
|
|
Is there any further Progress on this?
I have been lurking in the backgrounds on this watching too see how the development was coming on, is anyone still working on it?
Oh also is it possible if someone can provide a guide on how to install this? and where do the files go
Sorry to ask, i am only new to Cacti and not sure how to get things like this working.
Cheers,
David. |
|
| Back to top |
|
 |
DavidT
Joined: 18 Mar 2007 Posts: 4 Location: Australia & Singapore
|
Posted: Mon Mar 19, 2007 12:38 pm Post subject: |
|
|
Hi all,
I have tried to install this and get it working, but no matter what i do i cant get it too work :S
These are the errors i am getting:
03/20/2007 01:25:05 AM - CMDPHP: Poller[0] Host[9] DS[83] WARNING: Result from CMD not valid. Partial Result:
03/20/2007 01:25:05 AM - CMDPHP: Poller[0] Host[9] DS[82] CMD: php -q /www/<Directory>/www/scripts/pollcalls.php |awk NF, output: U
03/20/2007 01:25:05 AM - CMDPHP: Poller[0] Host[9] DS[82] WARNING: Result from CMD not valid. Partial Result:
03/20/2007 01:25:05 AM - CMDPHP: Poller[0] Host[9] DS[81] CMD: php -q /www/<Directory>/www/scripts/asxcalls.php |awk NF, output: U
03/20/2007 01:25:05 AM - CMDPHP: Poller[0] Host[9] DS[81] WARNING: Result from CMD not valid. Partial Result:
03/20/2007 01:25:05 AM - CMDPHP: Poller[0] Host[9] DS[80] CMD: php -q /www/<Directory>/www/scripts/asxcalls.php |awk NF, output: U
03/20/2007 01:25:05 AM - CMDPHP: Poller[0] Host[9] DS[80] WARNING: Result from CMD not valid. Partial Result:
I believe i have everything pointing to where it should be, i have tried to follow some of the notes on here and pointer but to no avail.
If there is anyone left that is still working with this or knows how to help with this problem, you will have a very greatful person here
Thank you advance.
Cheers,
David. |
|
| Back to top |
|
 |
crycos
Joined: 24 Apr 2007 Posts: 5
|
Posted: Fri Apr 27, 2007 8:54 am Post subject: |
|
|
I keep getting this error when importing the graphs :
Error: XML parse error.
Anyone ? |
|
| Back to top |
|
 |
|