SuperLinks 0.6 release (incl Cacti 0.8.7 compatibility)

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

eternal
Cacti User
Posts: 68
Joined: Thu Dec 14, 2006 4:38 pm
Location: Kingsport TN
Contact:

Post by eternal »

100% iframe width and height

<head>
<title>iframe foo</title>
<style type="text/css">
html, body, div, iframe { margin:0; padding:0; height:100%; }
iframe { display:block; width:100%; border:none; }
</style>
</head>
<body>
<div>
<iframe src="http://foo.com/">
<p><a href="http://foo.com/">foo.com</a></p>
</iframe>
</div>
</body>
Last edited by eternal on Thu Nov 01, 2007 1:35 pm, edited 1 time in total.
User avatar
chrisgapske
Cacti User
Posts: 278
Joined: Tue May 22, 2007 7:56 am
Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL

Interesting Question.

Post by chrisgapske »

I really like this plugin It adds alot and is very much somthing I was lookin for.

Great job.

The problem I have is I am trying to make a tab/link to a page for our helpstar ticketing but when I no matter what I have tryed It takes over the window and will not just behave. even if I try to put it in an iframe it will open up up the direct page in the current window. Than I loose all my cacti links and tabs..


I like my cacti tabs.

I know this is kinda a noob web question but I am not good at it or much yet.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

That sounds like your other app has some code in it to break out of framesets, which is pretty lame for a web application... Not sure you can do something about that without altering the code for the other app (assuming you can).
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!)
User avatar
chrisgapske
Cacti User
Posts: 278
Joined: Tue May 22, 2007 7:56 am
Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL

Post by chrisgapske »

Howie wrote:That sounds like your other app has some code in it to break out of framesets, which is pretty lame for a web application... Not sure you can do something about that without altering the code for the other app (assuming you can).

I know it can be done. like this .
http://www.helpstar.com/hsecom/AccountLogin.aspx


But I am just not sure how to wrap this into the page.

I will pm you the local url to the ticketing system.

If ya have time to just poke at it.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Howie,

I will make a few more changes tonight.

Larry
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 »

Howie,

Made a few more changes. Here's the "beta" ;) and the changelog.
0.7 - Allow arbitrary html content to be added to any Superlink
When a Superlink is selected to be a console selection, include the console
Make the "tabs" in lower case to match Cacti standard
Remove the "Console->" link from the Cacti Navigation for tabs
Rename the Superlinks navagation item to the Superlink title when displayed
I still can't get the div's to work correctly using the style from the other post, but it still works just fine without the Div.

Larry
Attachments
superlinks-0.7-beta.zip
(607.07 KiB) Downloaded 317 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?
User avatar
chrisgapske
Cacti User
Posts: 278
Joined: Tue May 22, 2007 7:56 am
Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL

Yo

Post by chrisgapske »

Some skills just can't be measured.

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

Post by Howie »

Thanks Larry! :-) I'll try and take a look over the weekend.

It's going to be a hectic one this week though - 3 bands in 4 nights, and a party in the middle :o Suddenly I have a social life this week. Makes up for working over the next few weekends though.
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!)
eterzella.r.t
Cacti User
Posts: 75
Joined: Thu Oct 25, 2007 8:20 pm

Post by eterzella.r.t »

When create one
http://www.exemplo.br Site da Exemplo TAB

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /var/www/aiec/plugins/superlinks/superlinks-mgmt.php on line 533

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/aiec/plugins/superlinks/superlinks-mgmt.php on line 561

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /var/www/aiec/plugins/superlinks/superlinks-mgmt.php on line 533

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/aiec/plugins/superlinks/superlinks-mgmt.php on line 561

Warning: Cannot modify header information - headers already sent by (output started at /var/www/aiec/plugins/superlinks/superlinks-mgmt.php:533) in /var/www/aiec/plugins/superlinks/superlinks-mgmt.php on line 99
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You need a more recent version of PHP with the gd module installed

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
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

I don't think that's it - you'd get something about a non-existent function then. This looks like a problem with current working directories again - weathermap had a spate of those. Some versions of PHP don't change to the directory of the script, it seems.
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!)
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You are up way to late ;) We had a good CC today. 11/12 is the date.

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?
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

Hi everyone,
I have a question. One of the things that i access, as do a couple of my admins, is the Cacti log file. And it is a pain to navigate to the console, then to System Utilities, then to Cacti Log. My thought, lets use the wonderful Superlinks Plugin to create a tab for the Cacti Log file. Now, for the question. How would i do that. Would you recommend using iframes, standard HTML, PHP? I have tried using the link that cacti uses to display it when i navigate to the log normally, but that duplicates all of the tabs at the top. I just want an easy way for my to access just the logs.

Anyone have any thoughts?

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

apperrault wrote:Hi everyone,
I have a question. One of the things that i access, as do a couple of my admins, is the Cacti log file. And it is a pain to navigate to the console, then to System Utilities, then to Cacti Log. My thought, lets use the wonderful Superlinks Plugin to create a tab for the Cacti Log file. Now, for the question. How would i do that. Would you recommend using iframes, standard HTML, PHP? I have tried using the link that cacti uses to display it when i navigate to the log normally, but that duplicates all of the tabs at the top. I just want an easy way for my to access just the logs.

Anyone have any thoughts?
I'd use PHP.

The function you need to copy is utilities_view_user_log() in utilities.php

Maybe there's some reason to have a requests/repository page for these things. Get all those features in by the back door :-)
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!)
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

damn, i was hoping it was going to be easier. I am not a PHP person, i was just hoping to be able to either point SuperLinks to an HTML link, or an existing php page. I will try and play with it, but i am not very hopeful.

Thanks for the pointers though.

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest