Putty plugin ??

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

djoki
Posts: 26
Joined: Wed Aug 15, 2007 4:13 pm

Putty plugin ??

Post by djoki »

It would be nice to have a putty plugin. How you can select a protocl like ssh or telnet. Display a icon on the graph view and when you click => open cacti.

I've test the telnet plugin find on cactiuser.org but you can juste make telnet when you configure files extentions in folders option.


i would like do :
router => putty.exe -telnet %L
linux host => putty.exe -ssh %L
...

Sorry for my english :oops:
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

i currently trying to use this for plugin manage : click on a tcp port (telnet, ssh, smtp ...) and type commands

see http://www.javassh.org
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

There is also a group in the UK that has published a very good Java app for SSH/Telnet. I have the instructions, but have not had time to introduce into a plugin yet.

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
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

have you a download link ?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Will send a PM momentarily. It is based upon SSHTools.org work.

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
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Why not just support URLs. And have instructions on how to configure your browser to open the proper supporting application... :o
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
djoki
Posts: 26
Joined: Wed Aug 15, 2007 4:13 pm

Post by djoki »

rony wrote:Why not just support URLs. And have instructions on how to configure your browser to open the proper supporting application... :o
I've try it. But if you do that:

for exemple : URL:Telnet
open : "c:/putty.exe" -telnet %L

But it you want do SSH you must re configure your browser
open : "c:/putty.exe" -ssh %L
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You can define custom handlers in your browser...

Example URL:

telnet://localhost
ssh://localhost

Then you have to make sure you have that handler defined in your browsers configuration.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
djoki
Posts: 26
Joined: Wed Aug 15, 2007 4:13 pm

Post by djoki »

rony wrote:You can define custom handlers in your browser...

Example URL:

telnet://localhost
ssh://localhost

Then you have to make sure you have that handler defined in your browsers configuration.

I've telnet://
but no ssh://

How do you add it in browsers configuration ?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I was afraid you where going to ask that... :)

I don't know how to in modern browsers... :(
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Well....

On Windows, edit and import the attached file into the registry for ssh and telnet URL support using putty.. :)

I was unable to find out how to add a shell handler for a URL. The registry file was the only thing I can think of.

Just edit the attached file with notepad and rename the extension to ".reg".
Attachments
putty_url_enable.reg.txt
Putty SSH and Telnet URL protocol enabler (Rename to .reg)
(1.63 KiB) Downloaded 2086 times
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
djoki
Posts: 26
Joined: Wed Aug 15, 2007 4:13 pm

Post by djoki »

work fine for telnet .

but for ssh i've a error.
i've my like : ssh://xx.xx.xx.xx

i click and :

Code: Select all

Unable to open connection to ssh Host does not exist
i've cheak configuration "c:/putty.exe" -ssh %1

i've change to "c:/putty.exe" but the same error, so i think that ssh:// isn't recognized.

but URL:SSH protocol is present in Files Types

an idea ?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Worked for me...

Make sure that the file type has an open command for that, and it not set to save it.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
djoki
Posts: 26
Joined: Wed Aug 15, 2007 4:13 pm

Post by djoki »

you have select "Use DDE" when you configure file types in folders option ?
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

me too, i have a putty error ("host does not exist")
seems that putty is launching but is not parsing the url correctly

i used google and have read that url link has not been added by putty developpers and you must use pietty

pietty is not working at all for me, i don't know why

currently, i use this http://blog.erik.rainey.name/articles/tag/activedesktop
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests