Spine <-> Script Server Problems

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
marko06
Posts: 3
Joined: Wed Mar 06, 2013 7:30 am

Spine <-> Script Server Problems

Post by marko06 »

I have problem with script server script - it seems things are not ok between spine and script server.
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
Script ran from PHP Script Server:

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

I've search the forum and googled for the solution but out of luck...
Attachments
spine.txt
(32.33 KiB) Downloaded 77 times
ss_cisco_sce_traffic_flow1.txt
(4.18 KiB) Downloaded 71 times
marko06
Posts: 3
Joined: Wed Mar 06, 2013 7:30 am

Re: Spine <-> Script Server Problems

Post by marko06 »

I made scripts better - used API snmp functions. I think everything is by the book. Still seeing problem with "Restarting PHP Script Server".
Problem can be found as well in other posts:
http://forums.cacti.net/about32435.html
http://forums.cacti.net/about38519.html
Attachments
ss_sce_flow1.txt
(4.68 KiB) Downloaded 74 times
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Re: Spine <-> Script Server Problems

Post by Instigater »

You are not alone, I have the same problem with newer Cisco WLCs. Spine <> Script server links are lost when particular devices are queried. I also don't have a clue.
marko06
Posts: 3
Joined: Wed Mar 06, 2013 7:30 am

Re: Spine <-> Script Server Problems

Post by marko06 »

Well...here this was a silly mistake. I had two reindex functions in each file with the same name. It is good now :)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests