Jair, we use salive to do something similar to what you'd like to do. Every
client we have with a VoiP phone system chassis backs up to a local machine we
have at their sites then at night I have a scheduled ftp job that sends them
back to our office. We installed PHP onto the windows box here at our office
from http://www.php.net/ then created a PHP script to check the ftp directories
for the existence of the files. The backup files are marked with a prefix for
which site/chassis they come from, yesterday's date, and are ftp'd into a
folder that matches the ID of our machine onsite that the phone system backs up
to. The URL check looks something like this in the end
http://localhost/sirss/checkbackup.php?prefix=prefixname&id=9999 and it is
looking for the page to contain TRUE. An example filename would be
prefix02-12-2008.tar located in ftproot\localuser\SIRSS9999\
The php script looks like this:
<?php
if(isset($_GET['id'])) {$id=$_GET['id'];} else {exit("Error: Must Supply ID");}
if(isset($_GET['prefix'])) {$prefix=$_GET['prefix'];} else {exit("Error: Must
Supply Prefix");}
$filename =
'c:\\inetpub\\ftproot\\localuser\\SIRSS'.$id.'\\'.$prefix.date('m-d-Y', time()
- (60 * 60 * 24)).'.tar';
if (file_exists($filename)) {echo 'TRUE';} else {echo 'FALSE';}
?>
I then setup the check with a schedule to only check between 7am-11pm but it
could even be just a 7am-7:10am check. Reason being is backup files are created
at all sites at 11-12 at night. They then ftp at offset times between 1am-6am
in the morning. Our check doesn't worry about them till 7am that way they've
all had time to get in. The way this is written it's also looking for the
previous day's date as well. The check runs on the following day but the
backups are set with the date from when they ran the night before. If any of
the files don't exist on the ftp the next morning the alert sends us emails and
text messages reflecting that.
If you need any more information just contact me directly and I'd be happy to
help you out.
Derrick Foster
L2 Technician
System Integrations Inc.
-----Original Message-----
From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Jair
E. Guerra
Sent: Wednesday, February 13, 2008 9:11 AM
To: Servers Alive Discussion List
Subject: RE: [SA-list] AS/400 checking
I am using *nix process or *nix diskspace addons,
But this is a file that a user HAS to check every day.
It is a log of the backup performed during the night.
I wanted to implement a SAlive process whereby it checks for the
existence
Of the backup-log file and ftp's (if possible) to a machine for me to go
and verify later.
Or better yet, if the file exists: to email it to my Sys Admin account.
At the moment I am using an ftp process set in cron right after the
backup to pass the file to my laptop.
Jair
-----Original Message-----
From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Dirk Bulinckx
Sent: Wednesday, February 13, 2008 12:21 AM
To: Servers Alive Discussion List
Subject: RE: [SA-list] AS/400 checking
Did you ever try the *nix process or *nix diskspace checker towards them
and did
that "work"?
Dirk Bulinckx.
-----Original Message-----
From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of
Crump, Mike
Sent: Wednesday, February 13, 2008 5:00 AM
To: Servers Alive Discussion List
Subject: RE: [SA-list] AS/400 checking
Yes. I5/OS V5R3 and V5R4. It is our primary OS.
The answer to your question is sort of. It is not included in the base
operating system however, as of V5R3 you can implement these functions
using 5733-SC1 IBM Portable Utilities for i5/OS.
http://www-03.ibm.com/servers/enable/site/porting/tools/openssh.html
The number of systems using PASE and Portable utilities is unknown but
should be growing at a decent rate. PASE is how servers like Zend PHP
are utilized.
Michael Crump
Manager, Computing Services
Saint-Gobain Containers, Inc.
1509 S. Macedonia Ave.
Muncie, IN 47302
765.741.7696
765.741.7012 f
Potential
Not everyone gets to be an astronaut when they grow up.
This email and its attachments may be confidential and are intended
solely for the use of the individual to whom it is addressed. Any views
or opinions expressed are solely those of the author and do not
necessarily represent those of Saint-Gobain. If it did, it would be
folded, mutilated, watered down, politically corrected, and would show
up a week later if at all. If you are not the intended recipient of
this email and its attachments, you must take no action based upon them,
nor must you copy or show them to anyone.
Please contact the sender if you believe you have received this email in
error.
-----Original Message-----
From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Dirk Bulinckx
Sent: Tuesday, February 12, 2008 6:30 PM
To: Servers Alive Discussion List
Subject: [SA-list] AS/400 checking
We would like to know if some of you are "still" using AS/400 systems
and if so
what OS is running on them and IF this OS has an SSH server.
You can OR answer via the listserver or directly to us.
Dirk Bulinckx.
To unsubscribe send a message with UNSUBSCRIBE as subject to
[email protected]
If you use auto-responders (like out-of-the-office messages), then make
sure that they are not send to the list nor to the individual members of
the list that send a message. Doing this will get you removed from the
list.
To unsubscribe send a message with UNSUBSCRIBE as subject to
[email protected]
If you use auto-responders (like out-of-the-office messages), then make
sure
that they are not send to the list nor to the individual members of the
list
that send a message. Doing this will get you removed from the list.
To unsubscribe send a message with UNSUBSCRIBE as subject to
[email protected]
If you use auto-responders (like out-of-the-office messages), then make
sure that they are not send to the list nor to the individual members of
the list that send a message. Doing this will get you removed from the
list.
To unsubscribe send a message with UNSUBSCRIBE as subject to [email protected]
If you use auto-responders (like out-of-the-office messages), then make sure
that they are not send to the list nor to the individual members of the list
that send a message. Doing this will get you removed from the list.
To unsubscribe send a message with UNSUBSCRIBE as subject to [email protected]
If you use auto-responders (like out-of-the-office messages), then make sure
that they are not send to the list nor to the individual members of the list
that send a message. Doing this will get you removed from the list.