Monitor Plugin - v0.7 Released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

shd
Cacti User
Posts: 96
Joined: Mon Apr 09, 2007 1:33 pm
Location: Nizhnevartovsk, Russia

Re: Monitor Plugin - v0.7 Released

Post by shd »

Made a little but hopefully useful patch: when the monitor page loads, it scrolls smoothly to the latest failed host.

Patch is made for version 0.9 and relies on jquery. For example, superlinks plugin adds jquery to page scripts.
Attachments
monitor09scroll.patch
scrolling patch for monitor plugin
(1.61 KiB) Downloaded 262 times
CentOS 64-bit, 20Gb RAM, 8xCPU, some virtual datastore. 600+ hosts, 200k+ datasources, avg polltime 45 sec
Voiper99
Cacti User
Posts: 276
Joined: Thu Mar 01, 2007 5:43 pm
Location: Melbourne, Australia

Post by Voiper99 »

Great plugin :) Thanks a lot for sharing it.

Just a quick question, does this plugin also send e-mails when a host is down?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Monitor Plugin - v0.7 Released

Post by TheWitness »

shd wrote:Made a little but hopefully useful patch: when the monitor page loads, it scrolls smoothly to the latest failed host.

Patch is made for version 0.9 and relies on jquery. For example, superlinks plugin adds jquery to page scripts.
Where are you loading jQuery from? You seem to have created a dependency and not acknowledged it.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
shd
Cacti User
Posts: 96
Joined: Mon Apr 09, 2007 1:33 pm
Location: Nizhnevartovsk, Russia

Re: Monitor Plugin - v0.7 Released

Post by shd »

TheWitness wrote:Where are you loading jQuery from? You seem to have created a dependency and not acknowledged it.
shd wrote:Patch is made for version 0.9 and relies on jquery. For example, superlinks plugin adds jquery to page scripts.
I thought I made it clear, sorry. In my case, superlinks loads jquery.
CentOS 64-bit, 20Gb RAM, 8xCPU, some virtual datastore. 600+ hosts, 200k+ datasources, avg polltime 45 sec
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I guess I need glasses. Just reread it. :oops:
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
dorojatunb
Posts: 15
Joined: Thu Jan 21, 2010 3:11 am

Re: Monitor Plugin - v0.7 Released

Post by dorojatunb »

Hi there.

I hope monitor plugin can do like this: when the status device is turning back from down to up, the down host message would automatically set to any word what we want, for example: down.

I believe it has connection with this code:
$message = db_fetch_row("select hostname, description, monitor_text from host where id=$id");
$message['monitor_text'] = str_replace("\n", '<br>', $message['monitor_text']);
db_execute("update host set monitor_text='down' where hostname='" . $message['hostname'] . "'");

But I don't know where I should put that code. Or anyone has another idea?

Is there anyone could help me?

Any help would be appreciated.

thank you.
Sjoerd
Posts: 44
Joined: Wed May 28, 2008 5:20 am

Re: Monitor Plugin - v0.7 Released

Post by Sjoerd »

Is there also a possibility to let the plugin play a sound when a (thold) threshold is breached?
At this moment it only plays a sound when a host is down, and gives an orange tile when a threshold is breached.
dorojatunb
Posts: 15
Joined: Thu Jan 21, 2010 3:11 am

Re: Monitor Plugin - v0.7 Released

Post by dorojatunb »

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests