Xymon Mailing List Archive search

Extra column containing an access protocol (putty, telnet, mstsc)

25 messages in this thread

list Becker Christian · Fri, 9 Mar 2012 19:16:58 +0000 ·
Hi there,


i have implemented a fresh install of Xymon 4.3.7 for our environment. This includes at this time nearly 300 devices in total.


We had used a commercial tool before, and we are in the need to go away from that commercial tool to Xymon. Knowing some of the features we had in the commercial tool, i'm missing these features in Xymon.


For each device i'ld like to have a column that provides me with a "PuTTY", "TELNET" or "MSTSC" feature. For example, if it is a Linux server, i'ld like to have a "PUTTY" icon. For a windows machine, i want a "MSTSC" icon. "TELNET" i want to have for several CISCO devices.


Currently i have created a ssh-protocol-handler in the local registry of the "viewing" machine. Then i have created HOSTNAME.html files in the server/www/notes directory which enables me to provide links, for example HREF="ssh:HOSTNAME". This enables me to login to the specified host. In general this is what i want.


But: i think it's more efficient to have an extra column on the overview site which provides me with the specified protocol link. Would that be possible to implement? For example with an extra tag in the hosts.cfg file?


Hope i have described detailed enough what i want...


Best regards

Christian


CSC * This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose * CSC Deutschland Services GmbH * Registered Office: Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany * Board of Directors: Gerhard Fercho (Chairman),Thomas Nebe, Peter Schmidt * Registered in Germany: HRB 7574, Wiesbaden
list Larry Barber · Fri, 9 Mar 2012 13:35:36 -0600 ·
All those tests can be easily implemented, I believe. You can implement a
telnet check simply by placing a 'telnet' tag in the  machines entry in
your hosts.cfg file. Putty can implement several protocols, you probably
are using ssh to communicate with your *nix machine, placing an 'ssh' tag
in the hosts.cfg entry will create an ssh test for the host. Similarly for
Windows use 'rdp' (for Remote Desktop Protocol).

Thanks,
Larry Barber

On Fri, Mar 9, 2012 at 1:16 PM, Becker Christian <
quoted from Becker Christian
user-e4a19bfb94c0@xymon.invalid> wrote:
 Hi there,


i have implemented a fresh install of Xymon 4.3.7 for our environment.
This includes at this time nearly 300 devices in total.


We had used a commercial tool before, and we are in the need to go away
from that commercial tool to Xymon. Knowing some of the features we had in
the commercial tool, i'm missing these features in Xymon.


For each device i'ld like to have a column that provides me with a
"PuTTY", "TELNET" or "MSTSC" feature. For example, if it is a Linux server,
i'ld like to have a "PUTTY" icon. For a windows machine, i want a "MSTSC"
icon. "TELNET" i want to have for several CISCO devices.


Currently i have created a ssh-protocol-handler in the local registry of
the "viewing" machine. Then i have created HOSTNAME.html files in the
server/www/notes directory which enables me to provide links, for example
HREF="ssh:HOSTNAME". This enables me to login to the specified host. In
general this is what i want.


But: i think it's more efficient to have an extra column on the overview
site which provides me with the specified protocol link. Would that be
possible to implement? For example with an extra tag in the hosts.cfg file?


Hope i have described detailed enough what i want...


Best regards

Christian


CSC • This is a PRIVATE message. If you are not the intended recipient,
please delete without copying and kindly advise us by e-mail of the mistake
in delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose • CSC Deutschland Services GmbH • Registered Office:
Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany • Board of Directors:
Gerhard Fercho (Chairman),Thomas Nebe, Peter Schmidt • Registered in
Germany: HRB 7574, Wiesbaden

list Don Kuhlman · Fri, 9 Mar 2012 20:19:08 +0000 ·
Just to clarify Christian. Are you saying you want to have the column on your main Xymon webpage for "Putty", then if the target (viewed) machine has this column, you click on it and want to open a session to that host to use Putty on the viewed machine from the Xymon server?

Same steps for Telent, and RDP ?

If so, that sounds interesting and I'd love to hear how that is done too.

Or, I believe if you are just trying to verify that a target (viewed) machine is listening for SSH, RDP, or the telnet protocol, you would edit the protocols.cfg file and add the test name with your parameters on the Xymon server and then configure your hosts.cfg for the target machine.

Since you mentioned Putty, it sounds like you want to use the Xymon web pages to actually make connections to your viewed machines from the Xymon server?

Don K
quoted from Becker Christian


From: Becker Christian <user-e4a19bfb94c0@xymon.invalid<mailto:user-e4a19bfb94c0@xymon.invalid>>
Date: Fri, 9 Mar 2012 19:16:58 +0000
To: "xymon at xymon.com<mailto:xymon at xymon.com>" <xymon at xymon.com<mailto:xymon at xymon.com>>
Subject: [Xymon] Extra column containing an access protocol (putty, telnet, mstsc)


Hi there,


i have implemented a fresh install of Xymon 4.3.7 for our environment. This includes at this time nearly 300 devices in total.


We had used a commercial tool before, and we are in the need to go away from that commercial tool to Xymon. Knowing some of the features we had in the commercial tool, i'm missing these features in Xymon.


For each device i'ld like to have a column that provides me with a "PuTTY", "TELNET" or "MSTSC" feature. For example, if it is a Linux server, i'ld like to have a "PUTTY" icon. For a windows machine, i want a "MSTSC" icon. "TELNET" i want to have for several CISCO devices.


Currently i have created a ssh-protocol-handler in the local registry of the "viewing" machine. Then i have created HOSTNAME.html files in the server/www/notes directory which enables me to provide links, for example HREF="ssh:HOSTNAME". This enables me to login to the specified host. In general this is what i want.


But: i think it's more efficient to have an extra column on the overview site which provides me with the specified protocol link. Would that be possible to implement? For example with an extra tag in the hosts.cfg file?


Hope i have described detailed enough what i want...


Best regards

Christian


CSC • This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose • CSC Deutschland Services GmbH • Registered Office: Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany • Board of Directors: Gerhard Fercho (Chairman),Thomas Nebe, Peter Schmidt • Registered in Germany: HRB 7574, Wiesbaden
list Becker Christian · Fri, 9 Mar 2012 20:44:11 +0000 ·
Don,
using a normal Windows machine I want to view the xymon monitoring pages. If a page contains for example Linux servers, I want to have a PuTTY column. Clicking on that should open PuTTY on my local Windows pc and connect to the selected Linux server on the xymon page. The same with telnet for Cisco devices and mstsc for Windows machines. That enables me to connect to nearly all monitored machines from one point just by clicking webpages.

Hope you got me?

More details on Monday...

Regards
Christian

Sent using HTC Desire

----- Reply message -----
Von: "Don Kuhlman" <user-5eb2bfadc6c6@xymon.invalid>
Datum: Fr., Mär. 9, 2012 21:19
Betreff: [Xymon] Extra column containing an access protocol (putty, telnet, mstsc)
An: "xymon at xymon.com" <xymon at xymon.com>
quoted from Don Kuhlman

Just to clarify Christian. Are you saying you want to have the column on your main Xymon webpage for "Putty", then if the target (viewed) machine has this column, you click on it and want to open a session to that host to use Putty on the viewed machine from the Xymon server?

Same steps for Telent, and RDP ?

If so, that sounds interesting and I'd love to hear how that is done too.

Or, I believe if you are just trying to verify that a target (viewed) machine is listening for SSH, RDP, or the telnet protocol, you would edit the protocols.cfg file and add the test name with your parameters on the Xymon server and then configure your hosts.cfg for the target machine.

Since you mentioned Putty, it sounds like you want to use the Xymon web pages to actually make connections to your viewed machines from the Xymon server?

Don K


From: Becker Christian <user-e4a19bfb94c0@xymon.invalid<mailto:user-e4a19bfb94c0@xymon.invalid>>
Date: Fri, 9 Mar 2012 19:16:58 +0000
To: "xymon at xymon.com<mailto:xymon at xymon.com>" <xymon at xymon.com<mailto:xymon at xymon.com>>
Subject: [Xymon] Extra column containing an access protocol (putty, telnet, mstsc)


Hi there,


i have implemented a fresh install of Xymon 4.3.7 for our environment. This includes at this time nearly 300 devices in total.


We had used a commercial tool before, and we are in the need to go away from that commercial tool to Xymon. Knowing some of the features we had in the commercial tool, i'm missing these features in Xymon.


For each device i'ld like to have a column that provides me with a "PuTTY", "TELNET" or "MSTSC" feature. For example, if it is a Linux server, i'ld like to have a "PUTTY" icon. For a windows machine, i want a "MSTSC" icon. "TELNET" i want to have for several CISCO devices.


Currently i have created a ssh-protocol-handler in the local registry of the "viewing" machine. Then i have created HOSTNAME.html files in the server/www/notes directory which enables me to provide links, for example HREF="ssh:HOSTNAME". This enables me to login to the specified host. In general this is what i want.


But: i think it's more efficient to have an extra column on the overview site which provides me with the specified protocol link. Would that be possible to implement? For example with an extra tag in the hosts.cfg file?


Hope i have described detailed enough what i want...


Best regards

Christian


CSC • This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose • CSC Deutschland Services GmbH • Registered Office: Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany • Board of Directors: Gerhard Fercho (Chairman),Thomas Nebe, Peter Schmidt • Registered in Germany: HRB 7574, Wiesbaden


CSC • This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose • CSC Deutschland Services GmbH • Registered Office: Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany • Board of Directors: Gerhard Fercho (Chairman),Thomas Nebe, Peter Schmidt • Registered in Germany: HRB 7574, Wiesbaden
list Don Kuhlman · Fri, 9 Mar 2012 20:57:41 +0000 ·
Yep – I believe I understand your requirement now Christian.  It makes sense to me too.

Down side is that I'm very new to Xymon - (been using it about two weeks) so I don't know how to do this kind of stuff yet. :(

If it's possible, I think we're on the right list as this group is very helpful so far with my dumb questions :)

Sorry I can't be of more help right now.  Enjoy your weekend though!
quoted from Becker Christian

Don K


From: Becker Christian <user-e4a19bfb94c0@xymon.invalid<mailto:user-e4a19bfb94c0@xymon.invalid>>
Date: Fri, 9 Mar 2012 20:44:11 +0000
To: Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid<mailto:user-5eb2bfadc6c6@xymon.invalid>>, "xymon at xymon.com<mailto:xymon at xymon.com>" <xymon at xymon.com<mailto:xymon at xymon.com>>
Subject: Antw.: [Xymon] Extra column containing an access protocol (putty, telnet, mstsc)

Don,
using a normal Windows machine I want to view the xymon monitoring pages. If a page contains for example Linux servers, I want to have a PuTTY column. Clicking on that should open PuTTY on my local Windows pc and connect to the selected Linux server on the xymon page. The same with telnet for Cisco devices and mstsc for Windows machines. That enables me to connect to nearly all monitored machines from one point just by clicking webpages.

Hope you got me?

More details on Monday...

Regards
Christian

Sent using HTC Desire

----- Reply message -----

Von: "Don Kuhlman" <user-5eb2bfadc6c6@xymon.invalid<mailto:user-5eb2bfadc6c6@xymon.invalid>>
quoted from Becker Christian
Datum: Fr., Mär. 9, 2012 21:19
Betreff: [Xymon] Extra column containing an access protocol (putty, telnet, mstsc)
An: "xymon at xymon.com<mailto:xymon at xymon.com>" <xymon at xymon.com<mailto:xymon at xymon.com>>

Just to clarify Christian. Are you saying you want to have the column on your main Xymon webpage for "Putty", then if the target (viewed) machine has this column, you click on it and want to open a session to that host to use Putty on the viewed machine from the Xymon server?

Same steps for Telent, and RDP ?

If so, that sounds interesting and I'd love to hear how that is done too.

Or, I believe if you are just trying to verify that a target (viewed) machine is listening for SSH, RDP, or the telnet protocol, you would edit the protocols.cfg file and add the test name with your parameters on the Xymon server and then configure your hosts.cfg for the target machine.

Since you mentioned Putty, it sounds like you want to use the Xymon web pages to actually make connections to your viewed machines from the Xymon server?

Don K


From: Becker Christian <user-e4a19bfb94c0@xymon.invalid<mailto:user-e4a19bfb94c0@xymon.invalid>>
Date: Fri, 9 Mar 2012 19:16:58 +0000
To: "xymon at xymon.com<mailto:xymon at xymon.com>" <xymon at xymon.com<mailto:xymon at xymon.com>>
Subject: [Xymon] Extra column containing an access protocol (putty, telnet, mstsc)


Hi there,


i have implemented a fresh install of Xymon 4.3.7 for our environment. This includes at this time nearly 300 devices in total.


We had used a commercial tool before, and we are in the need to go away from that commercial tool to Xymon. Knowing some of the features we had in the commercial tool, i'm missing these features in Xymon.


For each device i'ld like to have a column that provides me with a "PuTTY", "TELNET" or "MSTSC" feature. For example, if it is a Linux server, i'ld like to have a "PUTTY" icon. For a windows machine, i want a "MSTSC" icon. "TELNET" i want to have for several CISCO devices.


Currently i have created a ssh-protocol-handler in the local registry of the "viewing" machine. Then i have created HOSTNAME.html files in the server/www/notes directory which enables me to provide links, for example HREF="ssh:HOSTNAME". This enables me to login to the specified host. In general this is what i want.


But: i think it's more efficient to have an extra column on the overview site which provides me with the specified protocol link. Would that be possible to implement? For example with an extra tag in the hosts.cfg file?


Hope i have described detailed enough what i want...


Best regards

Christian


CSC • This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose • CSC Deutschland Services GmbH • Registered Office: Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany • Board of Directors: Gerhard Fercho (Chairman),Thomas Nebe, Peter Schmidt • Registered in Germany: HRB 7574, Wiesbaden


CSC • This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose • CSC Deutschland Services GmbH • Registered Office: Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany • Board of Directors: Gerhard Fercho (Chairman),Thomas Nebe, Peter Schmidt • Registered in Germany: HRB 7574, Wiesbaden
list Jon Dustin · Fri, 09 Mar 2012 17:04:11 -0500 ·
On 3/9/2012 at 3:44 PM, in message
<user-5659330c508d@xymon.invalid>, Becker Christian
quoted from Don Kuhlman
<user-e4a19bfb94c0@xymon.invalid> wrote:
Don,
using a normal Windows machine I want to view the xymon monitoring pages. If a page contains for example Linux servers, I want to have a PuTTY column. Clicking on that should open PuTTY on my local Windows pc and connect to the selected Linux server on the xymon page. The same with telnet for Cisco devices and mstsc for Windows machines. That enables me to connect to nearly all monitored machines from one point just by clicking webpages.
How about if you use the built-in "info" button in Xymon? Look at the HOSTS.CFG manpages, specifically:

DESCR:Hosttype:Description
Define some informational text about the host. The "Hosttype" is a text describing the type of this device - "router", "switch", "hub", "server" etc. The "Description" is an informational text that will be shown on the "Info" column page; this can e.g. be used to store information about the physical location of the device, contact persons etc. If the text contain whitespace, you must enclose it in double-quotes, e.g. DESCR:"switch:4th floor Marketing switch"

You may add html code to the DESCR field, and your browser will make it "clickable". 
I think you're wanting something like the following:

(hosts.cfg)
192.168.1.24	servername.co.com	# DESCR:"Web Server:description <a href=ssh:192.168.1.24>ssh</a>"

The above entry inside hosts.cfg would add a link of ssh:192.168.1.24 to the "info" button associated with that host in Xymon.

I hope this is clear; good luck!

-- 
 Jon Dustin - Network Specialist
University of Southern Maine
Portland, ME  XXX-XXX-XXXX
list Don Kuhlman · Fri, 9 Mar 2012 22:26:35 +0000 ·
Ok. Since we are sort of talking about the protocol.cfg file and other related things, ;),  I wanted to try and verify my understanding of it and also pose another question about how the tests are working.

Our protocols.cfg file contains this for ssh|ssh1|ssh2

[ssh|ssh1|ssh2]
   send "SSH-2.0-OpenSSH_4.1\r\n"
   expect "SSH"
   options banner
   port 22

I have a host running the ssh test configured as below in hosts.cfg:
1.2.3.4 sshostbeingtested.our.domain.com #fqdn.hostbeingtested.our.domain.com noconn ssh

This is an external server that is not ours and not on our internal network.
We are doing a sftp connection to it from applications and want to make sure sftp is working to that host.
The connection is using port 22 so that's why I picked the ssh test.

I can make a connection to that host over port 22 from a computer on our network.
It returns a string as below when I make a connection over port 22:

SSH-2.0-mod_sftp/0.9.7
☻|      ¶╧▐÷⌐└⌡
               7ï╝ôm╫ë┬÷ïdiffie-hellman-group-exchange-sha256,diffie-hellman-gro
up-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,rsa1024-
sha1ssh-rsa,ssh-dssÅaes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes12
8-cbc,blowfish-ctr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-
cbcÅaes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,blowfish-c
tr,blowfish-cbc,cast128-cbc,arcfour256,arcfour128,3des-ctr,3des-cbc:hmac-sha1,hm
ac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160:hmac-sha1,hmac-sha1-96,hmac-md5,h
mac-md5-96,hmac-ripemd160♦none♦noneV8┬·╗┐$█╥SSH-2.0-OpenSSH_4.1

1) So, is the ssh|ssh1|ssh2 test in protocols.cfg supposed to make the connection to the target host via port 22, then send it that string in red above - "SSH-2.0-OpenSSH_4.1\r\n" ?

2) If so, why would it send this, as we don't want to tell that to the host do we?

3) Then is it expecting the host to reply with only "SSH" or is it looking for anything matching that in the reply?
As you can see, the target host is sending a lot more back when you make a port 22 connection to it.

4) Is the options banner line supposed to say it's okay to send us all that other stuff back or not?

Thanks all.

If this has been answered, please send me the link as my google foo isn't fooing well again today while searching for this kind of clarification.

Don K
list Xymon User in Richmond · Fri, 9 Mar 2012 17:28:02 -0500 ·
quoted from Jon Dustin
On Fri, March 9, 2012 17:04, Jon Dustin wrote:
How about if you use the built-in "info" button in Xymon? Look at the
HOSTS.CFG manpages, specifically:

DESCR:Hosttype:Description Define some informational text about the host.
The "Hosttype" is a text describing the type of this device - "router",
"switch", "hub", "server" etc. The "Description" is an informational text
that will be shown on the "Info" column page; this can e.g. be used to
store information about the physical location of the device, contact
persons etc. If the text contain whitespace, you must enclose it in
double-quotes, e.g. DESCR:"switch:4th floor Marketing switch"

You may add html code to the DESCR field, and your browser will make it
"clickable".

I think you're wanting something like the following:

(hosts.cfg) 192.168.1.24	servername.co.com	# DESCR:"Web
Server:description <a href=ssh:192.168.1.24>ssh</a>"

The above entry inside hosts.cfg would add a link of ssh:192.168.1.24 to
the "info" button associated with that host in Xymon.

I hope this is clear; good luck!
Very clear, and very cool.  I've been using this stuff since the Big
Brother days and didn't know about that!
list Becker Christian · Sat, 10 Mar 2012 08:40:59 +0000 ·
Jon,

your idea sounds very good! I'll give this a try on Monday. Think that's what I want

Thank you,
Regards
Christian

Sent using HTC Desire

----- Reply message -----
Von: "Jon Dustin" <user-d8c63a8259c1@xymon.invalid>
Datum: Fr., Mär. 9, 2012 23:19
Betreff: [Xymon] Antw.: Extra column containing an access protocol (putty, telnet, mstsc)
quoted from Xymon User in Richmond
An: "xymon at xymon.com" <xymon at xymon.com>
On 3/9/2012 at 3:44 PM, in message
<user-5659330c508d@xymon.invalid>, Becker Christian
<user-e4a19bfb94c0@xymon.invalid> wrote:
Don,
using a normal Windows machine I want to view the xymon monitoring pages. If
a page contains for example Linux servers, I want to have a PuTTY column.
Clicking on that should open PuTTY on my local Windows pc and connect to the
selected Linux server on the xymon page. The same with telnet for Cisco
devices and mstsc for Windows machines. That enables me to connect to nearly
all monitored machines from one point just by clicking webpages.
How about if you use the built-in "info" button in Xymon? Look at the HOSTS.CFG manpages, specifically:

DESCR:Hosttype:Description
Define some informational text about the host. The "Hosttype" is a text describing the type of this device - "router", "switch", "hub", "server" etc. The "Description" is an informational text that will be shown on the "Info" column page; this can e.g. be used to store information about the physical location of the device, contact persons etc. If the text contain whitespace, you must enclose it in double-quotes, e.g. DESCR:"switch:4th floor Marketing switch"

You may add html code to the DESCR field, and your browser will make it "clickable".

I think you're wanting something like the following:

(hosts.cfg)
192.168.1.24    servername.co.com       # DESCR:"Web Server:description <a href=ssh:192.168.1.24>ssh</a>"

The above entry inside hosts.cfg would add a link of ssh:192.168.1.24 to the "info" button associated with that host in Xymon.

I hope this is clear; good luck!

--

Jon Dustin - Network Specialist
University of Southern Maine
Portland, ME  XXX-XXX-XXXX


CSC * This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose * CSC Deutschland Services GmbH * Registered Office: Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany * Board of Directors: Gerhard Fercho (Chairman),Thomas Nebe, Peter Schmidt * Registered in Germany: HRB 7574, Wiesbaden
list Malcolm Hunter · Sat, 10 Mar 2012 15:56:55 +0100 ·
quoted from Jon Dustin
----- Original Message -----
From: Jon Dustin
Sent: 03/09/12 10:04 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Antw.: Extra column containing an access protocol (putty, telnet, mstsc)
You may add html code to the DESCR field, and your browser will make it "clickable". 

I think you're wanting something like the following:

(hosts.cfg)
192.168.1.24 servername.co.com # DESCR:"Web Server:description <a href=ssh:192.168.1.24>ssh</a>"

The above entry inside hosts.cfg would add a link of ssh:192.168.1.24 to the "info" button associated with that host in Xymon.

I hope this is clear; good luck!
How do you make PuTTY start when you click this link?

Malcolm
--
BBWin Development - The Windows client for Big Brother and Xymon

http://bbwin.sourceforge.net
http://xymon.sourceforge.net
list Jon Dustin · Sat, 10 Mar 2012 15:36:40 -0500 ·
To start something like Putty you would need to define a "helper app" on your computer. Telnet is already defined on Windows, but SSH is not. 
Please forgive typos - sent from a mobile device
quoted from Malcolm Hunter

On Mar 10, 2012, at 9:58, "Malcolm Hunter" <user-8c18ec239c05@xymon.invalid> wrote:
----- Original Message -----
From: Jon Dustin
Sent: 03/09/12 10:04 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Antw.: Extra column containing an access protocol (putty, telnet, mstsc)
You may add html code to the DESCR field, and your browser will make it "clickable". 
I think you're wanting something like the following:

(hosts.cfg)
192.168.1.24 servername.co.com # DESCR:"Web Server:description <a href=ssh:192.168.1.24>ssh</a>"

The above entry inside hosts.cfg would add a link of ssh:192.168.1.24 to the "info" button associated with that host in Xymon.

I hope this is clear; good luck!
How do you make PuTTY start when you click this link?

Malcolm
--
BBWin Development - The Windows client for Big Brother and Xymon

http://bbwin.sourceforge.net
http://xymon.sourceforge.net
list Becker Christian · Mon, 12 Mar 2012 08:33:58 +0000 ·
Jon,

this didn't work for me. It seems to me that the section <a href=ssh:192.168.1.24>ssh</a> would not be interpreted as html.

Regards
Christian
quoted from Jon Dustin


-----Ursprüngliche Nachricht-----
Von: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] Im Auftrag von Jon Dustin
Gesendet: Freitag, 9. März 2012 23:04
An: xymon at xymon.com
Betreff: Re: [Xymon] Antw.: Extra column containing an access protocol (putty, telnet, mstsc)
On 3/9/2012 at 3:44 PM, in message
<user-5659330c508d@xymon.invalid>, Becker Christian
<user-e4a19bfb94c0@xymon.invalid> wrote:
Don,
using a normal Windows machine I want to view the xymon monitoring pages. If
a page contains for example Linux servers, I want to have a PuTTY column.
Clicking on that should open PuTTY on my local Windows pc and connect to the
selected Linux server on the xymon page. The same with telnet for Cisco
devices and mstsc for Windows machines. That enables me to connect to nearly
all monitored machines from one point just by clicking webpages.
How about if you use the built-in "info" button in Xymon? Look at the HOSTS.CFG manpages, specifically:

DESCR:Hosttype:Description
Define some informational text about the host. The "Hosttype" is a text describing the type of this device - "router", "switch", "hub", "server" etc. The "Description" is an informational text that will be shown on the "Info" column page; this can e.g. be used to store information about the physical location of the device, contact persons etc. If the text contain whitespace, you must enclose it in double-quotes, e.g. DESCR:"switch:4th floor Marketing switch"

You may add html code to the DESCR field, and your browser will make it "clickable".

I think you're wanting something like the following:

(hosts.cfg)
192.168.1.24    servername.co.com       # DESCR:"Web Server:description <a href=ssh:192.168.1.24>ssh</a>"

The above entry inside hosts.cfg would add a link of ssh:192.168.1.24 to the "info" button associated with that host in Xymon.

I hope this is clear; good luck!

--

Jon Dustin - Network Specialist
University of Southern Maine
Portland, ME  XXX-XXX-XXXX


CSC • This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose • CSC Deutschland Services GmbH • Registered Office: Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany • Board of Directors: Gerhard Fercho (Chairman),Thomas Nebe, Peter Schmidt • Registered in Germany: HRB 7574, Wiesbaden
list Hermann-Josef Beckers · Mon, 12 Mar 2012 10:10:31 +0100 ·
xymon-bounces at xymon.com schrieb am 12.03.2012 09:33:58:
Von:

Becker Christian <user-e4a19bfb94c0@xymon.invalid>

An:

Jon Dustin <user-d8c63a8259c1@xymon.invalid>, "xymon at xymon.com" <xymon at xymon.com>

Kopie:

"xymon at xymon.com" <xymon at xymon.com>

Datum:

12.03.2012 09:35
quoted from Becker Christian

Betreff:

Re: [Xymon] Antw.: Extra column containing an access protocol (putty, telnet, mstsc)

Gesendet von:
quoted from Becker Christian


Jon,

this didn't work for me. It seems to me that the section <a href=ssh:192.168.1.24>ssh</a> would not be interpreted as html.
Maybe You run into the same problem as I. Where You redirected to the info page for that host? Look at the description line on that page. There You will find the clickable link.

 The question remains: Is there a direct way to link from the
original page?

Yours
Hermann-Josef Beckers
list Becker Christian · Mon, 12 Mar 2012 09:46:16 +0000 ·
Malcolm,

I had to install ssh as a protocol handler as described in here:
http://schipka.com/archives/34

Did not work at the first attempt, but after playing around a bit with it, I got it to work.
Using this as an example I have developed an own protocol handler to handle rdp:// (for windows machines).

Hope this helps!
quoted from Becker Christian

Christian


-----Ursprüngliche Nachricht-----
Von: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] Im Auftrag von Malcolm Hunter
Gesendet: Samstag, 10. März 2012 15:57
An: xymon at xymon.com
Betreff: Re: [Xymon] Antw.: Extra column containing an access protocol (putty, telnet, mstsc)

----- Original Message -----
From: Jon Dustin
Sent: 03/09/12 10:04 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Antw.: Extra column containing an access protocol (putty, telnet, mstsc)
You may add html code to the DESCR field, and your browser will make it "clickable".

I think you're wanting something like the following:

(hosts.cfg)
192.168.1.24 servername.co.com # DESCR:"Web Server:description <a href=ssh:192.168.1.24>ssh</a>"

The above entry inside hosts.cfg would add a link of ssh:192.168.1.24 to the "info" button associated with that host in Xymon.

I hope this is clear; good luck!
How do you make PuTTY start when you click this link?

Malcolm
--
BBWin Development - The Windows client for Big Brother and Xymon

http://bbwin.sourceforge.net
http://xymon.sourceforge.net


CSC • This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose • CSC Deutschland Services GmbH • Registered Office: Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany • Board of Directors: Gerhard Fercho (Chairman),Thomas Nebe, Peter Schmidt • Registered in Germany: HRB 7574, Wiesbaden
list Malcolm Hunter · Mon, 12 Mar 2012 12:17:49 +0100 ·
quoted from Becker Christian
----- Original Message -----
From: Becker Christian
Sent: 03/12/12 09:46 AM
To: Malcolm Hunter, xymon at xymon.com
Subject: AW: [Xymon] Antw.: Extra column containing an access protocol (putty, telnet, mstsc)
I had to install ssh as a protocol handler as described in here:

http://schipka.com/archives/34


Did not work at the first attempt, but after playing around a bit with it, I got it to work.

Using this as an example I have developed an own protocol handler to handle rdp:// (for windows machines).
The only problem with these hacks is they breach the security of the web browser and are not supported. You also have to configure every user's desktop. I'd rather be a bit less lazy by double-clicking the IP address and pasting it into the appropriate application (e.g. PuTTY, mstsc, etc.)
quoted from Becker Christian

Malcolm
--
BBWin Development - The Windows client for Big Brother and Xymon

http://bbwin.sourceforge.net
http://xymon.sourceforge.net
list Jeremy Laidman · Tue, 13 Mar 2012 15:33:34 +1100 ·
On Sat, Mar 10, 2012 at 9:26 AM, Don Kuhlman
quoted from Don Kuhlman
1) So, is the ssh|ssh1|ssh2 test in protocols.cfg supposed to make the
connection to the target host via port 22, then send it that string in red
above - "SSH-2.0-OpenSSH_4.1\r\n" ?
Yes.
quoted from Don Kuhlman
2) If so, why would it send this, as we don't want to tell that to the host
do we?
This is how an ssh/sftp client talks to an ssh server.  It connects,
waits for the SSH-* banner, then sends its own SSH-* banner.
quoted from Don Kuhlman
3) Then is it expecting the host to reply with only "SSH" or is it looking
for anything matching that in the reply?
It looks for a banner that starts with "SSH".  It looks only in the
banner for this string.
quoted from Don Kuhlman
4) Is the options banner line supposed to say it's okay to send us all that
other stuff back or not?
The "banner" line causes Xymon to log what it receives from the
server, but before sending the "send" string.  All of the other data
should not be logged.

Cheers
Jeremy
list Jeremy Laidman · Tue, 13 Mar 2012 15:42:06 +1100 ·
On Sun, Mar 11, 2012 at 1:56 AM, Malcolm Hunter <user-8c18ec239c05@xymon.invalid> wrote:
How do you make PuTTY start when you click this link?
Here's one way: http://tools.rebel-it.com.au/PuTTY-tools/

J
list Malcolm Hunter · Tue, 13 Mar 2012 10:51:40 +0100 ·
quoted from Jeremy Laidman
----- Original Message -----
From: Jeremy Laidman
Sent: 03/13/12 04:42 AM
To: Malcolm Hunter
Subject: Re: [Xymon] Antw.: Extra column containing an access protocol (putty, telnet, mstsc)

On Sun, Mar 11, 2012 at 1:56 AM, Malcolm Hunter <user-8c18ec239c05@xymon.invalid> wrote:
How do you make PuTTY start when you click this link?
Here's one way: http://tools.rebel-it.com.au/PuTTY-tools/
See my previous reply to the list.
quoted from Malcolm Hunter

Malcolm
--
BBWin Development - The Windows client for Big Brother and Xymon

http://bbwin.sourceforge.net
http://xymon.sourceforge.net
list Don Kuhlman · Tue, 13 Mar 2012 15:07:30 +0000 ·
Thanks very much for clarifying Jeremy!
quoted from Jeremy Laidman

On 3/12/12 11:33 PM, "Jeremy Laidman" <user-71895fb2e44c@xymon.invalid> wrote:
On Sat, Mar 10, 2012 at 9:26 AM, Don Kuhlman
1) So, is the ssh|ssh1|ssh2 test in protocols.cfg supposed to make the
connection to the target host via port 22, then send it that string in
red
above - "SSH-2.0-OpenSSH_4.1\r\n" ?
Yes.
2) If so, why would it send this, as we don't want to tell that to the
host
do we?
This is how an ssh/sftp client talks to an ssh server.  It connects,
waits for the SSH-* banner, then sends its own SSH-* banner.
3) Then is it expecting the host to reply with only "SSH" or is it
looking
for anything matching that in the reply?
It looks for a banner that starts with "SSH".  It looks only in the
banner for this string.
4) Is the options banner line supposed to say it's okay to send us all
that
other stuff back or not?
The "banner" line causes Xymon to log what it receives from the
server, but before sending the "send" string.  All of the other data
should not be logged.

Cheers
Jeremy
list Becker Christian · Mon, 19 Mar 2012 10:18:02 +0000 ·
Hello,

I’ve got it managed to create a workaround for our company. This contains some steps:

1)      i decided to add specific tags to the hosts.cfg file (i.e. “PT” for telnet, “PS” for ssh, “PR” for rdp, “HT” for http, “HS” for https – just my idea to identify “my” options….)

2)      i created a script which walks through the hosts.cfg, looks for those option tags and creates “per-host-specific” html files, which are placed in the server/www/notes/ directory - these files contain the protocol specific connect URL as shown in the screenshots:

a.       for PuTTY
[cid:image002.png at 01CD05C1.69825AB0]

b.      for RDP / RDP console:
[cid:image003.png at 01CD05C1.69825AB0]

c.       for https:
[cid:image004.png at 01CD05C1.69825AB0]

3)      i did that for any of “my” protocol tags; depending on “my” tags, the script creates more than one protocol entry

4)      i added the specific protocol handler to the registry and I’m using a special compiled putty version to accept a “%1” parameter in the command line

5)      Disadvantage: you cannot use another “notes” page any longer


The above sounds very confusing, but for our company it’s working.

I had no success creating an additional column per host to include an optional connect url.

Regards
Christian


Von: Gé Janssen [mailto:user-876f637131f0@xymon.invalid]
Gesendet: Montag, 19. März 2012 09:36
An: Becker Christian
Betreff: [Spam:] Re: [Xymon] Antw.: Antw.: Extra column containing an access protocol (putty, telnet, mstsc)

Im Rahmen der Firmenrichtlinie wurde die Nachricht als Spam identifiziert


Hello Christian,

Seen your message on the xymon mailing list.

Did you had any success? I tried it, but didn't succeed:

https://home.gejanssen.com/xymon/Linux/Linux.html

The mercure server has the putty remark, but no success.

Regards

Gé Janssen
quoted from Becker Christian
On Sat, Mar 10, 2012 at 9:40 AM, Becker Christian <user-e4a19bfb94c0@xymon.invalid<mailto:user-e4a19bfb94c0@xymon.invalid>> wrote:

Jon,

your idea sounds very good! I'll give this a try on Monday. Think that's what I want

Thank you,
Regards
Christian

Sent using HTC Desire
----- Reply message -----

Von: "Jon Dustin" <user-d8c63a8259c1@xymon.invalid<mailto:user-d8c63a8259c1@xymon.invalid>>
quoted from Becker Christian
Datum: Fr., Mär. 9, 2012 23:19
Betreff: [Xymon] Antw.: Extra column containing an access protocol (putty, telnet, mstsc)
An: "xymon at xymon.com<mailto:xymon at xymon.com>" <xymon at xymon.com<mailto:xymon at xymon.com>>
On 3/9/2012 at 3:44 PM, in message
<user-5659330c508d@xymon.invalid<mailto:user-5659330c508d@xymon.invalid>>, Becker Christian
quoted from Becker Christian
<user-e4a19bfb94c0@xymon.invalid<mailto:user-e4a19bfb94c0@xymon.invalid>> wrote:
Don,
using a normal Windows machine I want to view the xymon monitoring pages. If
a page contains for example Linux servers, I want to have a PuTTY column.
Clicking on that should open PuTTY on my local Windows pc and connect to the
selected Linux server on the xymon page. The same with telnet for Cisco
devices and mstsc for Windows machines. That enables me to connect to nearly
all monitored machines from one point just by clicking webpages.
How about if you use the built-in "info" button in Xymon? Look at the HOSTS.CFG manpages, specifically:

DESCR:Hosttype:Description
Define some informational text about the host. The "Hosttype" is a text describing the type of this device - "router", "switch", "hub", "server" etc. The "Description" is an informational text that will be shown on the "Info" column page; this can e.g. be used to store information about the physical location of the device, contact persons etc. If the text contain whitespace, you must enclose it in double-quotes, e.g. DESCR:"switch:4th floor Marketing switch"

You may add html code to the DESCR field, and your browser will make it "clickable".

I think you're wanting something like the following:

(hosts.cfg)

192.168.1.24    servername.co.com<http://servername.co.com>;       # DESCR:"Web Server:description <a href=ssh:192.168.1.24>ssh</a>"
quoted from Becker Christian

The above entry inside hosts.cfg would add a link of ssh:192.168.1.24 to the "info" button associated with that host in Xymon.

I hope this is clear; good luck!

--

Jon Dustin - Network Specialist
University of Southern Maine
Portland, ME  XXX-XXX-XXXX


CSC • This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose • CSC Deutschland Services GmbH • Registered Office: Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany • Board of Directors: Gerhard Fercho (Chairman),Thomas Nebe, Peter Schmidt • Registered in Germany: HRB 7574, Wiesbaden
list Jeremy Laidman · Thu, 22 Mar 2012 08:56:05 +1100 ·
2012/3/19 Becker Christian <user-e4a19bfb94c0@xymon.invalid>
quoted from Becker Christian
I had no success creating an additional column per host to include an
optional connect url.
Perhaps a bit of javascript added into $XYMONBODYFOOTER could automagically
create links based on tests.  So if a host has a test called "ssh" then it
could automatically create an [ssh] link next to the hostname.

I'm having a play with this now...

J
list Nicolas Lienard · Sun, 25 Mar 2012 17:31:27 +0200 ·
Hi jeremy;

I'm also interested in this feature. 
Let me know if you manage to set it up by the $XYMONBODYFOOTER javascript way.


Cheers
nico
quoted from Jeremy Laidman


Le 21 mars 2012 à 22:56, Jeremy Laidman a écrit :
2012/3/19 Becker Christian <user-e4a19bfb94c0@xymon.invalid>


I had no success creating an additional column per host to include an optional connect url.


Perhaps a bit of javascript added into $XYMONBODYFOOTER could automagically create links based on tests.  So if a host has a test called "ssh" then it could automatically create an [ssh] link next to the hostname.

I'm having a play with this now...

J

list Jeremy Laidman · Mon, 26 Mar 2012 12:17:32 +1100 ·
quoted from Nicolas Lienard
On Mon, Mar 26, 2012 at 2:31 AM, Nico <user-4f1d872b9031@xymon.invalid> wrote:
Hi jeremy;

I'm also interested in this feature.

Let me know if you manage to set it up by the $XYMONBODYFOOTER javascript
way.
Nico, happy to help.  This is my first attempt, so it might have some
bugs, and certainly isn't perfect.

I've put the contents of xymonbodyfooter.cfg into
http://pastebin.com/eiCGC0yL.  Then in xymonserver.cfg:

XYMONBODYFOOTER="file:$XYMONHOME/etc/xymonbodyfooter.cfg"

I'm not a javascript programmer, so I'm sure someone else can come up
with a better implementation.  Consider it simply a proof-of-concept.

The script finds each hostname at the start of each row in the table,
then finds any columns of "http", "https" or "ssh" for that host, and
for each it creates a link after the hostname.  Adding extra connect
methods (eg rdp) requires addition to the "markuplist" array.

If there's no matching column, then the hotlink won't get created.
So, for instance, if you want a telnet: link, you need to have a
telnet test.  It would be nice to have it configurable on a per-host
basis, such as defining the available methods in hosts.cfg, but I
can't find a way for the javascript to get access to hosts.cfg
settings.  I thought about using the COMMENT: or DESCR: fields, but I
wasn't able to reliably get the details.  Perhaps I'll try this again
when I gets some spare time.

Cheers
Jeremy
list Jeremy Laidman · Tue, 27 Mar 2012 14:55:36 +1100 ·
On Mon, Mar 26, 2012 at 12:17 PM, Jeremy Laidman
quoted from Jeremy Laidman
<user-71895fb2e44c@xymon.invalid> wrote:
I thought about using the COMMENT: or DESCR: fields, but I
wasn't able to reliably get the details.  Perhaps I'll try this again
when I gets some spare time.
<time passes>

I've completed a version that works with the COMMENT: and DESCR:
strings instead of looking at the column names.  Find it here:
http://pastebin.com/zr1MWSPe.  Instructions are in the file, but
briefly just create DESCR or COMMENT settings in hosts.cfg like so:

10.1.1.10 someserver.example.com # testip ssh dns http DESCR:"random
server (connect: https, http, ssh)"

This will create hotlinks for https://servername, http://servername
and ssh://servername.  Hovering over the servername will show hover
text of "random server", as the "(connect:...)" string will be
stripped out.

Unfortunately, the DESCR is not displayed consistently in all pages.
For instance, in the "all non-green" page, the DESCR string is not
shown as hover text, but in parens after the hostname.  In theory,
this hack could clean up such cases, but doesn't.  I'll leave that as
an exercise for someone else.

Another idea I had for this was to allow specifying something like
"(link: http://someplace/?q=%s)".  This would be used to hotlink the
hostname.  This could be a link to your corporate asset management
system, or a page in your documentation wiki.  Again, this would want
to handle the "all non-green" anomaly.

Finally, a hint for anyone else trying this: dollar signs are
verboten.  I couldn't find a way to escape a dollar sign, but it seems
that xymongen can't handle them.  This is why I use
jQuery(...).somefunc() a lot, rather than the more common
$.somefunc().  I'm guessing it's a bug in xymongen, and I'm simply
pushing the limits on what was intended.

J
list Jamison Maxwell · Tue, 27 Mar 2012 11:17:12 +0000 ·
Impressive....


Jamison Maxwell
user-87d336c3dce6@xymon.invalid
quoted from Jeremy Laidman

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Jeremy Laidman
Sent: Monday, March 26, 2012 11:56 PM
To: Nico
Cc: xymon at xymon.com
Subject: Re: [Xymon] Antw.: Antw.: Extra column containing an access protocol (putty, telnet, mstsc)

On Mon, Mar 26, 2012 at 12:17 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid> wrote:
I thought about using the COMMENT: or DESCR: fields, but I wasn't able 
to reliably get the details.  Perhaps I'll try this again when I gets 
some spare time.
<time passes>

I've completed a version that works with the COMMENT: and DESCR:
strings instead of looking at the column names.  Find it here:
http://pastebin.com/zr1MWSPe.  Instructions are in the file, but briefly just create DESCR or COMMENT settings in hosts.cfg like so:

10.1.1.10 someserver.example.com # testip ssh dns http DESCR:"random server (connect: https, http, ssh)"

This will create hotlinks for https://servername, http://servername and ssh://servername.  Hovering over the servername will show hover text of "random server", as the "(connect:...)" string will be stripped out.

Unfortunately, the DESCR is not displayed consistently in all pages.
For instance, in the "all non-green" page, the DESCR string is not shown as hover text, but in parens after the hostname.  In theory, this hack could clean up such cases, but doesn't.  I'll leave that as an exercise for someone else.

Another idea I had for this was to allow specifying something like
"(link: http://someplace/?q=%s)".  This would be used to hotlink the hostname.  This could be a link to your corporate asset management system, or a page in your documentation wiki.  Again, this would want to handle the "all non-green" anomaly.

Finally, a hint for anyone else trying this: dollar signs are verboten.  I couldn't find a way to escape a dollar sign, but it seems that xymongen can't handle them.  This is why I use
jQuery(...).somefunc() a lot, rather than the more common $.somefunc().  I'm guessing it's a bug in xymongen, and I'm simply pushing the limits on what was intended.

J