What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

ENABLE ACTIONS TELNET-SSH IN DEVICE TOOLS - (Access Linux Servers and Routers Cisco)

Votes:

1

How can I enable actions telnet - ssh in PRTG network monitor - Device Context Menu (Device Tools) to allow access in Linux servers and routers cisco, through the command line interface on the Putty and KITTY applications?

Device Tools

https://assets.paessler.com/common/img/manuals/prtg/en/device_context_device.png

https://www.paessler.com/manuals/prtg/context_menus#device

cisco customization device-tools kitty linux putty ssh telnet

Created on Jun 2, 2016 8:54:56 PM



14 Replies

Accepted Answer

Votes:

13

ENABLE TELNET-SSH ACTIONS IN DEVICE TOOLS - (Access Linux Servers, Cisco Switches and Routers)

Access to devices using Telnet - ssh protocols, can run making the integration of PRTG network monitor with KITTY application.

The function (Telnet, SSH) in PRTG can facilitate the work of network administrators, allowing direct access to Linux servers, Cisco switches and routers, through CLI command line interface using the Kitty application.

Device Context Menu - Device Tools with action (TELNET - SSH).

http://i.imgur.com/hLjphxA.jpg

https://www.paessler.com/manuals/prtg/context_menus


Activates the actions (TELNET - SSH) in PRTG Network Monitor

To activate the function (TELNET, SSH) in the application of PRTG you must edit the file (_Prtg.ContextMenus.js) in the folder C: \ Program Files (x86) \ PRTG Network Monitor \ webroot \ javascript

  • The original code in black must be changed and become like the bold code.

Contextmenu for devices

Original Code "openssh": function (t) { _Prtg.objectTools.windows.openSSHWindow((t.attr('data-id')||t.attr('id')), "http"); }, "opentelnet": function (t) { _Prtg.objectTools.windows.openTelnetWindow((t.attr('data-id')||t.attr('id')), "http");},

Bold Code "openssh": function (t) { _Prtg.objectTools.windows.openWindow((t.attr('data-id')||t.attr('id')), "ssh"); }, "opentelnet": function (t) { _Prtg.objectTools.windows.openWindow((t.attr('data-id')||t.attr('id')), "telnet"); },


  • Add the code in Bold between the original code in black.

Original Code in Black { cls:'device hideforreadonlyuser', id:'serviceurl', ui:'link', caption:'<#langjs key="js.contextmenus.Tools.ServiceURL" default="Go To Service URL">&hellip;'},

Bold Code { cls:'device hideforreadonlyuser separator', id:'opentelnet', ui:'extlink', caption:'<#langjs key="js.contextmenus.Tools.opentelnet" default="New window with TELNET">&hellip;'}, { cls:'device hideforreadonlyuser', id:'openssh', ui:'extlink', caption:'<#langjs key="js.contextmenus.Tools.openssh" default="New window with SSH">&hellip;'},

Original Code in Black {cls:'device hideforreadonlyuser separator', id:'openhttp', ui:'extlink', caption:'<#langjs key="js.contextmenus.Tools.OpenHTTP" default="New window with HTTP">&hellip;'},

Device Menu image after applying the above settings with the action (TELNET- SSH)

http://i.imgur.com/KHdtG2J.png

https://www.paessler.com/manuals/prtg/context_menus

  • New window with TELNET... Open a new browser window with action (TELNET) and redirect for IP address of the device in application KITTY to make the connection.
  • New window with SSH... Open a new browser window with action (SSH) and redirect for IP address of the device in application KITTY to make the connection.

KITTY - Command Line Interface - TELNET-SSH

KITTY settings

  • Download Application kitty.exe .

http://www.9bis.net/kitty/index.php?page=Download

  • Create KiTTY folder in the path (C: \ Program Files) and add the executable kitty.exe program.

(C:\Program Files\KiTTY\kitty.exe)

  • Download and run the file (kitty_ssh_handler.reg) to update the Windows registry with the environment variables Kitty.exe.

http://www.9bis.net/kitty/index.php?page=SSH%20Handler&zone=en http://www.9bis.net/kitty/#!pages/SSHHandler.md

After following the steps above you can access HTML pages with links (telnet: and ssh: ) connection running these protocols.

Device Menu with the action (TELNET-SSH)

http://i.imgur.com/KHdtG2J.png

https://www.paessler.com/manuals/prtg/context_menus

Zarate Max

Created on Jun 3, 2016 1:49:49 PM

Last change on Aug 13, 2020 7:35:07 AM by  Moritz Heller [Paessler Support]



Votes:

1

Thanks for this How To! Unfortunately after an PRTG-Update the setting will be overwrite...

It would be desirable if SSH / Telnet access is permanently available via a PRTG update

Created on Mar 7, 2017 9:19:05 AM



Votes:

0

