Putty plugin ??

Anything that you think should be in Cacti.

Moderators: Moderators, Developers

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

Putty plugin ??

#1 Post by djoki » Tue Aug 21, 2007 10:44 am

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

#2 Post by gilles » Tue Aug 21, 2007 12:03 pm

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: 14804
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#3 Post by TheWitness » Wed Aug 22, 2007 6:57 am

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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

#4 Post by gilles » Wed Aug 22, 2007 3:30 pm

have you a download link ?

User avatar
TheWitness
Developer
Posts: 14804
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#5 Post by TheWitness » Wed Aug 22, 2007 8:55 pm

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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

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

#6 Post by rony » Thu Aug 23, 2007 7:53 am

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

#7 Post by djoki » Thu Aug 23, 2007 8:54 am

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: 6016
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

#8 Post by rony » Thu Aug 23, 2007 9:38 am

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

#9 Post by djoki » Thu Aug 23, 2007 9:47 am

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: 6016
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

#10 Post by rony » Thu Aug 23, 2007 9:54 am

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: 6016
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

#11 Post by rony » Thu Aug 23, 2007 10:16 am

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 1965 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

#12 Post by djoki » Thu Aug 23, 2007 10:58 am

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: 6016
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

#13 Post by rony » Thu Aug 23, 2007 2:00 pm

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

#14 Post by djoki » Fri Aug 24, 2007 9:12 am

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

#15 Post by gilles » Fri Aug 24, 2007 11:16 am

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