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


Article Comments

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


Jun, 2016 - Permalink

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


Mar, 2017 - Permalink

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


Apr, 2017 - Permalink

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


Nov, 2017 - Permalink

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


Nov, 2017 - Permalink

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+


May, 2018 - Permalink

Sorry, but this is no longer supported.


Kind regards,
Stephan Linke, Tech Support Team


May, 2018 - Permalink

You can try doing this PRTG integration with VNC using a VNC WEB access version.

https://www.tecmint.com/vnc-desktop-access-from-web-browser

http://www.uvnc.com/features/javaviewer.html

http://www.uvnc.com/install/configuration.html


May, 2018 - Permalink

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


Jul, 2018 - Permalink

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


Jul, 2018 - Permalink

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


Nov, 2018 - Permalink

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


Nov, 2018 - Permalink

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


Feb, 2019 - Permalink

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


Feb, 2019 - Permalink