Graph Stop Working After Upgrade

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

Moderators: Developers, Moderators

Post Reply
halimzhz
Posts: 20
Joined: Mon Nov 09, 2015 2:56 pm

Graph Stop Working After Upgrade

Post by halimzhz »

Dear all,

I just upgrade my cacti version 0.8.8 to the latest version 1.2.20 and i found my graph doesnt update anymore, if you see the attachment, the 'Current Load: 1.29' is updated, but the blue color on graph stop update since few hours ago, may i know what the cause of that ?

Thank you
Attachments
cacti_error.png
cacti_error.png (182.01 KiB) Viewed 1074 times
halimzhz
Posts: 20
Joined: Mon Nov 09, 2015 2:56 pm

Re: Graph Stop Working After Upgrade

Post by halimzhz »

Hi,

I'm sorry, the 'Current Load: 1.29' is old, its doesnt update too, i test my input string from Linux command line:

/var/www/html/cacti/scripts/loadavgserver.pl <ip>

There no issue, may i know what the cause ? Please help. TQ
halimzhz
Posts: 20
Joined: Mon Nov 09, 2015 2:56 pm

Re: Graph Stop Working After Upgrade

Post by halimzhz »

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

Re: Graph Stop Working After Upgrade

Post by macan »

check cacti log
Let the Cacti grow!
halimzhz
Posts: 20
Joined: Mon Nov 09, 2015 2:56 pm

Re: Graph Stop Working After Upgrade

Post by halimzhz »

Hi Macan

Nothing suspicious on cacti.log and poller.log :cry: :cry: :cry:
halimzhz
Posts: 20
Joined: Mon Nov 09, 2015 2:56 pm

Re: Graph Stop Working After Upgrade

Post by halimzhz »

Hi

So far only graph based on SNMP are working, all graph running with scripts/command are stop updating :cry: :cry: :cry: :cry: :cry:
halimzhz
Posts: 20
Joined: Mon Nov 09, 2015 2:56 pm

Re: Graph Stop Working After Upgrade

Post by halimzhz »

Hi,

I try to enable DEBUG and i run

/usr/bin/php /var/www/html/cacti/cmd.php

And the result

29/04/2022 13:59:56 - POLLER: Poller[1] PID[29786] Device[0] DS[2228] TT[290.04] SCRIPT: /var/www/html/cacti/scripts/disktemp.pl 'xx.xx.109.22', output: sda:20 sdb:25 sdc:26
29/04/2022 13:59:56 - POLLER: Poller[1] PID[29786] Device[0] DS[2229] TT[294.13] SCRIPT: /var/www/html/cacti/scripts/disktemp.pl 'xx.xx.41.212', output: sda:19 sdb:26 sdc:26
29/04/2022 13:59:57 - POLLER: Poller[1] PID[29786] Device[0] DS[2230] TT[248.24] SCRIPT: /var/www/html/cacti/scripts/disktemp.pl 'xx.xx.41.221', output: sda:20 sdb:26 sdc:27
29/04/2022 13:59:57 - POLLER: Poller[1] PID[29786] Device[0] DS[2231] TT[683.3] SCRIPT: /var/www/html/cacti/scripts/disktemp.pl 'xx.xx.109.36', output: sda:20 sdb:22 sdc:25

I think all is fine, but why with latest version only work with SNMP but not any Scripts/Command ?

Please help. TQ
Attachments
disktemp.JPG
disktemp.JPG (58.03 KiB) Viewed 1059 times
halimzhz
Posts: 20
Joined: Mon Nov 09, 2015 2:56 pm

Re: Graph Stop Working After Upgrade

Post by halimzhz »

Hi

Im very sorry, on my early post, i mention about upgrading from 0.8.8 to 1.2.20, but the correct is, i upgrade from 1.1.38 to 1.2.20

And after few hours test about permission etc, i restore back my ealier cacti 1.1.38 and due to PHP 7.4 compatiblity, i upgrade my cacti 1.1.38 to 1.2.7 and all my scripts its work, so i beleive theres a bug on 1.2.20, so i hope the script contributor will look into this issue

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

Re: Graph Stop Working After Upgrade

Post by macan »

It could be problem in your script /var/www/html/cacti/scripts/disktemp.pl

When you run it manually, it works. When it's triggered by the poller, it fail? It seems like problem with paths in scripts. Add path variable or full path for every command in your pl script
Let the Cacti grow!
halimzhz
Posts: 20
Joined: Mon Nov 09, 2015 2:56 pm

Re: Graph Stop Working After Upgrade

Post by halimzhz »

macan wrote: Wed May 04, 2022 3:16 am It could be problem in your script /var/www/html/cacti/scripts/disktemp.pl

When you run it manually, it works. When it's triggered by the poller, it fail? It seems like problem with paths in scripts. Add path variable or full path for every command in your pl script
Hi

I'm sorry for late respond due to long holiday in my country, yes its work when run manually, but you may forgot what i mention ealier, the poller work with cacti 1.1.38 and 1.2.7 but its doesnt work with the latest then that, even i run so many time rebuild poller cache but its doesnt help.

TQ
halimzhz
Posts: 20
Joined: Mon Nov 09, 2015 2:56 pm

Re: Graph Stop Working After Upgrade

Post by halimzhz »

Hi,

Is it possible because of my Database is Mariadb 5.5 and not Mariadb 10 ?

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

Re: Graph Stop Working After Upgrade

Post by macan »

try to switch to cmd poller. Is it working?
Let the Cacti grow!
halimzhz
Posts: 20
Joined: Mon Nov 09, 2015 2:56 pm

Re: Graph Stop Working After Upgrade

Post by halimzhz »

Dear All,

After doing some test, upgrade version by version from 1.1.38 until 1.2.17, i'm also upgrade mariadb to 10.3, what i can say the scripts/command only work up to v1.2.16, after that version my scripts/command dorsnt work and the graph is stop updating, i try so many thing such as run rebuild poller cache everytime upgrade version, make a full path such as /usr/bin/perl /var/www/html/cacti/scripts/loadavgserver.pl <ip> etc, but its only work up to 1.2.16 only

Please advice. TQ
halimzhz
Posts: 20
Joined: Mon Nov 09, 2015 2:56 pm

Re: Graph Stop Working After Upgrade

Post by halimzhz »

Hi

AT LAST all is work when i switch cmd.php to spine, wow, so many days i spend. Now 1.2.20 works too. Conclusion after 1.2.16 cmd.php doesnt work anymore with Scripts/Command but must switch to spine.

Thanks for all.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest