[SPINE ISSUE ? ] ISDN Call Stats Script and Template

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

[SPINE ISSUE ? ] ISDN Call Stats Script and Template

Post by mcutting »

Ok, I'm stumped. I took a script, plus template etc from http://www.eatworms.org.uk/cacti/isdncalls.php, and have modified it so that it works with 0.8.7b (see included)

The trouble is, even though I get a correct output when running the script from the command line :

c:\wamp\bin\php\php5.2.5\php -q C:\wamp\www\Cacti\scripts\query_host_isdncalls.php 192.168.225.254 <communityname> 2 get calls_out 0
4319

when running it with the templates and xml provided in the link above, I get:

04/17/2008 10:49:12 AM - SPINE: Poller[0] Host[160] DS[2514] SCRIPT: C:\wamp\bin\php\php5.2.5\php.exe -q C:\wamp\www\Cacti\scripts\query_host_isdncalls.php 192.168.225.254 <communityname> 2 get calls_in 0, output: U

Another thing I have noticed is that a verbose query in cacti with this script takes AGES, and I can't see why

Any ideas ?
Last edited by mcutting on Fri Apr 18, 2008 1:34 am, edited 2 times in total.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

UPDATE:

There is nothing actually wrong with any of the files I enclosed. It actually appears to be SPINE that is causing the issue. If I change the poller to cmd.php, it works with no issues at all.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
bodyakov
Posts: 3
Joined: Wed Oct 01, 2008 5:51 am

Post by bodyakov »

small error in host_isdncalls.xml

Code: Select all

<isdnSigStatsInConnected>
			<name>Calls In Connected</name>
			<direction>output</direction>
			<query_name>calls_in_count</query_name>
		</isdnSigStatsInConnected>
must be calls_in_conn

Code: Select all

<isdnSigStatsInConnected>
			<name>Calls In Connected</name>
			<direction>output</direction>
			<query_name>calls_in_conn</query_name>
		</isdnSigStatsInConnected>
bodyakov
Posts: 3
Joined: Wed Oct 01, 2008 5:51 am

Post by bodyakov »

Actual version that work with spine.
Attachments
snmp_isdn_call_stats.zip
(5.77 KiB) Downloaded 1254 times
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests