Monitor Plugin

Discussions on developing plugins for the Cacti Plugin Architecture

Moderators: Developers, Moderators

Post Reply
cksrealm
Cacti User
Posts: 140
Joined: Sun May 08, 2005 5:45 pm
Location: Sydney,Australia
Contact:

Monitor Plugin

Post by cksrealm »

Guys, is there anyway that on the monitor plugin that when I device is anything other than green that it goes to the top row of the page at all? I have around 400 devices on cacti and the NOC guys are asking if this can be done as all for ease of identifying the device with issues.
System - Red Hat Enterprise
Cacti Version - 1.2.23
RRDTool - 1.7.0
Poller - CMD
[u]Plugins Installed[/u]
Monitor 2.5
ReportIT 1.1.3
Thold 1.7
Weathermap 1.0
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Monitor Plugin

Post by noname »

For example: (not fully tested)

(1) Set 'Grouping' = 'Default' in 'Settings -> Misc' tab
(2) Then modify 'plugins/monitor/monitor.php' as follows
/* Render functions */
function render_default() {
global $row_stripe;

$result = '';
$sql = "SELECT host.id, description, status, hostname, cur_time, status_fail_date, status_rec_date, availability FROM host where disabled = '' and monitor = 'on' ORDER BY status";
...
User avatar
_raindrop18
Cacti User
Posts: 194
Joined: Thu Jan 29, 2009 5:52 pm
Location: US

Re: Monitor Plugin

Post by _raindrop18 »

@ noname

I have used your method and working like a charm. thanks !!!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests