help,cacti upgrade no graph with cpu and memery

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

Moderators: Developers, Moderators

Post Reply
willwillwang
Posts: 2
Joined: Mon Oct 19, 2020 8:30 pm

help,cacti upgrade no graph with cpu and memery

Post by willwillwang »

i use the docker cacti&mysql to used.
now cacti can display interface traffice graph,but cpu&memery can't display graph and the debug mode is no data.

i can see the debug info is,but the data is null

RRDtool Graph Syntax
RRDtool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='1603153620' \
--end='1603155141' \
--pango-markup \
--title='AB-2960X-240 - CPU' \
--slope-mode \
--base=1000 \
--height=120 \
--width=500 \
--tabwidth '30' \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2020/10/20 08\:27\:00 To 2020/10/20 08\:52\:21\c" \
COMMENT:" \n" \
--border 1 --slope-mode \
--watermark 'Generated by Cacti' \
DEF:a='/cacti/rra/704/35343.rrd':'snmp_oid':AVERAGE \
AREA:a#F5F800FF: \
GPRINT:a:LAST:'Current\:%8.2lf %s' \
GPRINT:a:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:a:MAX:'Maximum\:%8.2lf %s\n'
RRDtool Command lengths = 568 charaters.
RRDtool Says:
OK

i'm not sure the error log about the problem

10/20/2020 09:33:07 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
10/20/2020 09:33:07 - ERROR PHP ERROR: Uncaught ArgumentCountError: Too few arguments to function ss_hstats(), 1 passed in /cacti/script_server.php on line 249 and exactly 2 expected in /cacti/scripts/ss_hstats.php:36 Stack trace: #0 /cacti/script_server.php(249): ss_hstats('uptime') #1 {main} thrown in file: /cacti/scripts/ss_hstats.php on line: 36
2020/10/20 09:33:07 - SPINE: Poller[Main Poller] PID[129714] ERROR: SS[0] PHP Script Server communications lost. Restarting PHP Script Server
10/20/2020 09:33:07 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
10/20/2020 09:33:07 - ERROR PHP ERROR: Uncaught ArgumentCountError: Too few arguments to function ss_hstats(), 1 passed in /cacti/script_server.php on line 249 and exactly 2 expected in /cacti/scripts/ss_hstats.php:36 Stack trace: #0 /cacti/script_server.php(249): ss_hstats('uptime') #1 {main} thrown in file: /cacti/scripts/ss_hstats.php on line: 36
2020/10/20 09:33:07 - SPINE: Poller[Main Poller] PID[129714] ERROR: SS[0] PHP Script Server communications lost. Restarting PHP Script Server
10/20/2020 09:33:07 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
10/20/2020 09:33:07 - ERROR PHP ERROR: Uncaught ArgumentCountError: Too few arguments to function ss_hstats(), 1 passed in /cacti/script_server.php on line 249 and exactly 2 expected in /cacti/scripts/ss_hstats.php:36 Stack trace: #0 /cacti/script_server.php(249): ss_hstats('polling_time') #1 {main} thrown in file: /cacti/scripts/ss_hstats.php on line: 36
2020/10/20 09:33:06 - SPINE: Poller[Main Poller] PID[129714] ERROR: SS[0] PHP Script Server communications lost. Restarting PHP Script Server
10/20/2020 09:33:06 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
10/20/2020 09:33:06 - ERROR PHP ERROR: Uncaught ArgumentCountError: Too few arguments to function ss_hstats(), 1 passed in /cacti/script_server.php on line 249 and exactly 2 expected in /cacti/scripts/ss_hstats.php:36 Stack trace: #0 /cacti/script_server.php(249): ss_hstats('uptime') #1 {main} thrown in file: /cacti/scripts/ss_hstats.php on line: 36
2020/10/20 09:33:05 - SPINE: Poller[Main Poller] PID[129714] ERROR: SS[0] PHP Script Server communications lost. Restarting PHP Script Server
10/20/2020 09:33:05 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
10/20/2020 09:33:05 - ERROR PHP ERROR: Uncaught ArgumentCountError: Too few arguments to function ss_hstats(), 1 passed in /cacti/script_server.php on line 249 and exactly 2 expected in /cacti/scripts/ss_hstats.php:36 Stack trace: #0 /cacti/script_server.php(249): ss_hstats('polling_time') #1 {main} thrown in file: /cacti/scripts/ss_hstats.php on line: 36
huybac.nguyen
Posts: 24
Joined: Mon Mar 07, 2011 2:02 am
Location: Viet Nam
Contact:

Re: help,cacti upgrade no graph with cpu and memery

Post by huybac.nguyen »

Please check some script file: example: /cacti/script_server.php
Your log show some script error, so i think it is cause to cannot get data of Server.
Backup file script, and change it to try.

Gook luck.
willwillwang
Posts: 2
Joined: Mon Oct 19, 2020 8:30 pm

Re: help,cacti upgrade no graph with cpu and memery

Post by willwillwang »

now the cpu graph is ok , the oid change
0.8.8a cacti i can use .1.3.6.1.4.1.9.9.109.1.1.1.1.5(cisco-cpu)
now 1.2.14 cacti i must use .1.3.6.1.4.1.9.9.109.1.1.1.1.5.1

thanks bro
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest