|
|
| Author |
Message |
fransh
Joined: 20 Feb 2007 Posts: 16
|
Posted: Fri Mar 02, 2007 6:26 am Post subject: timestamp in scripts ? |
|
|
| Does cacti check for a timestamp in the output of a script ? Or do I just define a "timestamp" field ? |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9723 Location: MI, USA
|
Posted: Fri Mar 02, 2007 7:25 am Post subject: |
|
|
In the most recent version of Cacti, it respects the timestamp of the host currently being polled and when that poll starts. That is the default behavior and I don't plan on changing it. So, if you case is compelling, then lay it out.
TheWitness |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Fri Mar 02, 2007 3:32 pm Post subject: |
|
|
I understood, that providing a timestamp field defined by the script should be accepted by cacti. So the rrdtool update timestamp is not defined by the polling time.
We have a similar problem when polling data from a DB2 table. A timestamp is provoded by the table. This timestamp defines the point in time when the table was filled. It's required to use this timestamp when rrdtool updating.
AFAIK, this is possible only when "externally updating rrdtool files" as given by my howto somewhere on the forums (not yet ported to the docs.cacti.net). I would be happy, if some magic would allow for accepting some output field like "timestamp"
Reinhard |
|
| Back to top |
|
 |
|