| 
									
										
										
										
											2017-02-23 22:45:50 +00:00
										 |  |  | source: Support/1-Minute-Polling.md | 
					
						
							| 
									
										
										
										
											2018-10-27 23:04:34 +01:00
										 |  |  | path: blob/master/doc/ | 
					
						
							| 
									
										
										
										
											2017-02-23 22:45:50 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-18 21:25:53 -05:00
										 |  |  | # Information
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-02-23 22:45:50 +00:00
										 |  |  | We now have support for polling data at intervals to fit your needs. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | > Please be aware of the following:
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-27 09:07:32 -05:00
										 |  |  | - If you just want faster up/down alerts, [Fast Ping](../Extensions/Fast-Ping-Check/) is a much | 
					
						
							| 
									
										
										
										
											2020-10-03 11:33:59 -05:00
										 |  |  |   easier path to that goal.  | 
					
						
							| 
									
										
										
										
											2019-07-18 21:25:53 -05:00
										 |  |  | - You must also change your cron entry for `poller-wrapper.py` for | 
					
						
							|  |  |  |   this to work (if you change from the default 300 seconds). | 
					
						
							|  |  |  | - Your polling _MUST_ complete in the time you configure for the | 
					
						
							| 
									
										
										
										
											2020-03-13 20:58:37 +01:00
										 |  |  |   heartbeat step value. See `/poller` in your WebUI for | 
					
						
							| 
									
										
										
										
											2019-07-18 21:25:53 -05:00
										 |  |  |   your current value. | 
					
						
							|  |  |  | - This will only affect RRD files created from the moment you change | 
					
						
							|  |  |  |   your settings. | 
					
						
							|  |  |  | - This change will affect all data storage mechanisms such as MySQL, | 
					
						
							|  |  |  |   RRD and InfluxDB. If you decrease the values then please be aware of | 
					
						
							|  |  |  |   the increase in space use for MySQL and InfluxDB. | 
					
						
							|  |  |  | - It's **highly recommended** to configure some [performance | 
					
						
							|  |  |  |   optimizations](Performance.md). Keep in mind that all your devices | 
					
						
							|  |  |  |   will write all graphs every minute to the disk and that every device | 
					
						
							|  |  |  |   has many graphs. The most important thing is probably the | 
					
						
							|  |  |  |   [RRDCached](../Extensions/RRDCached.md) configuration that can save | 
					
						
							|  |  |  |   a lot of write IOPS. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-10-21 11:01:12 +02:00
										 |  |  | To make the changes, please navigate to `/settings/poller/rrdtool/` | 
					
						
							| 
									
										
										
										
											2019-07-18 21:25:53 -05:00
										 |  |  | within your WebUI. Select RRDTool Setup and then update the two values | 
					
						
							|  |  |  | for step and heartbeat intervals: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | - Step is how often you want to insert data, so if you change to 1 | 
					
						
							|  |  |  |   minute polling then this should be 60. | 
					
						
							|  |  |  | - Heartbeat is how long to wait for data before registering a null | 
					
						
							|  |  |  |   value, i.e 120 seconds. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Converting existing RRD files
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | We provide a basic script to convert the default rrd files we generate | 
					
						
							|  |  |  | to utilise your configured step and heartbeat values. Please do ensure | 
					
						
							|  |  |  | that you backup your RRD files before running this just in case. The | 
					
						
							|  |  |  | script runs on a per device basis or all devices at once. | 
					
						
							| 
									
										
										
										
											2017-03-11 13:32:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | > The rrd files must be accessible from the server you run this script from.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | `./scripts/rrdstep.php` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | This will provide the help information. To run it for localhost just run: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | `./scripts/rrdstep.php -h localhost` |