listings graphs

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
thanhtruong
Posts: 1
Joined: Sun Oct 11, 2020 11:13 pm

listings graphs

Post by thanhtruong »

i don't know if i can ask this here...

can i have a sql statement for listing the graphs ids per host ?
this sql statement must list only graphs ids which have the associated datasource on

currently, i have this :
CODE: SELECT ALL

$sql = "SELECT * FROM graph_local where host_id = '<id>'";
this give me 6 results on a particular host and i know this host have only 5 graphs and 5 datasources
and i don't know how to select only graphs with active datasources

thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests