How to graph .rrd file that is generated by a 1wire script

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

Moderators: Developers, Moderators

Post Reply
ttyR2
Posts: 49
Joined: Sat Nov 13, 2004 1:30 am

How to graph .rrd file that is generated by a 1wire script

Post by ttyR2 »

One of the network analysts here set up a couple of temperature sensors using 1wire technology. They are being monitored by the serial interface on a couple of Dell servers. The script polls them, and spits out an .rrd file that is dropped into the /cacti/rra folder. Having never used Cacti for anything besides monitoring snmp devices, I'm looking for steps on how to proceed. I created a datasource, but when I go to create a new Graph, it only shows hosts (devices) and not the datasource I'm trying to graph. Can someone give me a brief rundown on the order in which I need to configure this?

Thanks!
Jeremy
ttyR2
Posts: 49
Joined: Sat Nov 13, 2004 1:30 am

Post by ttyR2 »

No ideas? The .rrd file is being created. I just need to know how to have a graph generated off of it. I can create a data source and point it at the file, but can't figure out how to generate the graph.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You need to have a graph template thats associated with objects in the Data Templates.

Actually, I'm not sure if one can get Cacti to graph a rrd file that itself is not polling.
cimel
Posts: 13
Joined: Wed Jan 19, 2005 8:47 am

Post by cimel »

I try to do the same thing.
Make a graph with an rrd file which already exists.
Have you find a solution or is it really impossible???
mandrake 10.0 nagios 2.0b1
nagios-plugins 1.4.0 php 4.3
mysql rrdtool 1.0.49
cacti 0.8.6c
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You can...

You just have to disable that particular host from being polled.

But you will have to update the rrd externally.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
cimel
Posts: 13
Joined: Wed Jan 19, 2005 8:47 am

Post by cimel »

Anyway cacti doesn't poll this data source,
how can I update this file externally???
My rrd file have only nan values :cry:
If you know how can I update it because I don't why the Nagios'plugin who create the file doesn't do it himself???
mandrake 10.0 nagios 2.0b1
nagios-plugins 1.4.0 php 4.3
mysql rrdtool 1.0.49
cacti 0.8.6c
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

???

What are you refering to?

What are you trying to acomplish?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
cimel
Posts: 13
Joined: Wed Jan 19, 2005 8:47 am

Post by cimel »

I try to explain what I want to do:
I used Nagios to monitor my subnet one of its plugin create rrd file with traffic information, I would like use THIS file with cacti and create a new one.

So I have an rrdfile but it seems nothing update it.
mandrake 10.0 nagios 2.0b1
nagios-plugins 1.4.0 php 4.3
mysql rrdtool 1.0.49
cacti 0.8.6c
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

So, the Nagios plugin checks the rrd and nagios alerts on that plugins response?

And you need cacti to update the RRD?

Or

Is Nagios updating the rrd's and you want cacti to show the graphs based on them? If so, you need to make sure that either the nagios plugin saves the values in the correct RRD data templates or that cacti knows what data templates to graph from the RRD.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest