Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Thu Oct 02, 2014 5:25 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [SOLVED] How does Thold do that?
PostPosted: Wed Aug 11, 2010 11:02 pm 
Offline
Cacti User

Joined: Thu Mar 01, 2007 5:43 pm
Posts: 275
Location: Melbourne, Australia
Hi all, I am working on a plugin that will add a bit of information for all of the devices on a Cacti box, however, I am wanting to know the best way to go about it.

What I mean is, when you use "Thold" and click on "Host Status", you can see a list of all of the hosts and the background colour of each cell changes depending on the status of the host. How is that done? Does "Thold" use Cacti's existing table of devices and then adds a column for the colours and use the device's status to determine what colour to use? And if so, what table is all of this information stored in?

Thanks everyone.


Last edited by Voiper99 on Thu Aug 12, 2010 6:04 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 11, 2010 11:32 pm 
Offline
Cacti User

Joined: Thu Mar 01, 2007 5:43 pm
Posts: 275
Location: Melbourne, Australia
I think I found it:

Code:
select hostname from host;
select status from host;


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group