Looking for a way to connect to host via Status map

sobrien at ci.bend.or.us sobrien at ci.bend.or.us
Thu Jun 26 19:36:41 CEST 2003


To SSH from a URL......If anyone cares(on a windows desktop).....

1. Install PERL
2.create new registry key (basically just look at HK_CLASSES_ROOT\Telnet):

[HKEY_CLASSES_ROOT\ssh]
@="URL:SSH Protocol"
"EditFlags"=dword:00000002
"URL Protocol"=""
"BrowserFlags"=dword:00000008

[HKEY_CLASSES_ROOT\ssh\DefaultIcon]
@="%SystemRoot%\\system32\\url.dll,0"

[HKEY_CLASSES_ROOT\ssh\shell]
@=""

[HKEY_CLASSES_ROOT\ssh\shell\open]

[HKEY_CLASSES_ROOT\ssh\shell\open\command]
@="C:\\Perl\\bin\\perl.exe c:\\ssh.pl %1"

3. copy ssh.pl to c:\ (replace putty.exe with whatever command line ssh 
prog you use)

#!/usr/bin/perl
if (scalar @ARGV) {
        $_ = shift @ARGV;
        s/ssh:\/\///;
        s/\///;
system "putty.exe -ssh $_";
}
4. Enjoy ssh from url


Steve O'Brien
City of Bend
Network Administrator
sobrien at ci.bend.or.us
541-322-6393




sobrien at ci.bend.or.us 
Sent by: nagios-users-admin at lists.sourceforge.net
06/26/2003 07:17 AM

To
nagios-users at lists.sourceforge.net
cc

Subject
Re: [Nagios-users] Re: Looking for a way to connect to host via Status map







Well the telnet works great.  As for ssh I created a new file type and 
associated my ssh program with it, problem is that the %1 variable being 
passed is the full URL of SSH://myhost not just "myhost" so the connection 
fails trying to ssh to ssh://myhost.  Weird that the same variable when 
passed to hyperterm has no problem. 


Steve O'Brien
City of Bend
Network Administrator
sobrien at ci.bend.or.us
541-322-6393



"Tedman Eng" <teng at dataway.com> 
Sent by: nagios-users-admin at lists.sourceforge.net 
06/24/2003 12:51 AM 


To
nagios-users at lists.sourceforge.net 
cc

Subject
[Nagios-users] Re: Looking for a way to connect to host via Status map








xhostinfo.cfg

Use the extended host info combined with a terminal program that catches
URL's, or a browser with helper applications.
When you click once on a device in the Status Map, it zooms in on that
device.  Click again on the device once it's targeted and it takes you to
the extended host info screen.  This is where the links to connect could 
be
located.

You can put these URLs in 2 places:
notes_url - this link is on the folder icon and says "There Are Additional
Notes for This Host..."
icon_image_alt - This is the 'alt text' for the icon in the detail screen,
but will show up in italics under the device name/picture.  You can sneak
HTML code into the text.

define hostextinfo{
       host_name       somedevice
       notes_url       telnet://somedevice
       icon_image      terminal.png
       icon_image_alt  < a href= telnet://somedevice >Telnet to:
somedevice</a>
       statusmap_image terminal.gd2
       }

<sobrien at ci.bend.or.us> wrote in message
news:OF4F4EEE0E.22E1BB5B-ON88256D4F.0000FA17-88256D4F.0000FF7E at CI.BEND.OR.US

...

Has anyone figured out how to click on a host in your status map and 
connect
via ssh, telnet, walkie-talkie, etc...

Steve O'Brien
City of Bend
Network Administrator
sobrien at ci.bend.or.us
541-322-6393





-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when 
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030626/685d02df/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ssh.reg
Type: application/octet-stream
Size: 824 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030626/685d02df/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ssh.pl
Type: application/octet-stream
Size: 114 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030626/685d02df/attachment-0001.obj>


More information about the Users mailing list