How add graph to host in MySQL?

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

Moderators: Developers, Moderators

Post Reply
lukaszt
Posts: 7
Joined: Thu Feb 09, 2012 9:54 am

How add graph to host in MySQL?

Post by lukaszt »

Hi.
I'm trying to add graphs of CPU utilisation to 200 hosts.
How i can add that massively?
I've search database from relations, but i can't find all.
I've do:

Code: Select all

create unique index host_graph_idx_tmp on host_graph (host_id, graph_template_id);
insert into host_graph (host_id, graph_template_id) select id, 88 from host where host_template_id = 12;
drop index host_graph_idx_tmp;
insert into graph_local (graph_template_id, host_id,snmp_query) select 88, id, 0 from host where host_template_id = 12;
insert into data_local (data_template_id, host_id, snmp_query_id) select 71, id, 0 from host where host_template_id = 12;
Where 88 is id graph template of CPU Util.
Some screens after SQL query in attachment.
Attachments
Console/Data Sources/Host
Console/Data Sources/Host
data_sources.png (93.51 KiB) Viewed 690 times
Console/Devices/Host/Graph List
Console/Devices/Host/Graph List
3.png (59.84 KiB) Viewed 690 times
Console/Devices/Host/Create graphs for this host
Console/Devices/Host/Create graphs for this host
2.png (8.25 KiB) Viewed 690 times
Console/Devices/Host
Console/Devices/Host
1.png (9.07 KiB) Viewed 690 times
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: How add graph to host in MySQL?

Post by Linegod »

Use the tools in the 'cli' folder.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
lukaszt
Posts: 7
Joined: Thu Feb 09, 2012 9:54 am

Re: How add graph to host in MySQL?

Post by lukaszt »

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

Re: How add graph to host in MySQL?

Post by gandalf »

Or use AUTOM8 plugin
R.
lukaszt
Posts: 7
Joined: Thu Feb 09, 2012 9:54 am

Re: How add graph to host in MySQL?

Post by lukaszt »

Thanks.
I've used tools from cli dir, it works.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests