Data Input from a .cvs file

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

Moderators: Developers, Moderators

Post Reply
metos
Posts: 16
Joined: Fri Mar 11, 2005 9:46 am

Data Input from a .cvs file

Post by metos »

Hello,

I've been looking for a tutorial or an explanation to create this king of graph:

data.cvs---------
TBL1;600;800
TBL2;120;1000
TBL3;80;300
-------------------

I'd like to have 3 differents graphes for TBL1 , TBL2 and TBL3.
Of course i can have 3 cvs files , but i don't understand how to create and configure Cacti to make this graph.

Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You'll have to write a script (Perl comes to mind) that will parse the CVS and spit out the values you're after.
metos
Posts: 16
Joined: Fri Mar 11, 2005 9:46 am

Post by metos »

OK, that's what i've already read.

i'd like to know the output format and the way to configure cacti to use it,

thanks
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Output format as such:

Code: Select all

Value1:Value Value2:Value Value3:value Value4:value
Avoid having a space at the end, it may cause issues depending on the poller you are using.
[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]
metos
Posts: 16
Joined: Fri Mar 11, 2005 9:46 am

Data query ?

Post by metos »

I had a Data Input Methods, but (if it is correct) then i tried to add a Data query and i had a problem. There is only one choice for the "Data Input Method" it is "Get SNMPD DATA (indexed)"

Is it because my xcacti version is a 0.8.5a ?

Thanks
metos
Posts: 16
Joined: Fri Mar 11, 2005 9:46 am

Looking for a simple exemple

Post by metos »

I've updated my cacti version (0.8.6c)

I can create a data query with my data input method, but it does'nt work when i try to apply this query to a divice.

If someone could give me a fully exemple.

I have a script (shell) which only print an output:
v1:10 v2:30

I'd just like to know how to monitore this value in Cacti (with the data query configuration and the XML file)

Thanks
metos
Posts: 16
Joined: Fri Mar 11, 2005 9:46 am

[Solved]

Post by metos »

I've found the solutuion with the help of Adrian Goins .

the soltuion is here:

http://www.nuxora.com/linux.php?n=cacti_dim

metos
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests