[SOLVED] How does Thold do that?

Discussions on developing plugins for the Cacti Plugin Architecture

Moderators: Developers, Moderators

Post Reply
Voiper99
Cacti User
Posts: 276
Joined: Thu Mar 01, 2007 5:43 pm
Location: Melbourne, Australia

[SOLVED] How does Thold do that?

Post by Voiper99 »

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.
Voiper99
Cacti User
Posts: 276
Joined: Thu Mar 01, 2007 5:43 pm
Location: Melbourne, Australia

Post by Voiper99 »

I think I found it:

Code: Select all

select hostname from host;
select status from host;
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest