Help on a script-addon...

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

Moderators: Developers, Moderators

Post Reply
yid
Cacti User
Posts: 83
Joined: Sat Apr 20, 2002 8:26 pm

Help on a script-addon...

Post by yid »

I'm writing a script to add datasources, rras, graphs, and graph_items via command line, so that I can automate some of my graph creation.

In working on the graph_item portion, I found that the "TextFormat" field is a binary object. What is that? If I don't specify anything, will the graph_items get created?

Let me know,
yid
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

I wasn't quite sure, but I double checked and it sure is a binary object. Not sure what I was thinking when created that table, but I see no reason why you could not convert it to a CHAR(255) field or whatnot.

Try executing this and see what happens:

Code: Select all

ALTER TABLE `rrd_graph_item` CHANGE `TextFormat` `TextFormat` CHAR( 255 ) DEFAULT NULL;
-Ian
yid
Cacti User
Posts: 83
Joined: Sat Apr 20, 2002 8:26 pm

Post by yid »

Once I figured out what was actually in that field, I tried inserting text into it (today actually), and it worked without even converting it.

Maybe on a later release you could just convert it to a char field, but its not a big deal regardless.

Thanks,
Aaron
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests