cacti 1.2.27/spine 1.2.27

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

Moderators: Developers, Moderators

Post Reply
ivansaez
Posts: 23
Joined: Wed May 29, 2024 2:45 am

cacti 1.2.27/spine 1.2.27

Post by ivansaez »

Hi,

I've cacti version 1.2.27 and see this errors in the Logs:

Restarting PHP Script Server2024-09-25 15:35:03 - SPINE: Poller[Main Poller] PID[611546] PT[139819335886400] Device[System Device] ERROR: Problem executing POPEN []: '/usr/bin/php -q /usr/share/cacti/scripts/cacti_user_stats.php'
]. Restarting PHP Script Server2024-09-25 15:35:02 - SPINE: Poller[Main Poller] PID[611546] PT[139819335886400] ERROR: SS[0] PHP Script Server communications lost sending Command[/usr/share/cacti/scripts/ss_hstats.php ss_hstats '' uptime
]. Restarting PHP Script Server2024-09-25 15:35:02 - SPINE: Poller[Main Poller] PID[611546] PT[139819335886400] ERROR: SS[0] PHP Script Server communications lost sending Command[/usr/share/cacti/scripts/ss_hstats.php ss_hstats '' uptime
]. Restarting PHP Script Server2024-09-25 15:35:02 - SPINE: Poller[Main Poller] PID[611546] PT[139819335886400] ERROR: SS[0] PHP Script Server communications lost sending Command[/usr/share/cacti/scripts/ss_hstats.php ss_hstats '' uptime
]. Restarting PHP Script Server2024-09-25 15:35:02 - SPINE: Poller[Main Poller] PID[611546] PT[139819335886400] ERROR: SS[0] PHP Script Server communications lost sending Command[/usr/share/cacti/scripts/ss_hstats.php ss_hstats '' polling_time
]. Restarting PHP Script Server2024-09-25 15:35:02 - SPINE: Poller[Main Poller] PID[611546] PT[139819335886400] ERROR: SS[0] PHP Script Server communications lost sending Command[/usr/share/cacti/scripts/ss_hstats.php ss_hstats '' polling_time
2024-09-25 15:35:02 - SPINE: Poller[Main Poller] PID[611546] PT[139819335886400] ERROR: SS[0] PHP Script Server communications lost sending Command[/usr/share/cacti/scripts/ss_hstats.php ss_hstats '' polling_time

This happens every 5 minutes (spine polling). And I'm not able to identify which device is causing this. If I run spine from the linux prompt with "spine -R -V 3 -S" the output does'nt show any errors.
How can I find the cause of above errors?

regards,

Ivan
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: cacti 1.2.27/spine 1.2.27

Post by macan »

Two errors - maybe missing file /usr/share/cacti/scripts/cacti_user_stats.php or incorrect php path (/usr/bin/php)
You can download it from github from 1.2.x branch

compare your file /usr/share/cacti/scripts/ss_hstats.php with github version too
Let the Cacti grow!
ivansaez
Posts: 23
Joined: Wed May 29, 2024 2:45 am

Re: cacti 1.2.27/spine 1.2.27

Post by ivansaez »

Macan,

The scripts are not missing. /usr/bin/php is also correct.
And I see a difference between my version of cacti_user_stats.php and the github branch 1.2 version.
And I see no difference for ss_hstats.php
I do update cacti via dnf from the repo. I think branch 1.2 is not ye available.


Is there a way to test these scripts manually?

regards,

Ivan
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: cacti 1.2.27/spine 1.2.27

Post by macan »

try run this command manually
/usr/bin/php -q /usr/share/cacti/scripts/cacti_user_stats.php
Let the Cacti grow!
ivansaez
Posts: 23
Joined: Wed May 29, 2024 2:45 am

Re: cacti 1.2.27/spine 1.2.27

Post by ivansaez »

macan,

That seems to woks fine: /usr/bin/php -q /usr/share/cacti/scripts/cacti_user_stats.php
valid:0 invalid:0 active:0 sleeping:0 garbage:0 uactive:0 usleeping:0

It seems to me that cacti_user_stats.php is executed by the poller (every 5 minutes). And maybe thePOEN error is because some (process??) limit is readched??

regards,

Ivan
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests