Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Jul 23, 2017 7:32 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Monitor Plugin
PostPosted: Mon Apr 11, 2011 8:02 pm 
Offline
Cacti User

Joined: Sun May 08, 2005 5:45 pm
Posts: 88
Location: Sydney,Australia
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.

_________________
Cacti - V0.8.7g
Plugin Arch - 2.9
Aggregate - 0.75
SuperLinks - 0.8
WeatherMap - 0.97a


Top
 Profile  
 
 Post subject: Re: Monitor Plugin
PostPosted: Tue Apr 12, 2011 4:28 am 
Offline
Cacti Guru User

Joined: Thu Aug 05, 2010 2:04 am
Posts: 1573
Location: Japan
For example: (not fully tested)

(1) Set 'Grouping' = 'Default' in 'Settings -> Misc' tab
(2) Then modify 'plugins/monitor/monitor.php' as follows
Quote:
/* 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";
...


Top
 Profile  
 
 Post subject: Re: Monitor Plugin
PostPosted: Fri Jan 27, 2012 4:14 pm 
Offline
Cacti User
User avatar

Joined: Thu Jan 29, 2009 5:52 pm
Posts: 194
Location: US
@ noname

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


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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