Create .rrd file manually

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

Moderators: Developers, Moderators

Post Reply
ThomasH
Posts: 9
Joined: Tue Jul 10, 2018 5:02 pm

Create .rrd file manually

Post by ThomasH »

Hello together,

lately my cacti installation had some access rights problems, therefore no .rrd files could be created.
I set up all configurations and the retrievement of all information works fine.
The access rights are now fine, but don't get the .rrd files processed.

Because I don't want to delete and recreate all configurations I'm looking for a solution how to create .rrd files to my configurations manually.
I already created an empty .rrd file with the correct config name, but hasn't been updated.

Can you please give me an hint, how the .rrds will get created/processed?
Thank you in advance.
Thomas
ThomasH
Posts: 9
Joined: Tue Jul 10, 2018 5:02 pm

Re: Create .rrd file manually

Post by ThomasH »

hmm still looking forward for your help to get cacti running. I didn't find any solution until now.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Create .rrd file manually

Post by netniV »

You don't manually create the RRDs, the poller.php file runs the functions that creates them for you so ensure you have a cron entry defined that runs it.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
ThomasH
Posts: 9
Joined: Tue Jul 10, 2018 5:02 pm

Re: Create .rrd file manually

Post by ThomasH »

Hello. Thank you for your responce. The poller runs well.

Code: Select all

02.07.2019 00:05:05 - SYSTEM DSSTATS STATS: Type:DAILY, Time:0.0262 RRDUser:0.0000 RRDSystem:0.0000 RRDReal:0.0000
02.07.2019 00:05:05 - DSSTATS WARNING: File '/usr/share/cacti/site/rra/network-server_downstreamattenuati_13.rrd' DS[network-server - Fritzbox Data] Graphs[network-server - possible Data Rates] Does not exist
02.07.2019 00:05:05 - DSSTATS WARNING: File '/usr/share/cacti/site/rra/network-server_downstreamattenuati_12.rrd' DS[network-server - Fritzbox Data] Graphs[network-server - Signal Power] Does not exist
02.07.2019 00:05:05 - DSSTATS WARNING: File '/usr/share/cacti/site/rra/network-server_users_11.rrd' DS[network-server - Logged in Users] Graphs[network-server - Logged in Users] Does not exist
02.07.2019 00:05:05 - DSSTATS WARNING: File '/usr/share/cacti/site/rra/network-server_proc_10.rrd' DS[network-server - Processes] Graphs[network-server - Processes] Does not exist
02.07.2019 00:05:05 - DSSTATS WARNING: File '/usr/share/cacti/site/rra/network-server_mem_swap_9.rrd' DS[network-server - Memory - Free Swap] Graphs[network-server - Memory Usage] Does not exist
02.07.2019 00:05:05 - DSSTATS WARNING: File '/usr/share/cacti/site/rra/network-server_mem_buffers_8.rrd' DS[network-server - Memory - Free] Graphs[network-server - Memory Usage] Does not exist
02.07.2019 00:05:05 - DSSTATS WARNING: File '/usr/share/cacti/site/rra/network-server_hdd_free_7.rrd' DS[network-server - Free Space - /dev/sda2] Graphs[network-server - Disk Space - /dev/sda2] Does not exist
02.07.2019 00:05:05 - DSSTATS WARNING: File '/usr/share/cacti/site/rra/network-server_hdd_free_7.rrd' DS[network-server - Free Space - /dev/sda2] Graphs[network-server - Disk Space - /dev/sda2] Does not exist
02.07.2019 00:05:05 - DSSTATS WARNING: File '/usr/share/cacti/site/rra/network-server_totalbytesreceived_6.rrd' DS[network-server - DSL Traffic] Graphs[network-server - Traffic] Does not exist
02.07.2019 00:05:05 - SYSTEM DSSTATS STATS: Type:HOURLY, Time:0.0030 RRDUser:0.0000 RRDSystem:0.0000 RRDReal:0.0000
02.07.2019 00:05:05 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyDeviceFailedPoll (CACTI-MIB), severity: medium
02.07.2019 00:05:05 - SYSTEM STATS: Time:3.2409 Method:spine Processes:1 Threads:1 Hosts:1 HostsPerProcess:1 DataSources:10 RRDsProcessed:0
2019.07.02 00:05:04 - SPINE: Poller[Main Poller] Time: 3.0261 s, Threads: 1, Devices: 1
2019.07.02 00:05:04 - SPINE: Poller[Main Poller] SPINE: The Final Value of Threads is 0
2019.07.02 00:05:03 - SPINE: Poller[Main Poller] POLLR: Active Threads is 0, Pending is 0
2019.07.02 00:05:03 - SPINE: Poller[Main Poller] Device[network-server] TH[1] Total Time: 2 Seconds
2019.07.02 00:05:03 - SPINE: Poller[Main Poller] Device[network-server] TH[1] NOTE: There are '10' Polling Items for this Device
2019.07.02 00:05:03 - SPINE: Poller[Main Poller] Device[network-server] SNMP Result: Device did not respond to SNMP
2019.07.02 00:05:03 - SPINE: Poller[Main Poller] Device[network-server] SNMP Ping Timeout
2019.07.02 00:05:01 - SPINE: Poller[Main Poller] SPINE: Active Threads is 1, Pending is 1
2019.07.02 00:05:01 - SPINE: Poller[Main Poller] DEBUG: Initial Value of Active Threads is 0
2019.07.02 00:05:01 - SPINE: Poller[Main Poller] NOTE: Spine will support multithread device polling.
2019.07.02 00:05:01 - SPINE: Poller[Main Poller] Time: 0.0164 s, Threads: 1, Devices: 0
2019.07.02 00:05:01 - SPINE: Poller[Main Poller] SPINE: The Final Value of Threads is 0
2019.07.02 00:05:01 - SPINE: Poller[Main Poller] DEBUG: Initial Value of Active Threads is 0
2019.07.02 00:05:01 - SPINE: Poller[Main Poller] NOTE: Spine will support multithread device polling.
02.07.2019 00:05:01 - POLLER: Poller[Main Poller] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300.78', Max Runtime '298', Poller Runs: '1' 
And with debug level I'm getting this:

Code: Select all

02.07.2019 00:40:05 - AUTOM8 [PID: 3942] Not time to Run Discovery for 'Test Network'
02.07.2019 00:40:05 - SYSTEM DSSTATS STATS: Type:HOURLY, Time:0.0073 RRDUser:0.0000 RRDSystem:0.0000 RRDReal:0.0000
02.07.2019 00:40:04 - POLLER: Poller[Main Poller] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/usr/share/cacti/site/poller_maintenance.php']
02.07.2019 00:40:04 - POLLER: Poller[Main Poller] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/usr/share/cacti/site/poller_automation.php' -M]
02.07.2019 00:40:04 - POLLER: Poller[Main Poller] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/usr/share/cacti/site/poller_spikekill.php']
02.07.2019 00:40:04 - POLLER: Poller[Main Poller] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/site/poller_reports.php]
02.07.2019 00:40:04 - POLLER: Poller[Main Poller] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/site/poller_dsstats.php]
02.07.2019 00:40:04 - SYSTEM STATS: Time:3.2377 Method:spine Processes:1 Threads:1 Hosts:1 HostsPerProcess:1 DataSources:10 RRDsProcessed:0
2019.07.02 00:40:04 - SPINE: Poller[Main Poller] Time: 3.0281 s, Threads: 1, Devices: 1
2019.07.02 00:40:04 - SPINE: Poller[Main Poller] DEBUG: Net-SNMP Close Completed
2019.07.02 00:40:04 - SPINE: Poller[Main Poller] DEBUG: MYSQL Free & Close Completed
2019.07.02 00:40:04 - SPINE: Poller[Main Poller] DEBUG: Allocated Variable Memory Freed
2019.07.02 00:40:04 - SPINE: Poller[Main Poller] DEBUG: PHP Script Server Pipes Closed
2019.07.02 00:40:04 - SPINE: Poller[Main Poller] DEBUG: Thread Cleanup Complete
2019.07.02 00:40:04 - SPINE: Poller[Main Poller] SPINE: The Final Value of Threads is 0
2019.07.02 00:40:03 - SPINE: Poller[Main Poller] POLLR: Active Threads is 0, Pending is 0
2019.07.02 00:40:03 - SPINE: Poller[Main Poller] DEBUG: The Value of Active Threads is 0 for Device ID 1
2019.07.02 00:40:03 - SPINE: Poller[Main Poller] Device[Thomas-Mini] TH[1] DEBUG: HOST COMPLETE: About to Exit Device Polling Thread Function
2019.07.02 00:40:03 - SPINE: Poller[Main Poller] Device[Thomas-Mini] TH[1] Total Time: 2 Seconds
2019.07.02 00:40:03 - SPINE: Poller[Main Poller] Device[Thomas-Mini] TH[1] NOTE: There are '10' Polling Items for this Device
2019.07.02 00:40:03 - SPINE: Poller[Main Poller] Device[Thomas-Mini] SNMP Result: Device did not respond to SNMP
2019.07.02 00:40:03 - SPINE: Poller[Main Poller] Device[Thomas-Mini] SNMP Ping Timeout
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] Device[Thomas-Mini] DEBUG: Entering SNMP Ping
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: In Poller, About to Start Polling of Device for Device ID 1
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] SPINE: Active Threads is 1, Pending is 1
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: Valid Thread to be Created
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: Initial Value of Active Threads is 0
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] NOTE: Spine will support multithread device polling.
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] SPINE: Initializing PHP Script Server(s)
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: Issues with SNMP Header Version information, assuming old version of Net-SNMP.
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] SPINE: Initializing Net-SNMP API
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: Spine is running asroot.
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: MySQL is Thread Safe!
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] Version 1.1.38 starting
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The Maximum SNMP OID Get Size is 10
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The PHP Script Server is Not Required
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: StartDevice='1', EndDevice='1', TotalPHPScripts='0'
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The number of php script servers to run is 1
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The spine_log_level variable is 0
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The selective_device_debug variable is
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The script timeout is 25
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The number of concurrent processes is 1
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The polling interval is 300 seconds
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The threads variable is 1
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The log_pstats variable is 0
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The boost_rrd_update_enable variable is 0
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The boost_redirect variable is 0
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The log_pwarn variable is 1
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The log_perror variable is 1
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The snmp_retries variable is 3
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The ping_timeout variable is 400
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The ping_retries variable is 1
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The ping_method variable is 2
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The ping_failure_count variable is 2
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The ping_recovery_count variable is 3
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The availability_method variable is 2
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The path_php variable is /usr/bin/php
02.07.2019 00:40:01 - POLLER: Poller[Main Poller] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/spine/bin/spine, ARGS: -C '/usr/local/spine/etc/spine.conf.dist' --poller=1 --first=1 --last=1 --mibs]
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] Time: 0.0198 s, Threads: 1, Devices: 0
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: Net-SNMP Close Completed
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: MYSQL Free & Close Completed
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: Allocated Variable Memory Freed
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: PHP Script Server Pipes Closed
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: Thread Cleanup Complete
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] SPINE: The Final Value of Threads is 0
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: Initial Value of Active Threads is 0
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] NOTE: Spine will support multithread device polling.
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] SPINE: Initializing PHP Script Server(s)
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: Issues with SNMP Header Version information, assuming old version of Net-SNMP.
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] SPINE: Initializing Net-SNMP API
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: Spine is running asroot.
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: MySQL is Thread Safe!
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] Version 1.1.38 starting
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The Maximum SNMP OID Get Size is 10
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The PHP Script Server is Not Required
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: StartDevice='0', EndDevice='0', TotalPHPScripts='0'
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The number of php script servers to run is 1
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The spine_log_level variable is 0
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The selective_device_debug variable is
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The script timeout is 25
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The number of concurrent processes is 1
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The polling interval is 300 seconds
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The threads variable is 1
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The log_pstats variable is 0
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The boost_rrd_update_enable variable is 0
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The boost_redirect variable is 0
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The log_pwarn variable is 1
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The log_perror variable is 1
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The snmp_retries variable is 3
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The ping_timeout variable is 400
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The ping_retries variable is 1
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The ping_method variable is 2
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The ping_failure_count variable is 2
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The ping_recovery_count variable is 3
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The availability_method variable is 2
2019.07.02 00:40:01 - SPINE: Poller[Main Poller] DEBUG: The path_php variable is /usr/bin/php
02.07.2019 00:40:01 - POLLER: Poller[Main Poller] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/spine/bin/spine, ARGS: -C '/usr/local/spine/etc/spine.conf.dist' --poller=1 --first=0 --last=0 --mibs]
02.07.2019 00:40:01 - POLLER: Poller[Main Poller] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '299.54', Max Runtime '298', Poller Runs: '1' 
The DSSTATS WARNING I'm not getting it for every poll.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Create .rrd file manually

Post by netniV »

That log suggests that there is nothing enabled for spine to query... at least thats how my tired brain is interpreting it this evening. Also, that looks like 1.2.x, so may sure you have spine updated to 1.2.x too and have set values against the poller for threads etc.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Create .rrd file manually

Post by Osiris »

Have you run spine by hand yet? Seems spine is not running.
./spine -R -V 3 -S
Before history, there was a paradise, now dust.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests