l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
August 5: Social gathering
Next Installfest:
TBD
Latest News:
Jul. 4: July, August and September: Security, Photography and Programming for Kids
Page last updated:
2005 Jan 14 08:15

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Perl programming problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Perl programming problem



On Thu, 2005-01-13 at 12:58 -0800, Richard S. Crawford wrote:

> I'm trying to write a script which will live on my server at home and
> which will ping our server at work every five minutes or so, and send an
> e-mail message when it goes down or comes back up.

You might be re-inventing the wheel... have you looked at spong
(http://spong.sf.net)?

I maintained an installation of spong at ANU, where it watched our 3 Sun
Enterprise servers.  This was some years ago, but it did basically what
you want.  A process running independently on each server would
periodically wake up and try a series of modular tests - locally based
ones like checking for disk fulls, and "remote" tests which would
involve checking that each other server's (e.g.) smtp port was listening
and speaking smtp etc etc.  Any changes in test status would be emailed
to an administrator.

It was written in perl - you might at least find it useful for seeing
how the various tests were done.

-- 
Josh Parsons
Philosophy Department
1238 Social Sciences and Humanities Bldg.
University of California
Davis, CA 95616-8673
USA
 
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.