In the attached log there is total output of spine run with "-S -R -V=5'...
The script server script ss_cisco_sce_traffic.php is older script that is still in use and working has been changed to:
- ss_cisco_sce_traffic_flow1.php
- ss_cisco_sce_traffic_flow2.php
These 2 scripts are almost exact copy of older ones - in ..flow2.php there is OID difference that end with 2 instead of 1.
Running script from cli and from PHP Script Server seems to be ok (except for random crashes)
but spine reports 'U' and communications to script server is often lost...
System information:
Cacti Version 0.8.7i
Cacti OS unix
SNMP Version NET-SNMP version: 5.3.2.2
RRDTool Version RRDTool 1.2.x
SPINE 0.8.7i
What is also interesting that when number of script servers is set to 1, it almost works ok...less 'U' values.
Attached spine log and php script (spine.log and ss_cisco_sce_traffi_flow1.txt).
Script ran from cli:
Code: Select all
php /var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow1.php 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get downstream 2
377240
Code: Select all
[15:00][root@srv scripts ]# php ../script_server.php
PHP Script Server has Started - Parent is cmd
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get upstream 1
25832
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get downstream 1
24
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get upstream 10
18392
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get downstream 10
480
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow1.php ss_sce_flow1 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get upstream 2
[15:01][root@srv scripts ]# php ../script_server.php
PHP Script Server has Started - Parent is cmd
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get upstream 2
230033280
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get downstream 2
377272
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get upstream 11
23006656
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get downstream 11
256
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get downstream 11
256
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get downstream 11
256
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get downstream 11
256
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get upstream 2
230047960
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get upstream 2
230048360
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get upstream 70
108579536
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get upstream 70
108579648
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get upstream 70
108579904
/var/www/html/cacti/scripts/ss_cisco_sce_traffic_flow2.php ss_sce_flow2 192.168.31.150 68 2:161:500:jhbbm:::MD5::[None] get upstream 70
108580072
quit
PHP Script Server Shutdown request received, exiting