Cactiusers.org


It is currently Thu May 17, 2012 9:17 am




Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2, 3  Next
 VERY simple links plugin... 
Author Message
User

Joined: Thu Jan 19, 2006 2:59 pm
Posts: 62
Post VERY simple links plugin...
I saw a post somewhere here from someone who wanted to add new links and tools to Cacti. While I was working on a Weathermap plugin today, I made a 'bare minimum' plugin to let you add your own HTML/links to Cacti's UI.

http://wotsit.thingy.com/haj/cacti/links-plugin.html for the current version.


Sat Jan 21, 2006 4:53 pm
User

Joined: Wed Dec 14, 2005 8:27 am
Posts: 87
Post 
Cool. I think I may have been one of those people asking for something like this.

Thanks


Sun Jan 22, 2006 1:01 pm
User

Joined: Wed Dec 14, 2005 8:27 am
Posts: 87
Post 
Ahh, I have to use absolute links


Sun Jan 22, 2006 1:07 pm
User

Joined: Fri Oct 28, 2005 4:38 pm
Posts: 31
Post 
Rock on Howie!
I was asking for this!
Thank you!


Sun Jan 29, 2006 7:11 pm
New User

Joined: Sun Jan 29, 2006 11:51 pm
Posts: 15
Post 
Excellent plugin... Thanks

As I am not a programmer It took me a while to be able to implement it in a way that I wanted to so I though I would post the contents of my editme.php to help those that migh struggle in the same way.

I have uset it to pull the NTOP web interface into cacti (easy integration) and it works well

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title> Your Title</title>
</head>
<body>
<p align="centre">
<iframe name="I1" src="http://your.website" width="98%" height="99%">
Your browser does not support inline frames or is currently configured not to display frames.
</iframe></p>
</body>
</html>




Thanks again.[/i]


Tue Jan 31, 2006 9:41 pm
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
raddy wrote:
Excellent plugin... Thanks

As I am not a programmer It took me a while to be able to implement it in a way that I wanted to so I though I would post the contents of my editme.php to help those that migh struggle in the same way.

I have uset it to pull the NTOP web interface into cacti (easy integration) and it works well

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title> Your Title</title>
</head>
<body>
<p align="centre">
<iframe name="I1" src="http://your.website" width="98%" height="99%">
Your browser does not support inline frames or is currently configured not to display frames.
</iframe></p>
</body>
</html>

Thanks again.[/i]


Funny that you suggest that, as I had actually just released the NTop plugin that does exactly that. Been using it for awhile now, and thought maybe someone else could use it. I just need to add the option to make it easy to configure the URL.


Tue Jan 31, 2006 10:01 pm
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
jimmy wrote:
Funny that you suggest that, as I had actually just released the NTop plugin that does exactly that. Been using it for awhile now, and thought maybe someone else could use it. I just need to add the option to make it easy to configure the URL.


Actually, now I have went ahead and added the option. Just set the NTop URL in Console >> Settings >> Misc >> NTop URL. Defaults to http://|SERVERIP|:3000/ it will automatically replace |SERVERIP| with the local server's IP.


Tue Jan 31, 2006 10:21 pm
New User

Joined: Sun Jan 29, 2006 11:51 pm
Posts: 15
Post 
very nice!

I noticed that the plugin is on the home page but I get a CRC error when unpacking the file I am assuming that there is only the ntop.php and setup.php (with images directory and file) in the archive ?


Wed Feb 01, 2006 12:35 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
raddy wrote:
very nice!

I noticed that the plugin is on the home page but I get a CRC error when unpacking the file I am assuming that there is only the ntop.php and setup.php (with images directory and file) in the archive ?


Not sure why some users are getting CRCs on the tar.gz files, as both my winzip and winrar open them just fine. Are you using unix's tar? If so I may to do some more testing on my scripts to see what is going on.


Wed Feb 01, 2006 12:41 am
New User

Joined: Sun Jan 29, 2006 11:51 pm
Posts: 15
Post 
It was the tar.gz extracted with WinRar 3.50 on windows XP SP1.

I have tried the .zip and it comes out OK..

Just tried both again and appear to be OK now.


Wed Feb 01, 2006 12:48 am
New User

Joined: Sun Jan 29, 2006 11:51 pm
Posts: 15
Post 
Line 29 of setup.php in the NTop plugin is reading

"friendly_name" => "Monitor",

I assume you would like it to reference NTop instead of Monitor.


Wed Feb 01, 2006 5:04 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
raddy wrote:
Line 29 of setup.php in the NTop plugin is reading

"friendly_name" => "Monitor",

I assume you would like it to reference NTop instead of Monitor.


Thanks, its fixed now. I added the option real quick last night via copy and paste. I really shouldn't do things that early in the morning!


Wed Feb 01, 2006 12:03 pm
User

Joined: Thu Jan 19, 2006 2:59 pm
Posts: 62
Post 
I just packed up a second (and final) version of this plugin, which fixes a permissions problem. The Links tab disappears properly when you don't have the 'See Links' right, now.

I won't be updating this anymore, because (a) it doesn't need it, and (b) jimmy is apparently doing exactly the same thing.


Thu Feb 02, 2006 1:49 pm
User

Joined: Mon Oct 10, 2005 11:30 pm
Posts: 47
Post 
Howie,
I keep looking at your site and I can't find rrdsparklines (just a snap of it) I'm quite intreged, does it use the php sparklines library or something else?


Fri Feb 03, 2006 2:20 pm
User

Joined: Thu Jan 19, 2006 2:59 pm
Posts: 62
Post 
psyber wrote:
Howie,
I keep looking at your site and I can't find rrdsparklines (just a snap of it) I'm quite intreged, does it use the php sparklines library or something else?


Aaah that's you! I noticed someone trying to guess URLs in my logs ;-)

It's a perl script that takes the XML output from RRDtool dump and makes PNGs from there. It doesn't use any existing library apart from the CPAN Imager module. It's not on the site yet, but I just rewrote it to be a bit more efficient, so I'll probably write it up now. This weekend is a weathermap weekend, so I might try and write that page too.


Sat Feb 04, 2006 8:24 am
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2, 3  Next


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: