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 ?
[SPINE ISSUE ? ] ISDN Call Stats Script and Template
Moderators: Developers, Moderators
-
- 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
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
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
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.
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
small error in host_isdncalls.xml
must be calls_in_conn
Code: Select all
<isdnSigStatsInConnected>
<name>Calls In Connected</name>
<direction>output</direction>
<query_name>calls_in_count</query_name>
</isdnSigStatsInConnected>
Code: Select all
<isdnSigStatsInConnected>
<name>Calls In Connected</name>
<direction>output</direction>
<query_name>calls_in_conn</query_name>
</isdnSigStatsInConnected>
Actual version that work with spine.
- Attachments
-
- snmp_isdn_call_stats.zip
- (5.77 KiB) Downloaded 1253 times
Who is online
Users browsing this forum: No registered users and 4 guests