SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Daily Job Logs - contents.htm not complete

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Daily Job Logs - contents.htm not complete
Author Message
mbenton



Joined: 08 Feb 2010
Posts: 38
Country: United Kingdom

Post Daily Job Logs - contents.htm not complete Reply with quote
Hi, 24x7 Scheduler MP 4.3b293 JVM 1.5.0-22-b03, red hat Linux 5.4
I have a problem with the production of the file "contents.htm", in that it onlys lists todays Job Status Log, and not all the other htm Job Status Logs that are located in the same directory.
The file "contants.htm" contains the following;

/opt/sun/webserver7/https-rhelcs1/web-app/rhelcs1/24x7/reports : cat contents.htm
<html>

<head>

<title>Table of Contents</title>

<base>

</head>

<body>

<font><h3>Table of Contents</h3></font>

<table>

<tr><td><font><a>July 23, 2010</a></font></td></tr>

</table>



</body>

</html>

The directory where the reports are created contains the following;
/opt/sun/webserver7/https-rhelcs1/web-app/rhelcs1/24x7/reports : ls -lrt
total 18224
-rw-rw-r-- 1 webservd webservd 132 Jun 1 16:16 stop.gif
-rw-rw-r-- 1 webservd webservd 545 Jun 1 16:16 reports.htm
-rw-rw-r-- 1 webservd webservd 137 Jun 1 16:16 info.gif
-rw-rw-r-- 1 webservd webservd 132 Jun 1 16:16 excl.gif
-rw-rw-r-- 1 webservd webservd 22805 Jun 1 16:16 clock.gif
-rw-rw-r-- 1 webservd webservd 120541 Jun 2 12:08 01-June-2010.htm
-rw-rw-r-- 1 webservd webservd 167550 Jun 3 15:46 02-June-2010.htm
-rw-rw-r-- 1 webservd webservd 136747 Jun 4 11:52 03-June-2010.htm
-rw-rw-r-- 1 webservd webservd 51881 Jun 4 14:29 04-June-2010.htm
-rw-rw-r-- 1 webservd webservd 782399 Jun 23 09:01 22-June-2010.htm
-rw-rw-r-- 1 webservd webservd 272140 Jun 23 09:01 21-June-2010.htm
-rw-rw-r-- 1 webservd webservd 1030995 Jun 25 09:31 24-June-2010.htm
-rw-rw-r-- 1 webservd webservd 595000 Jun 25 09:31 23-June-2010.htm
-rw-rw-r-- 1 webservd webservd 761654 Jun 28 09:33 26-June-2010.htm
-rw-rw-r-- 1 webservd webservd 325330 Jun 28 09:33 25-June-2010.htm
-rw-rw-r-- 1 webservd webservd 649028 Jun 29 16:10 28-June-2010.htm
-rw-rw-r-- 1 webservd webservd 336757 Jun 30 09:25 29-June-2010.htm
-rw-rw-r-- 1 webservd webservd 751786 Jul 5 09:52 04-July-2010.htm
-rw-rw-r-- 1 webservd webservd 800780 Jul 5 09:52 03-July-2010.htm
-rw-rw-r-- 1 webservd webservd 657031 Jul 5 09:52 02-July-2010.htm
-rw-rw-r-- 1 webservd webservd 1545 Jul 6 09:51 06-December-2010.htm
-rw-rw-r-- 1 webservd webservd 440434 Jul 6 10:05 05-July-2010.htm
-rw-rw-r-- 1 webservd webservd 684930 Jul 7 08:40 06-July-2010.htm
-rw-rw-r-- 1 webservd webservd 1483 Jul 8 03:34 22-December-2010.htm
-rw-rw-r-- 1 webservd webservd 1460 Jul 8 04:59 27-June-2010.htm
-rw-rw-r-- 1 webservd webservd 1560 Jul 8 06:21 07-December-2010.htm
-rw-rw-r-- 1 webservd webservd 1469 Jul 8 07:17 30-July-2010.htm
-rw-rw-r-- 1 webservd webservd 1550 Jul 8 08:16 08-December-2010.htm
-rw-rw-r-- 1 webservd webservd 608452 Jul 8 09:14 07-July-2010.htm
-rw-rw-r-- 1 webservd webservd 1469 Jul 9 07:17 09-December-2010.htm
-rw-rw-r-- 1 webservd webservd 809956 Jul 9 09:34 08-July-2010.htm
-rw-rw-r-- 1 webservd webservd 880096 Jul 12 10:01 11-July-2010.htm
-rw-rw-r-- 1 webservd webservd 933358 Jul 12 10:01 10-July-2010.htm
-rw-rw-r-- 1 webservd webservd 753494 Jul 12 10:01 09-July-2010.htm
-rw-rw-r-- 1 webservd webservd 1463 Jul 13 08:32 12-December-2010.htm
-rw-rw-r-- 1 webservd webservd 741968 Jul 13 09:53 12-July-2010.htm
-rw-rw-r-- 1 webservd webservd 675950 Jul 14 09:28 13-July-2010.htm
-rw-rw-r-- 1 webservd webservd 380189 Jul 15 16:11 14-July-2010.htm
-rw-rw-r-- 1 webservd webservd 329094 Jul 16 08:58 15-July-2010.htm
-rw-rw-r-- 1 webservd webservd 1185 Jul 17 23:50 17-July-2010.htm
-rw-rw-r-- 1 webservd webservd 1181 Jul 18 23:50 18-July-2010.htm
-rw-rw-r-- 1 webservd webservd 372790 Jul 19 13:11 16-July-2010.htm
-rw-rw-r-- 1 webservd webservd 508419 Jul 20 09:11 19-July-2010.htm
-rw-rw-r-- 1 webservd webservd 1451 Jul 21 09:19 27-July-2010.htm
-rw-rw-r-- 1 webservd webservd 1474 Jul 21 14:17 29-July-2010.htm
-rw-rw-r-- 1 webservd webservd 1468 Jul 21 14:40 29-December-2010.htm
-rw-rw-r-- 1 webservd webservd 1547 Jul 21 19:14 30-June-2010.htm
-rw-rw-r-- 1 webservd webservd 1463 Jul 22 09:09 20-December-2010.htm
-rw-rw-r-- 1 webservd webservd 1462 Jul 22 09:10 31-July-2010.htm
-rw-rw-r-- 1 webservd webservd 1478 Jul 22 09:12 27-December-2010.htm
-rw-rw-r-- 1 webservd webservd 1470 Jul 22 09:13 01-July-2010.htm
-rw-rw-r-- 1 webservd webservd 1463 Jul 22 09:20 31-December-2010.htm
-rw-rw-r-- 1 webservd webservd 1154535 Jul 22 09:22 21-July-2010.htm
-rw-rw-r-- 1 webservd webservd 717810 Jul 22 09:22 20-July-2010.htm
-rw-rw-r-- 1 webservd webservd 882008 Jul 23 09:49 22-July-2010.htm
-rw-r--r-- 1 webservd webservd 1052 Jul 23 11:02 offline.index.htm
-rw-rw-r-- 1 root root 718 Jul 23 12:10 index.htm
-rw-rw-r-- 1 webservd webservd 411 Jul 23 12:16 contents.htm
-rw-rw-r-- 1 webservd webservd 247 Jul 23 12:16 banner.htm
-rw-rw-r-- 1 webservd webservd 18365 Jul 23 12:16 23-July-2010.htm

Any ideas why the table of contents is not created correctly ?

Regards Mike
Fri Jul 23, 2010 7:28 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7849

Post Reply with quote
It looks like it generates contents.htm file based on the results of the recent log flush (scheduler.log), not the contents of the target directory.

I'd like to propose the following custom solution:
1. Create a copy of contents.htm named repcontents.htm.
2. Create a copy of index,.htm named repindex.htm, edit this file in in a text editor and replace reference to contents.htm with repcontents.htm
3. Create a custom batch or JavaScript job to periodically update repcontents.htm based on the directory contents. Let's schedule this job to run every 15 minutes and set Do not Log option at the job level in order not to make it to pollute the logs.

Here is a template/idea for the job script
Code:
var dir = Dir.dir ("/opt/sun/webserver7/https-rhelcs1/web-app/rhelcs1/24x7/reports");
var files = dir.split(",");
var i;
var pattern = new RegExp("\\d{2}\-", "^");
var contents = "<html><body>";
for (i =0; i < files.length; i++)
{
   if (files[i].match(pattern)
      contents += "a href=\"" + files[i] + "\">" + files[i] + "</a><br>";
}
contents += "</body></html>";
File.save("/opt/sun/webserver7/https-rhelcs1/web-app/rhelcs1/24x7/reports/repcontents.htm", contents);

Fri Jul 23, 2010 11:26 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.