Monitor Plugin - v0.7 Released
Moderators: Developers, Moderators
Re: Monitor Plugin - v0.7 Released
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.
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
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Monitor Plugin - v0.7 Released
Where are you loading jQuery from? You seem to have created a dependency and not acknowledged it.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.
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?
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?
Re: Monitor Plugin - v0.7 Released
TheWitness wrote:Where are you loading jQuery from? You seem to have created a dependency and not acknowledged it.
I thought I made it clear, sorry. In my case, superlinks loads jquery.shd wrote:Patch is made for version 0.9 and relies on jquery. For example, superlinks plugin adds jquery to page scripts.
CentOS 64-bit, 20Gb RAM, 8xCPU, some virtual datastore. 600+ hosts, 200k+ datasources, avg polltime 45 sec
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I guess I need glasses. Just reread it.
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?
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?
-
- Posts: 15
- Joined: Thu Jan 21, 2010 3:11 am
Re: Monitor Plugin - v0.7 Released
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.
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.
Re: Monitor Plugin - v0.7 Released
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.
At this moment it only plays a sound when a host is down, and gives an orange tile when a threshold is breached.
-
- Posts: 15
- Joined: Thu Jan 21, 2010 3:11 am
Who is online
Users browsing this forum: No registered users and 2 guests