Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jun 26, 2019 11:36 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 84 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject:
PostPosted: Fri Mar 28, 2008 3:35 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
Even if we're going to install some few thousands of asterisk devices, personally I have NO idea how they work.
So my only advice is to run the failing scripts as cactiuser manually to see why they fail.
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Strugling to get graps working
PostPosted: Sun Jun 15, 2008 11:55 am 
Offline

Joined: Sun Jun 15, 2008 11:52 am
Posts: 3
Hallo Guys,

This is a GREAT script and thanks allot for everyone's hard work to make this work!

I do however experience a problem getting the graphs to update and get these errors:

WARNING: Result from CMD not valid. Partial Result: action: login

I cant seem to solve this and would really appreciate any assistance.

Here is a full debug:

06/15/2008 05:33:01 PM - CMDPHP: Poller[0] Host[5] DS[30] SNMP: v2: 196.30.144.180, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, output: 3654052893
06/15/2008 05:33:01 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (30, 'traffic_out', '2008-06-15 17:33:01', '3654052893')"
06/15/2008 05:33:01 PM - PHPSVR: Poller[0] DEBUG: INC: '/usr/local/groundwork/apache2/htdocs/cacti/scripts/ss_host_disk.php' FUNC: 'ss_host_disk' PARMS: '196.30.144.180 5 2:161:500:public:::MD5::DES: get used 4'
06/15/2008 05:33:01 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select field_value from host_snmp_cache where host_id=5 and field_name='hrStorageAllocationUnits' and snmp_index='4'"
06/15/2008 05:33:01 PM - CMDPHP: Poller[0] Host[5] DS[27] SERVER: /usr/local/groundwork/apache2/htdocs/cacti/scripts/ss_host_disk.php ss_host_disk 196.30.144.180 5 2:161:500:public:::MD5::DES: get used 4, output: 5249826816
06/15/2008 05:33:01 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (27, 'hdd_used', '2008-06-15 17:33:01', '5249826816')"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[38] WARNING: Result from CMD not valid. Partial Result: action: login
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[38] CMD: /usr/local/groundwork/apache2/htdocs/cacti/scripts/asx-stats.py 0 sip.peers.online, output: U
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (38, 'sip_peers_online', '2008-06-15 17:33:01', 'U')"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[39] WARNING: Result from CMD not valid. Partial Result: action: login
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[39] CMD: /usr/local/groundwork/apache2/htdocs/cacti/scripts/asx-stats.py 0 sip.peers.total, output: U
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (39, 'sip_peers_total', '2008-06-15 17:33:01', 'U')"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[51] WARNING: Result from CMD not valid. Partial Result: action: login
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[51] CMD: /usr/local/groundwork/apache2/htdocs/cacti/scripts/asx-stats.py 0 sip.users.total, output: U
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (51, 'sip_users_total', '2008-06-15 17:33:01', 'U')"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[41] WARNING: Result from CMD not valid. Partial Result: action: login
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[41] CMD: /usr/local/groundwork/apache2/htdocs/cacti/scripts/asx-stats.py 0 iax.channels, output: U
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (41, 'iax_channels', '2008-06-15 17:33:01', 'U')"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[42] WARNING: Result from CMD not valid. Partial Result: action: login
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[42] CMD: /usr/local/groundwork/apache2/htdocs/cacti/scripts/asx-stats.py 0 iax.peers.online, output: U
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (42, 'iax_peers_online', '2008-06-15 17:33:01', 'U')"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[43] WARNING: Result from CMD not valid. Partial Result: action: login
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[43] CMD: /usr/local/groundwork/apache2/htdocs/cacti/scripts/asx-stats.py 0 iax.peers.total, output: U
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (43, 'iax_peers_total', '2008-06-15 17:33:01', 'U')"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[49] WARNING: Result from CMD not valid. Partial Result: action: login
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[49] CMD: /usr/local/groundwork/apache2/htdocs/cacti/scripts/asx-stats.py 0 iax.users.total, output: U
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (49, 'iax_users_total', '2008-06-15 17:33:01', 'U')"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[50] WARNING: Result from CMD not valid. Partial Result: action: login
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Host[5] DS[50] CMD: /usr/local/groundwork/apache2/htdocs/cacti/scripts/asx-stats.py 0 sip.channels, output: U
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (50, 'sip_channels', '2008-06-15 17:33:01', 'U')"
06/15/2008 05:33:02 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] Time: 2.8925 s, Theads: N/A, Hosts: 2
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id=0"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_output.output, poller_output.time, poller_output.local_data_id, poller_item.rrd_path, poller_item.rrd_name, poller_item.rrd_num from (poller_output,poller_item) where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name) "
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select data_template_rrd.data_source_name, data_input_fields.data_name from (data_template_rrd,data_input_fields) where data_template_rrd.data_input_field_id=data_input_fields.id and data_template_rrd.local_data_id=31"
06/15/2008 05:33:02 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.23' [map 1min->load_1min]
06/15/2008 05:33:02 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.22' [map 5min->load_5min]
06/15/2008 05:33:02 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.14' [map 10min->load_15min]
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select data_template_rrd.data_source_name, data_input_fields.data_name from (data_template_rrd,data_input_fields) where data_template_rrd.data_input_field_id=data_input_fields.id and data_template_rrd.local_data_id=9"
06/15/2008 05:33:02 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.23' [map 1min->load_1min]
06/15/2008 05:33:02 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.22' [map 5min->load_5min]
06/15/2008 05:33:02 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.14' [map 10min->load_15min]
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='50' and rrd_name='sip_channels' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='49' and rrd_name='iax_users_total' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='43' and rrd_name='iax_peers_total' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='42' and rrd_name='iax_peers_online' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='41' and rrd_name='iax_channels' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='51' and rrd_name='sip_users_total' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='39' and rrd_name='sip_peers_total' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='38' and rrd_name='sip_peers_online' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='27' and rrd_name='hdd_used' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='30' and rrd_name='traffic_out' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='28' and rrd_name='traffic_in' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='30' and rrd_name='traffic_in' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='28' and rrd_name='traffic_out' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='27' and rrd_name='hdd_total' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='31' and rrd_name='' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='33' and rrd_name='proc' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='32' and rrd_name='users' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='34' and rrd_name='mem_buffers' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='35' and rrd_name='mem_swap' and time='2008-06-15 17:33:01'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='10' and rrd_name='hdd_used' and time='2008-06-15 17:32:59'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='10' and rrd_name='hdd_free' and time='2008-06-15 17:32:59'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='9' and rrd_name='' and time='2008-06-15 17:32:59'"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='8' and rrd_name='proc' and time='2008-06-15 17:32:59'"
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_sip_channels_50.rrd --template sip_channels 1213543981:U
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_iax_users_total_49.rrd --template iax_users_total 1213543981:U
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_iax_peers_total_43.rrd --template iax_peers_total 1213543981:U
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_iax_peers_online_42.rrd --template iax_peers_online 1213543981:U
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_iax_channels_41.rrd --template iax_channels 1213543981:U
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_sip_users_total_51.rrd --template sip_users_total 1213543981:U
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_sip_peers_total_39.rrd --template sip_peers_total 1213543981:U
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_sip_peers_online_38.rrd --template sip_peers_online 1213543981:U
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_hdd_used_27.rrd --template hdd_used:hdd_total 1213543981:5249826816:8256487424
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_traffic_in_30.rrd --template traffic_out:traffic_in 1213543981:3654052893:4264374282
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_traffic_in_28.rrd --template traffic_in:traffic_out 1213543981:2585481999:2639329809
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_load_1min_31.rrd --template load_1min:load_5min:load_15min 1213543981:0.23:0.22:0.14
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_proc_33.rrd --template proc 1213543981:93
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_users_32.rrd --template users 1213543981:4
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_mem_buffers_34.rrd --template mem_buffers 1213543981:14412
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/smc_switch_verizon_1_mem_swap_35.rrd --template mem_swap 1213543981:0
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/localhost_hdd_free_10.rrd --template hdd_used:hdd_free 1213543979:3789952:667808
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/localhost_load_1min_9.rrd --template load_1min:load_5min:load_15min 1213543979:0.23:0.22:0.14
06/15/2008 05:33:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/groundwork/bin/rrdtool update /usr/local/groundwork/apache2/htdocs/cacti/rra/localhost_proc_8.rrd --template proc 1213543979:U
06/15/2008 05:33:02 PM - SYSTEM STATS: Time:3.1624 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:28 RRDsProcessed:24
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into settings (name,value) values ('stats_poller','Time:3.1624 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:28 RRDsProcessed:24')"
06/15/2008 05:33:02 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select count(*) from poller_command"

Regards

CW


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 23, 2008 1:33 am 
Offline

Joined: Wed Sep 19, 2007 5:31 am
Posts: 11
Set the variable "verbose" to "1" in the script and try to run this script.


Top
 Profile  
 
 Post subject: RESOLVED
PostPosted: Mon Jun 23, 2008 2:33 am 
Offline

Joined: Sun Jun 15, 2008 11:52 am
Posts: 3
Thanks, after many hours of debugging I figured out this is causing the problem :-)

Regards

CW


Top
 Profile  
 
 Post subject: Re: RESOLVED
PostPosted: Mon Jun 23, 2008 2:09 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
cyberwar wrote:
Thanks, after many hours of debugging I figured out this is causing the problem :-)

Regards

CW
Would you please share your findings?
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: RESOLVED
PostPosted: Tue Jun 24, 2008 3:02 am 
Offline

Joined: Sun Jun 15, 2008 11:52 am
Posts: 3
Sure, my problem was (while trying to get everything working) I had switched on debugging in the script to see where the problem might be. I then FORGOT to switch debugging off again! Remember, cacti looks for a single output value, not a whole sting of characters :-)

Thanks for this great contribution :-)

CW


Top
 Profile  
 
 Post subject: sip.peers.online
PostPosted: Wed Jul 16, 2008 2:17 am 
Offline

Joined: Fri Nov 30, 2007 2:07 am
Posts: 24
Location: Lithuania, Vilnius
hi
many thanks for this script
but one problem - sip.peers.online always shows zero
Asterisk version 1.4.1
asx-stats script version 0.1.5.1


mon1:/var/www/cacti/scripts# ./asx-stats.py
Asterisk Call Manager/1.0
Response: Success
Message: Authentication accepted

sip.peers.total:100
sip.peers.online:0
iax.peers.total:1
iax.peers.online:1
sip.users.total:68
iax.users.total:1
sip.channels:67
iax.channels:0
pstn.channels:6
zap.channels:0
agents.loggedin.yes:0
agents.loggedin.no:0
voicemail.all:0
core.threads:28
core.uptime:2338478
iax.peers.peer1.status:0
iax.peers.peer2.status:0


asterisk*CLI> sip show peers
..............
100 sip peers [Monitored: 78 online, 22 offline Unmonitored: 0 online, 0 offline]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 17, 2008 10:50 pm 
Offline

Joined: Sun Mar 30, 2008 10:58 pm
Posts: 6
Check the script for which command it is running. Then login to your console on asterisk and run the same script. it might just be a command problem, I noticed that if you change the script to use the older command (they work on 1.4 and 1.2) you can get voicemails, and sip.peers.

I had to do this because I have 1.2 and 1.4 asterisk systems running.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 18, 2008 7:54 am 
Offline

Joined: Sat Jan 05, 2008 2:10 pm
Posts: 4
does this script work only if cacti is installed localy or does it fork if it is installed remotely? do I need to open somer ports or install something on trixbox ?

tnx in advance


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2009 12:04 pm 
Offline

Joined: Tue Dec 23, 2008 4:25 am
Posts: 4
Asking for help:

Then i start
./asx-stats.py 0 sip.peers.online
got as result
26

But in the CACTI log always
WARNING: Result from CMD not valid. Partial Result:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2009 3:01 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
In general, you should provide cacti with the explicit interpreter used. Please to not rely on cactiuser's ENVIRONMENT
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 16, 2009 3:52 am 
Offline

Joined: Tue Dec 23, 2008 4:25 am
Posts: 4
Sorry... What should I do?

When I try
su cacti -c './asx-stats.py 0 sip.users.total'

I'vw got
This account is currently not available.

Maybe the problem in cacti user? But how can i solve this problem?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 18, 2009 9:18 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
Correct. The cacti user (or sometimes called cactiuser) must be able to run the script successfully. How to achieve this with asterisk is beyond my knowledge
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 19, 2009 10:02 am 
Offline

Joined: Tue Dec 23, 2008 4:25 am
Posts: 4
Script starts locally on Cacti. Permissions sets to 777 (allow all for everyone).
You think that problem was in Asterisk server?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 20, 2009 5:41 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
DJ Kill wrote:
Script starts locally on Cacti. Permissions sets to 777 (allow all for everyone).
You think that problem was in Asterisk server?
Yep.
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 84 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 9 guests


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 post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group