graphs arent created anymore

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

Moderators: Developers, Moderators

Post Reply
Rupertt
Posts: 3
Joined: Tue Jul 18, 2017 3:24 am

graphs arent created anymore

Post by Rupertt »

Hi,

yesterday i didi add a host with a ping latency check,
just to get warm with cacti.
The demo local linux host did create 4 graphs already.

Since cacti did not create a graph for my test i did play a bit with the poller settings because there where/are some erros
in the cacti logfile. I got rid of them by tweking the php config.
Now there is this error left:

Code: Select all

2017-07-18 10:30:00 - SPINE: Poller[1] ERROR: Spine Timed Out While Processing Devices Internal 
Spine is taking a lot of CPU time:

Code: Select all

38259 cacti     20   0  234820   5480   3472 S  99.7  0.1   0:07.99 spine
Since i changed the settings none of the graphs has been updated since.
I can switch to realtime and the graphs are there, so the data is comming in.

I checked permissions on the rra folder, it is owned by cacti and others can write.

Code: Select all

-rw-r--r--. 1 cacti cacti 276K Jul 17 11:45 local_linux_machine_load_1min_2.rrd
-rw-r--r--. 1 cacti cacti  94K Jul 17 11:45 local_linux_machine_mem_buffers_4.rrd
-rw-r--r--. 1 cacti cacti  94K Jul 17 11:45 local_linux_machine_mem_swap_5.rrd
-rw-r--r--. 1 cacti cacti  94K Jul 17 11:45 local_linux_machine_proc_1.rrd
-rw-rw-rw-. 1 cacti cacti  94K Jul 17 11:45 local_linux_machine_users_3.rrd
-rw-r--r--  1 cacti cacti  94K Jul 18 10:35 nagios_vk-s1_ping_6.rrd

Code: Select all

drwxrwxrwx.  2 cacti  root    261 Jul 17 12:05 rra
the last file is written but no data is there, it started when i gave spine root permissions for use of icmp ping.
The others show data unteil the given time.

I also did change the time on the machine, it was running the wrong timezone.

How can i debug whats wrong?

Here the last entry of the logfile:

Code: Select all

2017-07-18 11:05:01 - SPINE: Poller[1] Time: 0.0831 s, Threads: 5, Devices: 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: Net-SNMP Close Completed
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: MYSQL Free & Close Completed
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: Allocated Variable Memory Freed
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: PHP Script Server Pipes Closed
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: Thread Cleanup Complete
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The Value of Active Threads is 4 for Device ID 2
2017-07-18 11:05:01 - SPINE: Poller[1] Device[2] Description[Nagios vk-s1] TH[1] DEBUG: HOST COMPLETE: About to Exit Device Polling Thread Function
2017-07-18 11:05:01 - SPINE: Poller[1] Device[2] Description[Nagios vk-s1] TH[1] Total Time: 0.042 Seconds
2017-07-18 11:05:01 - SPINE: Poller[1] Device[2] Description[Nagios vk-s1] TH[1] DS[6] Graphs['Nagios vk-s1 - Ping Latency'] SCRIPT: perl /usr/share/cacti/scripts/ping.pl '134.76.21.225', output: 0.527
2017-07-18 11:05:01 - SPINE: Poller[1] Device[2] Description[Nagios vk-s1] DEBUG: The NIFTY POPEN returned the following File Descriptor 8
2017-07-18 11:05:01 - SPINE: Poller[1] Device[2] Description[Nagios vk-s1] TH[1] NOTE: There are '1' Polling Items for this Device
2017-07-18 11:05:01 - SPINE: Poller[1] Device[2] Description[Nagios vk-s1] TH[1] Device has no information for recache.
2017-07-18 11:05:01 - SPINE: Poller[1] Device[2] Description[Nagios vk-s1] PING: Result ICMP: Device is Alive
2017-07-18 11:05:01 - SPINE: Poller[1] Device[2] Description[Nagios vk-s1] DEBUG: ICMP Device Alive, Try Count:1, Time:10.9200 ms
2017-07-18 11:05:01 - SPINE: Poller[1] Device[2] Description[Nagios vk-s1] DEBUG: Entering ICMP Ping
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The Value of Active Threads is 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: In Poller, About to Start Polling of Device for Device ID 2
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: Valid Thread to be Created
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: Initial Value of Active Threads is 0
2017-07-18 11:05:01 - SPINE: Poller[1] NOTE: Spine will support multithread device polling.
2017-07-18 11:05:01 - SPINE: Poller[1] SPINE: Initializing PHP Script Server(s)
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: Issues with SNMP Header Version information, assuming old version of Net-SNMP.
2017-07-18 11:05:01 - SPINE: Poller[1] SPINE: Initializing Net-SNMP API
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: Spine is running asroot.
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: MySQL is Thread Safe!
2017-07-18 11:05:01 - SPINE: Poller[1] Version 1.0.1 starting
2017-07-18 11:05:01 - SPINE: Poller[1] Selective Debug Devices 2,1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The Maximum SNMP OID Get Size is 10
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The PHP Script Server is Not Required
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: StartDevice='2', EndDevice='2', TotalPHPScripts='0'
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The number of php script servers to run is 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The spine_log_level variable is 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The selective_device_debug variable is 2,1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The script timeout is 50
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The number of concurrent processes is 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The polling interval is 300 seconds
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The threads variable is 5
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The log_pstats variable is 0
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The boost_redirect variable is 0
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The log_pwarn variable is 0
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The log_perror variable is 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The snmp_retries variable is 3
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The ping_timeout variable is 400
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The ping_retries variable is 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The ping_method variable is 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The ping_failure_count variable is 2
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The ping_recovery_count variable is 3
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The availability_method variable is 4
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The path_php variable is /bin/php
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The Value of Active Threads is 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: Valid Thread to be Created
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: Initial Value of Active Threads is 0
2017-07-18 11:05:01 - SPINE: Poller[1] NOTE: Spine will support multithread device polling.
2017-07-18 11:05:01 - SPINE: Poller[1] SPINE: Initializing PHP Script Server(s)
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: Issues with SNMP Header Version information, assuming old version of Net-SNMP.
2017-07-18 11:05:01 - SPINE: Poller[1] SPINE: Initializing Net-SNMP API
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: Spine is running asroot.
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: MySQL is Thread Safe!
2017-07-18 11:05:01 - SPINE: Poller[1] Version 1.0.1 starting
2017-07-18 11:05:01 - SPINE: Poller[1] Selective Debug Devices 2,1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The Maximum SNMP OID Get Size is 10
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The PHP Script Server is Not Required
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: StartDevice='0', EndDevice='1', TotalPHPScripts='0'
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The number of php script servers to run is 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The spine_log_level variable is 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The selective_device_debug variable is 2,1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The script timeout is 50
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The number of concurrent processes is 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The polling interval is 300 seconds
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The threads variable is 5
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The log_pstats variable is 0
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The boost_redirect variable is 0
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The log_pwarn variable is 0
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The log_perror variable is 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The snmp_retries variable is 3
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The ping_timeout variable is 400
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The ping_retries variable is 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The ping_method variable is 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The ping_failure_count variable is 2
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The ping_recovery_count variable is 3
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The availability_method variable is 4
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: The path_php variable is /bin/php
2017/07/18 11:05:01 - POLLER: Poller[1] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300.28', Max Runtime '298', Poller Runs: '1'
2017/07/18 11:05:01 - SYSTEM THOLD STATS: Time:0.0082 Tholds:0 TotalDevices:2 DownDevices:0 NewDownDevices:0
2017-07-18 11:05:01 - SPINE: Poller[1] Time: 299.5489 s, Threads: 5, Devices: 1
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: Net-SNMP Close Completed
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: MYSQL Free & Close Completed
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: Allocated Variable Memory Freed
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: PHP Script Server Pipes Closed
2017-07-18 11:05:01 - SPINE: Poller[1] DEBUG: Thread Cleanup Complete
2017-07-18 11:05:01 - SPINE: Poller[1] ERROR: Spine Timed Out While Processing Devices Internal 
strangely it talks about one device, but i have 2.
Rupertt
Posts: 3
Joined: Tue Jul 18, 2017 3:24 am

Re: graphs arent created anymore

Post by Rupertt »

mmh, i was bothered by the spine process that consumed all my CPU.
I switched to cmd.php and now it works fine...
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Re: graphs arent created anymore

Post by rony »

Make sure you thread count for Spine are not set to high.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests