Modifying time per data source ?

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
henryd31
Posts: 30
Joined: Wed Apr 13, 2005 3:11 pm

Modifying time per data source ?

Post by henryd31 »

Is it possible to take time log from a machine that I run a script on
to be somehow used by the cacti in the display instead of using the
time on cacti machine itself ? I have a script running on cacti that
basically logs into a remote machine and collects a data from a log file
which is my output for my DS in cacti. The log file on the remote is
populated by yet another, foreign tool/script. Would it be possible to
somehow rewrite or integrate the time reported in that log file into the
cacti graph ?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is definately problematic. Cacti stores the polling results in the poller_output table and is not designed to utilize other times.

Therefore, this has to be a feature request. I moved the post to reflect that. It appears to be a corner case. Unless you can provide a good reason why, it is likely not going to receive a very high priority.

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?
henryd31
Posts: 30
Joined: Wed Apr 13, 2005 3:11 pm

Post by henryd31 »

Thanks for a quick reply, as always :-)
Anyway, it's not the biggest deal for me, it appears that basically the need
for it comes from the fact I won't be able to run anything against the
actual machine where data comes from and therefore need to rely on
the log file on the remote machine for the data. And since that is the case,
the time when data gets populated in the log file on the remote is off or
rather not the time when cacti executes therefore the need for some
workaround. If this gets any attention for future, then more power to you
guys, more versatility but I understand the lesser importance of it.

If you ever get to it, great. Was basically looking to see if there was
anyone else to come across this issue and making sure I'm not missing
anything.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Henry,

You could have your Cacti script open the file and then write directly to the poller_output table. We would not officially support it, but it shoudl work as long as your script is spawned by the poller during a poller cycle.

Larry
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?
henryd31
Posts: 30
Joined: Wed Apr 13, 2005 3:11 pm

Post by henryd31 »

Interesting, since I'm not really a script guru, just modifying other people's
work to fit my need - I know, not a lot of creativity, but then again this is
not the primary function of my job - is there an easy way to try this out ?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests