>- see footer for list info -<
something like #DateFormat(ScheduleRunTime,"YYYY-MMM-DD")#  ?


Duncan Cumming
New Media Developer
Customer Relations Management / Education
Fife Council
700 4105 / 01592 414105

>>> [EMAIL PROTECTED] 01/11/2006 16:04 >>>
>- see footer for list info -<
Hi All,

Have an interesting problem, put a script together which monitors a remote
service the other week, effectively, it checks a site page for a specific
piece of text, depending on result, i.e. http status not 200, text not
found, text found etc, it sets a cfschedule to repeat the check in 5 mins
time (if all is okay) or 1 min time (if there is a failure).

The system also records the uptime in increments of 5 mins and down time in
increments of 1 min for reporting via text message to a give mobile
number(s) with a appropriate message.

Messages on text come through something like this:

'Site sportfocus01 is up having been down last check (down for 2 mins).'
'Site sportfocus01 is down (Status Not 200) having been up last check
(stable for 3615 mins).'
'Site sportfocus01 is down (text not found) having been up last check
(stable for 4765 mins).'

Etc.

In order to reset the schedule, I am using the following command:

<cfschedule action="update" task="#attributes.ScheduleName#" url="#address#"
interval="once" operation="HTTPRequest"
startdate="#DateFormat(ScheduleRunTime,"DD/MM/YYYY")#"
starttime="#TimeFormat(ScheduleRunTime,"HH:MM:SS")#">

Address and schedule name are passed as URL vars as are a host of other
information such as status last check, status time etc, full URL looks
something like this:

http://mysite.com/index.cfm?fuseaction=system.CheckRemoteServices&URL2Check= 
http://somewebsite.com&RemoteURLsText=OK&PreviousStatus=OK&OKFrequency=5&Fai 
lureFrequency=1&ScheduleName=wdu376
checker&MSISDN2Notify=000000,000001,000002&StatusDuration=1255

This morning I encountered a problem where the date changed from 31/10 to
01/11 in which case the schedule suddenly thought it should be run on 11th
January with the american date format.

I have tried LSDateFormat, setting the SetLocale("English (UK)") etc but to
no avail, any ideas.

Lee Fortnam


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo 

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<


**********************************************************************
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed and 
should not be disclosed to any other party. 
If you have received this email in error please notify your system manager and 
the sender of this message.

This email message has been swept for the presence of computer viruses but no 
guarantee is given that this e-mail message and any attachments are free from 
viruses.

Fife Council
Tel: 08451 55 00 00
************************************************

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to