Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


url to query all graphs for a specific device ???

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: General
Author Message
repudi8or



Joined: 25 Sep 2007
Posts: 20

PostPosted: Mon May 26, 2008 7:29 pm    Post subject: url to query all graphs for a specific device ??? Reply with quote

Hi Folks,

Just wondering how I tailor the url to present the preview page for all graphs for device X ??

I can do :-

http://mycactiserver/cacti/graph_view.php?action=preview&host_id=1&graph_template_id=0&filter=

To get all preview graphs for host_id #1

but if host_id 1 = device solarisserver1

how can i make something similar to this work :-
http://mycactiserver/cacti/graph_view.php?action=preview&host_name=solarisserver1&graph_template_id=0&filter=

and have the same graphs as the first url presents?

Basically i want to embed the graphs for a particular device into another page and all i have available is the device name, not the host_id.

And yes if there is no alternative, I will extract the data necessary to xref devicename vs host_id.

I was just hoping this is not necessary and the process can be dynamic.

Regards Rep
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12275
Location: Muenster, Germany

PostPosted: Tue May 27, 2008 2:27 pm    Post subject: Reply with quote

This was already requested some time ago. There's no builtin support for this with cacti. In fact, the hostname/IP@ is not stored as a unique index with cacti. And there are some uses for "doubling" a device in cacti.
But it would be quite easy to create a transformation table. All you need is the table "host", columns "id" and "hostname".
Reinhard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: General All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group