Xymon Mailing List Archive search

How to setup a custom script to attempt server logons and other functions

list Gautier Begin
Fri, 9 Mar 2012 08:16:11 +0100
Message-Id: <user-9807371d9f25@xymon.invalid>

I have made a script with the last command that list all connections on UNIX.

Cordialement, Regards,Mit freundlichen Grüßen,

Gautier BEGIN

Admin and Tools Team
CSC Computer Sciences Luxembourg S.A.
12D Impasse Drosbach
L-1882 Luxembourg

Global Outsourcing Service | p:+352 24 834 276 | m:+352 621 229 172 | user-083785ae1711@xymon.invalid | www.csc.com


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 Computer Sciences SAS • Registered Office: Immeuble Le Balzac, 10 Place des Vosges, 92072 Paris La Défense Cedex, France • Registered in France: RCS Nanterre B 315 268 664


From:   user-87556346d4af@xymon.invalid
To:     "Phil Crooker" <user-e8e31cd73303@xymon.invalid>, "Don Kuhlman" <user-5eb2bfadc6c6@xymon.invalid>
Cc:     Xymon Email List <xymon at xymon.com>
Date:   03/09/2012 01:59 AM
Subject:        Re: [Xymon] How to setup a custom script to attempt server logons and other functions
Sent by:        xymon-bounces at xymon.com


lftp is another good tool for scripting access.

-jc


On Thu, March 8, 2012 4:37 pm, Phil Crooker wrote:
I use expect for this sort of job - scripting of an interactive task.
This uses tcl, so some learning to achieve, but expect works well and is
well documented.

cheers, Phil

On 9/03/2012 at 9:00 AM, in message
<user-9884b3151707@xymon.invalid>, Don
Kuhlman <user-5eb2bfadc6c6@xymon.invalid> wrote:
Hi folks. I've been googling all day, searching the forums, and
looking at
other spots but obviously I'm doing something wrong.

I'm trying to now setup some customization in Xymon for business
applications.

I want to do it either with a homemade script, download, or using
built in
features.

My first task is to try and login to an ftp server using a test id
and
password to verify it is up and accepting connections.

Next would be to connect via sFTP and try the same thing.

I'm also trying to do the same kind of tasks with webpages that host
applications.

Can someone point me to the best way to do this from our Xymon
server, and
if there are code snips of how to make an ftp connection, send an ID,
Password, and then quit, I would really appreciate knowing where to
find
them.

Regards,

Don K