Hi,
I have done some script work which caused me to change the data input method in my data sources. When I implemented the new input methods yesterday, it seemed to work fine, updating the existing rrd files. Then, I had to revert back to old input methods due to some bugs in my scripts. Today, I went to put in the new input method and now the rrd file won't update.
If I create a new data source and use the same input method, everything works fine. If I revert back to the old data method, everything works fine. Its just when I use a new input method in an existing DS that things break.
I've tried to rebuild my poller cache, didn't help. I didn't change any of the values in the data source. I've looked at an rrdtool dump of the rrd file and it looks pretty similar.
Any ideas? Is there a way to debug the rrd updates?
Thanks in advance!
Changing data input menthod stops rrd update in data source
Moderators: Developers, Moderators
Re: Changing data input menthod stops rrd update in data sou
Yes. Turn the logging level to debug in cacti and look through the log file after a polling session.grinch wrote: Is there a way to debug the rrd updates?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: Changing data input menthod stops rrd update in data sou
Tried that, and the only reference I see in cacti.log is:
07/31/2007 11:12:36 PM - POLLER: Poller[0] Parsed MULTI output field 'AdsServed:0' [map Served->prod_5min_serv]
Doesn't mention why it isn't writing to the rrd file. Is there anything else I can do?
07/31/2007 11:12:36 PM - POLLER: Poller[0] Parsed MULTI output field 'AdsServed:0' [map Served->prod_5min_serv]
Doesn't mention why it isn't writing to the rrd file. Is there anything else I can do?
BSOD2600 wrote:Yes. Turn the logging level to debug in cacti and look through the log file after a polling session.grinch wrote: Is there a way to debug the rrd updates?
Alright, so looks like at least cacti is properly mapping the script output to the data template. Look for entires with CACTI2RRD for when cacti attempts to update the rrd file with the collected data.
In data sources, for the data source which your script has been using, is the path and rrd file its set to use, valid?
In data sources, for the data source which your script has been using, is the path and rrd file its set to use, valid?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
So I grep'ed for this rrd file in the cacti.log, and it didn't show up. The rrd file exists as I'm able to find it on the file system and do an rrdtool dump on it, and also it works for the old data input method.
In fact when I switch back and forth, I can see it get updated with the old input method, then just sit idle when I use the new method....and the new method happily runs on a different rrd file I have setup as test data source.
I guess the question becomes, "What would cause cacti to not write out to an rrd file for a specific combination of data source and input method?"
In fact when I switch back and forth, I can see it get updated with the old input method, then just sit idle when I use the new method....and the new method happily runs on a different rrd file I have setup as test data source.
I guess the question becomes, "What would cause cacti to not write out to an rrd file for a specific combination of data source and input method?"
BSOD2600 wrote:Alright, so looks like at least cacti is properly mapping the script output to the data template. Look for entires with CACTI2RRD for when cacti attempts to update the rrd file with the collected data.
In data sources, for the data source which your script has been using, is the path and rrd file its set to use, valid?
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Whenever you modify a data input method, you have to rebuild the poller cache to propogate the changes to the poller cache.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 2 guests