STATUS plugin - Alternative version of devices for 0.87b

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

STATUS plugin - Alternative version of devices for 0.87b

Post by niobe »

*Version 4* - August 2008

Update: I have repackaged status to a version that works on my PA2.1. It may include small changes that make it work for others. Highly recommend moving to PA2.1 if you are on PA2.0.

This is an updated repackaged version of Howie's plugin.
I have renamed it "Status" (with his permission).
It is simply a user-oriented view of device status from the inbuilt cacti db.

This version is specifically for 0.87b since it takes advantage of new features. Here's a rundown of changes:

1) whole row changes color with status - great as a poor mans monitoring tool
2) Optimised for users without console access - empty console menu is never displayed
3) Added sorting, paginating and filtering functionality from 0.87b
4) tab goes red when you are in status window
5) Takes advantage of some new status's
6) Default view of "Not Up"

I developed it on PA2.0 so have not tested if it works with earlier plugin architectures.[/b]
Attachments
status-0.87b-4.tar.gz
Status Plugin - Version 4
(14.98 KiB) Downloaded 1216 times
status.screenshot.png
status.screenshot.png (148.28 KiB) Viewed 24495 times
Last edited by niobe on Mon Aug 04, 2008 7:42 pm, edited 4 times in total.
B-rad
Posts: 5
Joined: Fri Feb 15, 2008 7:29 pm

Post by B-rad »

Hi,

Should there be host.php in the tar?

/plugins/status/host.php?host_status=-1&host_template_id=-1&filter=

Cheers
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Post by niobe »

no - wherever that's referenced should be changed to status.php :)
will find and update...
cheers
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Very good!! Liking 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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

One note, the Host hyperlink should goto the following, maybe even two things:

1) Syslog for the host
2) Graphs for the host

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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Also, add a percent sign after the availability number in the table.. :)

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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

When I talk about "Graphs" and "Syslog", something like the attached.

TheWitness
Attachments
actions_demo.jpg
actions_demo.jpg (269.72 KiB) Viewed 24319 times
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?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Anyone have this plugin working ? When I change anything in the drop down list, it looks for host.php in the same directory, which doesn't exist. I note that there is a post where someone else complained of this, and there was a mention from the author that it would be corrected...?

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Post by niobe »

yep, will update in the next couple of days...
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Thanks. Look forward to that
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Post by niobe »

TheWitness wrote:One note, the Host hyperlink should goto the following, maybe even two things:

1) Syslog for the host
2) Graphs for the host

TheWitness
Interesting, I might look at adding some configuration options to allow customising the hyperlink - right now it's disabled since the old plugin took you to console -> devices.
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Post by niobe »

I have updated the original post with the fixed version - no new features yet.

Changelog:

7) Fixed reference to host.php
Last edited by niobe on Mon Apr 07, 2008 12:25 am, edited 1 time in total.
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Post by niobe »

Version 3 of Status is now up. Changelog:

8 ) Filter variables (Status, # Rows, Host Template etc) are now remembered separately from the other pages in Cacti that also use these settings. This is handy since you don't want to see only "Not Up" devices in Console like you might in Status.

9) Each host now links to graphs for that host

10) There is a global setting under "Misc" that enables you to choose List or Preview mode for Status (it's not possible to implement tree view easily)

11) Removed nav link to Console which is not appropriate for all users

12) Added "%" to Availability column header

13) Removed unnecessary html file
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Sorry, but this doesn't work for me:

When clicking the STATUS tab, I am greeted with:

Notice: Undefined index: mapping in C:\wamp\www\Cacti\lib\functions.php on line 1637

Also, when changing the status drop-down list, the plugin still looks for host.php, as shown below

http://<cactihost>/cacti/plugins/status/host.php?host_status=1&host_template_id=-1&filter=

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Post by niobe »

Hrmmm, what versions of cacti and PA are you using?
Could you provide me with screenshot of both problems to help?
cheers
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest