Graphs doesn't work only shows Real-time

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
filozofd
Posts: 11
Joined: Mon Aug 05, 2024 6:45 am

Graphs doesn't work only shows Real-time

Post by filozofd »

Dear,

I have noticed there are a lot of topics about this subject but after checked I couldn't find solution.

I have only one device (for now) but only can see graphs info in real-time.

In logs I have>
POLLER: Poller[Main Poller] PID[2937] Maximum runtime of 298 seconds exceeded. Exiting

SYSTEM STATS: Time:299.3916 Method:spine Processes:5 Threads:50 Hosts:1 HostsPerProcess:1 DataSources:6 RRDsProcessed:0 ( I played and changed processes and trheads number but without success )

SYSTEM DSDEBUG STATS: Type:poller, ChecksPerformed:1, TotalIssues:0, Time:0.0160

I check spine and cmd.php and both provide same results.

Poller Sync Interval is 2 hours.
Poller Interval is 5 min.
Cron/Daemon Interval is 5 min.

Cacti version is 1.2.26 on unix.
RRDtool version is 1.7.2 on Linux ( on GUI i only can choose 1.7.2+ ).
Spine SPINE 1.2.26
Main Server: Current: 151, Min Required: 355 - this is red.

Main Poller - Polling time is 299.4 - this shoud be problem probably.

Cron setup: */5 * * * * www-data php /var/www/html/cacti/cacti-1.2.26/poller.php > /dev/null 2>&1

Also rra files www-data is chown.

Do you need something else for checking?

Thanks a lot in advance for help.
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Graphs doesn't work only shows Real-time

Post by macan »

for one device you don't need spine.
For a while disable poller in cron and try to run
php poller.php -d

and show result
Let the Cacti grow!
filozofd
Posts: 11
Joined: Mon Aug 05, 2024 6:45 am

Re: Graphs doesn't work only shows Real-time

Post by filozofd »

Dear,

Result:

Total[0.0005] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '239.64', Max Runtime '298', Poller Runs: '1'
Total[0.0165] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/spine/bin/spine, ARGS: -C '/usr/local/spine/etc/spine.conf' --poller=1 --first=0 --last=4 --mibs]
Waiting on 1 of 1 pollers.
2024-08-13 15:39:00 - SYSTEM STATS: Time:1.1372 Method:spine Processes:5 Threads:50 Hosts:1 HostsPerProcess:1 DataSources:6 RRDsProcessed:5
OK u:0.00 s:0.05 r:0.91
OK u:0.00 s:0.05 r:0.94
OK u:0.00 s:0.05 r:0.95
OK u:0.00 s:0.05 r:0.98
OK u:0.01 s:0.05 r:1.03
Total[1.3854] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cacti-1.2.26/poller_dsstats.php]
Total[1.3871] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cacti-1.2.26/poller_reports.php]
Total[1.3879] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/var/www/html/cacti/cacti-1.2.26/poller_spikekill.php']
Total[1.4006] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/var/www/html/cacti/cacti-1.2.26/poller_automation.php' -M]
Total[1.4212] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/var/www/html/cacti/cacti-1.2.26/poller_maintenance.php']
Total[1.4392] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cacti-1.2.26/poller_rrdcheck.php]


when i repeat command i got:
Total[0.0003] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '15.37', Max Runtime '298', Poller Runs: '1'
Total[0.0007] NOTE: Cron is configured to run too often! The Poller Interval is '300' seconds, with a minimum Cron period of '300' seconds, but only 15.4 seconds have passed since the poller last ran.

i disabled cron by adding # to be as comment in /etc/cron.d/cacti
filozofd
Posts: 11
Joined: Mon Aug 05, 2024 6:45 am

Re: Graphs doesn't work only shows Real-time

Post by filozofd »

Additional: i stopped cron service also

results is same whern run command php poller.php -d
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Graphs doesn't work only shows Real-time

Post by macan »

go to data collection -> data collectors -> edit poller -> set here 1 process and 5 threads and try again
Let the Cacti grow!
filozofd
Posts: 11
Joined: Mon Aug 05, 2024 6:45 am

Re: Graphs doesn't work only shows Real-time

Post by filozofd »

#/var/www/html/cacti/cacti-1.2.26# php poller.php -d
Total[0.0004] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '10205.16', Max Runtime '298', Poller Runs: '1'
Total[0.0008] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 10,205.2 seconds have passed since the last poll!
Total[0.0138] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/spine/bin/spine, ARGS: -C '/usr/local/spine/etc/spine.conf' --poller=1 --first=0 --last=0]
Total[0.1149] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/spine/bin/spine, ARGS: -C '/usr/local/spine/etc/spine.conf' --poller=1 --first=4 --last=4]
Waiting on 1 of 2 pollers.
OK u:0.00 s:0.01 r:1.00
OK u:0.00 s:0.01 r:1.00
OK u:0.00 s:0.01 r:1.00
OK u:0.00 s:0.01 r:1.00
OK u:0.00 s:0.01 r:1.00
2024-08-14 13:21:29 - SYSTEM STATS: Time:1.2143 Method:spine Processes:1 Threads:5 Hosts:1 HostsPerProcess:1 DataSources:6 RRDsProcessed:5
Total[1.2929] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cacti-1.2.26/poller_dsstats.php]
Total[1.2954] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cacti-1.2.26/poller_reports.php]
Total[1.2966] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/var/www/html/cacti/cacti-1.2.26/poller_spikekill.php']
Total[1.3151] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/var/www/html/cacti/cacti-1.2.26/poller_automation.php' -M]
Total[1.3277] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/var/www/html/cacti/cacti-1.2.26/poller_maintenance.php']
Total[1.3517] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cacti-1.2.26/poller_rrdcheck.php]

this is result by command, should back cron job and try or this is still not good.
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Graphs doesn't work only shows Real-time

Post by macan »

ok, poller is finishing on time now.

Please show result of
ls -al /path/to/cacti/rra/

ls -ald /path/to/cacti/rra
Let the Cacti grow!
filozofd
Posts: 11
Joined: Mon Aug 05, 2024 6:45 am

Re: Graphs doesn't work only shows Real-time

Post by filozofd »

Here it is>

total 7172
drwxrwxr-x 2 www-data www-data 4096 Aug 13 10:29 .
drwxrwxr-x 18 www-data www-data 4096 Aug 5 08:04 ..
-rwxrwxr-x 1 www-data www-data 1731 Dec 24 2023 .htaccess
-rw-r--r-- 1 www-data www-data 282440 Jul 31 09:29 local_linux_machine_load_1min_2.rrd
-rw-r--r-- 1 www-data www-data 95608 Jul 31 09:29 local_linux_machine_mem_buffers_4.rrd
-rw-r--r-- 1 www-data www-data 95608 Jul 31 09:29 local_linux_machine_mem_swap_5.rrd
-rw-r--r-- 1 www-data www-data 95608 Jul 31 09:29 local_linux_machine_proc_1.rrd
-rw-r--r-- 1 www-data www-data 95608 Jul 31 09:29 local_linux_machine_users_3.rrd
-rw-r--r-- 1 www-data www-data 95608 Aug 19 09:10 device_5min_cpu_105.rrd
-rw-r--r-- 1 www-data www-data 95608 Jul 26 09:56 device_5min_cpu_8.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_10.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_11.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_12.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_13.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_14.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_15.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_16.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_17.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_18.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_19.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_20.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_21.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_22.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_23.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_24.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_25.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_26.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_27.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_28.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_29.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_30.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_31.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_32.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_33.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_34.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_35.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_36.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_37.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_38.rrd
-rw-r--r-- 1 www-data www-data 189024 Jul 26 09:56 device_nonunicast_out_9.rrd
-rw-r--r-- 1 www-data www-data 95608 Aug 19 09:10 device_polling_time_103.rrd
-rw-r--r-- 1 www-data www-data 95608 Jul 26 09:56 device_polling_time_6.rrd
-rw-r--r-- 1 www-data www-data 95608 Aug 19 09:10 device_snmp_oid_106.rrd
-rw-r--r-- 1 www-data www-data 189024 Aug 19 09:10 device_traffic_in_107.rrd
-rw-r--r-- 1 www-data www-data 95608 Aug 19 09:10 device_uptime_104.rrd
-rw-r--r-- 1 www-data www-data 95608 Jul 26 09:56 device_uptime_7.rrd
root@linux:/var/www/html/cacti/cacti-1.2.26# ls -ald rra/
drwxrwxr-x 2 www-data www-data 4096 Aug 13 10:29 rra/
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Graphs doesn't work only shows Real-time

Post by macan »

Permissions are ok, but your rra files are not updated.

Go to Console -> Management -> Data Sources -> choose any DS -> Turn on data source info mode. In RRD File information is filename. Is here correct path? What is last_update?
Let the Cacti grow!
filozofd
Posts: 11
Joined: Mon Aug 05, 2024 6:45 am

Re: Graphs doesn't work only shows Real-time

Post by filozofd »

Go to Console -> Management -> Data Sources -> choose any DS -> Turn on data source info mode. In RRD File information is filename. Is here correct path? - Yes it is correct:filename: /var/www/html/cacti/cacti-1.2.26/rra/device_traffic_in_107.rrd

What is last_update? - this is: 1724051443 [2024-08-19 09:10:43]
filozofd
Posts: 11
Joined: Mon Aug 05, 2024 6:45 am

Re: Graphs doesn't work only shows Real-time

Post by filozofd »

I did now php poller.php -d manully and check last_update and it is changed with new date time.
filozofd
Posts: 11
Joined: Mon Aug 05, 2024 6:45 am

Re: Graphs doesn't work only shows Real-time

Post by filozofd »

Also, i notice I have now graph when manully do poller every 5 min.
filozofd
Posts: 11
Joined: Mon Aug 05, 2024 6:45 am

Re: Graphs doesn't work only shows Real-time

Post by filozofd »

I back cron but change user to run it, and now its work.

I will follow it some time.

Thank you a lot for help and your time!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests