Graphing existing RRD files with Cacti

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

Moderators: Developers, Moderators

Post Reply
samwsm
Posts: 4
Joined: Thu Nov 12, 2009 10:16 pm

Graphing existing RRD files with Cacti

Post by samwsm »

Hi

So i created a dummy rrd, populated it with some dummy values.

If i use

Code: Select all

rrdtool graph
I can get the graph of the data i entered without any problem.

But it seems to me that i can only gather/graph data from a host

My question is: Is it possible to graph non SNMP data in Cacti? How would i do this simple graphing with Cacti?

Thank you for your time answering this newbie question

sAm
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

samwsm
Posts: 4
Joined: Thu Nov 12, 2009 10:16 pm

Post by samwsm »

Thank you for your reply, it was helpful.

I would still like to know, in Data Input Methods -> Output Fields, is it possible to have time in the output fields.
For example:

Code: Select all

Time:Data
1226451240:46
1226451840:48
1226452440:44
where Time is assigned to the data, instead of

Code: Select all

Time:1226451240 Data:46
Time:1226451840 Data:48
Time:1226452440 Data:44 
where both being stored as seperate Data Sources?[/code]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

It would be, in principle, possible to pass a field "time" to rrdtool. When doing so, only the second method is accepted.
But you want be happy with the result. Cacti is currently NOT able to accept a foreign timestamp. If there's a need to do so, you will have to do the rrd update on your own, providing your timestamp. Cacti will still be able to graph the data.
There's a howto that describes "externally updated data sources" at the 1st link of my sig
R.
samwsm
Posts: 4
Joined: Thu Nov 12, 2009 10:16 pm

Post by samwsm »

Thanks, that works, here is my final question:

when graphing, with debug mode on, i see

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-600 \
...
is there a way to manually set the start and end time? instead of graphing from (now)-86400 to (now)-600
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yes, there's a way: use the timeshifter. Switch to the GRAPHS mode and select any method of defining a start/end timestamp, either
- preset
- start/stop date/time by using the time picker
- shifting start/stop left or right
- define start/stop manually using the input fields
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest