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

Becker Christian christian.becker at rhein-zeitung.net
Mon Mar 19 11:18:02 CET 2012


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:ge.janssen at gmail.com]
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
On Sat, Mar 10, 2012 at 9:40 AM, Becker Christian <christian.becker at rhein-zeitung.net<mailto:christian.becker at rhein-zeitung.net>> 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" <jdustin at usm.maine.edu<mailto:jdustin at usm.maine.edu>>
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
<0020F6A9-8970-412C-8584-952204D4506F at rhein-zeitung.net<mailto:0020F6A9-8970-412C-8584-952204D4506F at rhein-zeitung.net>>, Becker Christian
<christian.becker at rhein-zeitung.net<mailto:christian.becker at rhein-zeitung.net>> 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>"

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  207-780-4152


________________________________

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120319/087504b1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 10089 bytes
Desc: image002.png
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120319/087504b1/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 14689 bytes
Desc: image003.png
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120319/087504b1/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 10135 bytes
Desc: image004.png
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120319/087504b1/attachment-0002.png>


More information about the Xymon mailing list