Thanks for this tutorial. I've followed it and the Telnet is working perfect. But for the SSH, i'm still having an error: "Unable to establish connection to SSH, Host does not exist". When I open ssh directly with Putty without passing by PRTG even with the FQDN for all devices, ssh work perfectly. I've checked all the credentials, everything is Ok but it still not working with Prtg. I'm using PRTG verison 16.3.26.6384+

Can you help me on this item ?

Thanks

Created on Apr 27, 2017 11:40:37 AM



Votes:

0

hi there, this does no longer appear to work as the line "{ cls:'device hideforreadonlyuser...." does not appear to be in the context menu.js anymore. Please advise as i would love to bring SSH to PRTG

Created on Nov 24, 2017 2:45:09 PM



Votes:

0

Hi Sam,

Sorry, but this is not officially supported by Paessler. You could simply put ssh:<device-url> in the management URL of the device. Then proceed with the putty section and you're set :)


Kind regards,
Stephan Linke, Tech Support Team

Created on Nov 27, 2017 3:46:33 PM by  Stephan Linke [Paessler Support]



Votes:

0

Hello, I'm trying to do the same with ultraVNC, i've seen that there is a preconfigured option like the one explained above for TELNET and SSH. I'm able to see the "new windows with VNC" in the device tools list, but once a click on it no window appear and no program start. can someone help me? i have PRTG version 18.2.40.1683+

Created on May 9, 2018 12:56:44 PM



Votes:

0

Sorry, but this is no longer supported.


Kind regards,
Stephan Linke, Tech Support Team

Created on May 9, 2018 2:56:01 PM by  Stephan Linke [Paessler Support]



Votes:

1

Created on May 9, 2018 9:41:46 PM



Votes:

0

Hi am using PRTG v18.2.41 and followed the instructions but after changing the java file am not seeing the context menu changed.

I tried changing the existing names also like i change the "New Window with HTTP" to just "New" but there is no change reflection in the software console.

Is there any other place do i need to modify,

Thanks for any help,

Regards, Ansab

Created on Jul 15, 2018 10:59:28 AM



Votes:

0

Did you try to force refresh the page? As the entry already seems to be there, it might be just a caching issue.


Kind regards,
Stephan Linke, Tech Support Team

Created on Jul 16, 2018 8:06:23 AM by  Stephan Linke [Paessler Support]



Votes:

0

Hi,

we use the ssh access for our Routers and Switches. When I update PRTG everytime, I must edit the javascript-files. Please, can you add a SSH-Access in a comming PRTG-Update?

Thx!

Marco

Created on Nov 12, 2018 9:05:59 AM



Votes:

0

This won't make it's way into PRTG I'm afraid. You can configure Device Tools in PRTG Desktop, though :)


PRTG Scheduler | PRTGapi | Feature Requests | WMI Issues | SNMP Issues

Kind regards,
Stephan Linke, Tech Support Team

Created on Nov 12, 2018 9:23:15 AM by  Stephan Linke [Paessler Support]



Votes:

0

Hi,

since the last Update from version 8.4.45 to 8.4.47 the access via SSH doesn't work. If I try to access a device via SSH nothing happens (no popup-window, popups allowed). I think, the problem is the option "ui;'extlink':

{ cls:'device hideforreadonlyuser', id:'openssh', ui:'extlink', caption:'<#langjs key="js.contextmenus.Tools.openssh" default="Neues Fenster mit SSH">&hellip;'},

For the pre-defined device-tools the following ui-option is use: ui:'glyph-link-ext'

{ cls:'device hideforreadonlyuser', id:'openftp', ui:'glyph-link-ext', caption:'<#langjs key="js.contextmenus.Tools.OpenFTP" default="New Window with FTP">&hellip;'},

When I try to Access the device via FTP for example, a new Windows pop up.

My Configuration:

...
"openssh": function (t) { _Prtg.objectTools.windows.openWindow((t.attr('data-id')||t.attr('id')), "ssh"); },
"opentelnet": function (t) { _Prtg.objectTools.windows.openWindow((t.attr('data-id')||t.attr('id')), "telnet"); },
...
{ cls:'device hideforreadonlyuser separator', id:'opentelnet', ui:'extlink', caption:'<#langjs key="js.contextmenus.Tools.opentelnet" default="Neues Fenster mit TELNET">&hellip;'},
{ cls:'device hideforreadonlyuser', id:'openssh', ui:'extlink', caption:'<#langjs key="js.contextmenus.Tools.openssh" default="Neues Fenster mit SSH">&hellip;'},
...

Thx for help,

Marco

Created on Feb 14, 2019 6:25:51 AM

Last change on Feb 14, 2019 7:38:49 AM by  Stephan Linke [Paessler Support]



Votes:

0

Kindly note that we can't provide support for these customizations, you solely depend on the community expertise in this area :/


PRTGapi | Feature Requests | WMI Issues | SNMP Issues

Kind regards,
Stephan Linke, Tech Support Team

Created on Feb 14, 2019 7:39:42 AM by  Stephan Linke [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.