Active ticket system monitoring

Author Message

Nathan Kelly

Wednesday 09 April 2008 6:43:23 pm

Hi All,

I'm setting up to develop a new site with eZ and the first main project to tackle is to implement a ticket system, for this I plan to use the Ticket System contribution and modify it to suit certain requirements.

One of the requirements my client has asked for is an active monitoring interface, basically what they want to be able to do is keep the monitoring page open on a dedicated machine that updates automatically when ever a ticket is issued.

I want to avoid the "page refresh every ## seconds" approach because this I suspect will use up a lot of bandwidth, the ideal solution would be one that doesn't need to refresh an entire page but rather only updates 1 element on the page when a ticket is issued.

I was thinking that this might be possible to achieve with a combination of cronjobs, the built in workflow system and ajax? But unfortunately I don't have much experience with any of these operations.

I wonder if anyone here can help me with some ideas of where to start with something like this? Then again I might be looking at this all wrong and there may be a better way to achieve the functionality I'm after?

Any ideas or suggestions would be appreciated.

Cheers.

Pardon me while I burst into flames...

Maxime Thomas

Wednesday 09 April 2008 11:49:26 pm

Hi,

I guess the best solution is to create an ajax timer that will check if a new ticket is available.
You can post on a module with a specified function, something very light.

Max

Maxime Thomas
[email protected] | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Ekkehard Dörre

Thursday 10 April 2008 2:14:52 am

Hi Nathan,

... or you implement a message queue system like Dropr: https://www.dropr.org/
You make a message, when there is a new issue (e.g. with http://serwatka.net/blog/ez_publish_3_8_new_custom_edit_handler ) and the other server gets it.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Nathan Kelly

Thursday 10 April 2008 4:09:57 am

Cool thanks for the replies so far guys.

I should just make it clear that when I said they want a dedicated machine to monitor the system I meant basically just a pc with the browser open on the ticket page. Its not a cross server setup or anything like that.

I think I might look into Maxime's idea of an ajax request set on a timer that just checks if a record has been added or updated.

I'm still open to ideas though, this is a system that will need to handle a large amout of support tickets and will be constantly growing so I really need a robust solution.

Cheers.

Pardon me while I burst into flames...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 17 2025 17:26:34
Script start
Timing: Jan 17 2025 17:26:34
Module start 'layout'
Timing: Jan 17 2025 17:26:34
Module start 'content'
Timing: Jan 17 2025 17:26:35
Module end 'content'
Timing: Jan 17 2025 17:26:35
Script end

Main resources:

Total runtime1.0740 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 598.2656152.1172
Module start 'layout' 0.00480.0025 750.382839.4688
Module start 'content' 0.00731.0651 789.8516641.5703
Module end 'content' 1.07240.0016 1,431.421916.2422
Script end 1.0740  1,447.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2787160.0002
Check MTime0.00110.1053160.0001
Mysql Total
Database connection0.00070.067910.0007
Mysqli_queries1.017194.7007620.0164
Looping result0.00050.0479600.0000
Template Total1.046097.420.5230
Template load0.00190.179120.0010
Template processing1.044197.208820.5220
Template load and register function0.00010.011910.0001
states
state_id_array0.00060.060110.0006
state_identifier_array0.00220.205620.0011
Override
Cache load0.00160.1480310.0001
Sytem overhead
Fetch class attribute can translate value0.00050.043130.0002
Fetch class attribute name0.00100.097070.0001
XML
Image XML parsing0.00160.146630.0005
class_abstraction
Instantiating content class attribute0.00000.001080.0000
General
dbfile0.00200.1908280.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs