Changing data input menthod stops rrd update in data source

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

Moderators: Developers, Moderators

Post Reply
grinch
Posts: 12
Joined: Tue Jul 31, 2007 3:57 pm

Changing data input menthod stops rrd update in data source

Post by grinch »

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!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Changing data input menthod stops rrd update in data sou

Post by BSOD2600 »

grinch wrote: Is there a way to debug the rrd updates?
Yes. Turn the logging level to debug in cacti and look through the log file after a polling session.
grinch
Posts: 12
Joined: Tue Jul 31, 2007 3:57 pm

Re: Changing data input menthod stops rrd update in data sou

Post by grinch »

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?


BSOD2600 wrote:
grinch wrote: Is there a way to debug the rrd updates?
Yes. Turn the logging level to debug in cacti and look through the log file after a polling session.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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?
grinch
Posts: 12
Joined: Tue Jul 31, 2007 3:57 pm

Post by grinch »

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?"


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?
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Whenever you modify a data input method, you have to rebuild the poller cache to propogate the changes to the poller cache.

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?
grinch
Posts: 12
Joined: Tue Jul 31, 2007 3:57 pm

Post by grinch »

Thought I already replied to this ....

Thanks! Works now. Could have sworn I tried that but I must have not waited long enough afterwards.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests