Management -> Devices view else where.

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Management -> Devices view else where.

Post by chadd »

Is there, or can there be a way to get the information displayed in the Management -> Devices view within Console, viewable somewhere besides console?

Reason being, I would like to give users this information:

Description, Status, Hostname, Current (ms), Average (ms), Availability

But, I do not wish them to have access to add/remove devices and anything else they may be able to do via the console.

Anyone?

Thanks.
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

do a search in the forums. someone has done this already
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Do you have a link to the post, or some suggested search criteria, because I am just not finding it.. Thanks.
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Actually, I was looking for this information (I have attached a pic). Well, besides the ability to delete/add, or otherwise do anything with the devices.. Just a view to see the devices you have, there IPs, Hostnames, and the reliability information.
Attachments
device_view.zip
(20.94 KiB) Downloaded 712 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is not such a big deal, but someone will have to port it into a plug-in at this point as we are pretty much feature complete for 0.8.6.

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?
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Thanks for the reply. I might give it a shot if things here ever slow down..
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

It's amazing what seems more appealing when you're supposed to be working on your own code...

Here's a quick plugin to give you a Devices tab. You need to give users the right to see it (in User Management). It's basically the Devices page from the console with a lot of stuff ripped out. As a result, you lose the images for the filter and clear buttons, unfortunately, but they do still work.

You'll need Cigamit's Plugin Architecture. http://cactiusers.org/

Enjoy.
Attachments
devices-0.1.zip
Devices plugin v0.1
(6.15 KiB) Downloaded 534 times
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Howie wrote:It's amazing what seems more appealing when you're supposed to be working on your own code...

Here's a quick plugin to give you a Devices tab. You need to give users the right to see it (in User Management). It's basically the Devices page from the console with a lot of stuff ripped out. As a result, you lose the images for the filter and clear buttons, unfortunately, but they do still work.

You'll need Cigamit's Plugin Architecture. http://cactiusers.org/

Enjoy.
VERY COOL!!! Thanks Howie! Only one problem so far:

The requested URL /plugins/devices/host.php was not found on this server.

Any thoughts? Thanks.

-chadd.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

chadd wrote: VERY COOL!!! Thanks Howie! Only one problem so far:

The requested URL /plugins/devices/host.php was not found on this server.

Any thoughts? Thanks.
Yes - I'm thinking "don't click that". :-)

I guess I missed that one out. Unless you expected it to do something? As it stands, it's trying to go to the Devices.Edit page, which I thought was exactly what was not required?

Here's 0.2 with a one-line change. Now that link goes to the Graph Preview mode, with that host as the filter (if you see what I mean).
Attachments
devices-0.2.zip
Slightly fixed devices view.
(6.17 KiB) Downloaded 493 times
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Howie wrote:
chadd wrote: VERY COOL!!! Thanks Howie! Only one problem so far:

The requested URL /plugins/devices/host.php was not found on this server.

Any thoughts? Thanks.
Yes - I'm thinking "don't click that". :-)

I guess I missed that one out. Unless you expected it to do something? As it stands, it's trying to go to the Devices.Edit page, which I thought was exactly what was not required?

Here's 0.2 with a one-line change. Now that link goes to the Graph Preview mode, with that host as the filter (if you see what I mean).
Nice, one down...some??.. to go ;-).. The problem happens when I click on the "next" link, or try to use any of the filtering. It trys to load the /plugins/devices/host.php page. The "next" link is the important one, because I have more than one page of hosts to look at.. Sorry for the trouble, and thanks for the work, this will be a cool addition. Just a suggestion, but it would also be cool if this could be the default view - meaning that when the user logs in they get this view; and not have the console tab there at all. I know, I am asking alot ;-). Great job though, and thanks again.

-chadd.
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Actually, after further thought, you know what would be nice? If Cigamit could change the view on the Thold plugin to encorporate this info!! It already has the host up/down status, and it even puts the downs at the top which is cool. If he were just to add the other info (which I don't know how difficult that would be) - I think that would be the best of all worlds! But, a devices tab would work as well, just a little duplication of information - no biggy. Thanks again, and BTW, what are your thoughts?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

chadd wrote:Actually, after further thought, you know what would be nice? If Cigamit could change the view on the Thold plugin to encorporate this info!! It already has the host up/down status, and it even puts the downs at the top which is cool. If he were just to add the other info (which I don't know how difficult that would be) - I think that would be the best of all worlds! But, a devices tab would work as well, just a little duplication of information - no biggy. Thanks again, and BTW, what are your thoughts?
*shrug* You could argue the same for Monitor, which also lists the same things. Monitor is more in the same vein as a Devices tab too. I don't use either at the moment, so I don't really care, to be honest :-) We have a perfectly OK[*] monitoring system outside of Cacti, and the threshold stuff I'm really interested in is the BWPREDICT stuff in rrdtool 1.2.x, which won't be in Cacti until 0.9.x as I understand it.

[*] What's Up Gold - it's only OK, not great.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Ok, so would you happen to know off hand what needs to be modified in your current device plugin to get the "next" links to work? Thanks again.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

chadd wrote:Ok, so would you happen to know off hand what needs to be modified in your current device plugin to get the "next" links to work? Thanks again.
One more go then... This is working for me now (my test Cacti only has a couple of devices in it, so I didn't think of the page buttons).
Attachments
devices-0.3.zip
Devices tab. version 0.3
(6.55 KiB) Downloaded 541 times
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest