Forums / Developer / Active ticket system monitoring

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
maxime.thomas@wascou.org | 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...

eZ debug

Timing: Jan 20 2025 17:26:50
Script start
Timing: Jan 20 2025 17:26:50
Module start 'content'
Timing: Jan 20 2025 17:26:51
Module end 'content'
Timing: Jan 20 2025 17:26:51
Script end

Main resources:

Total runtime0.9796 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 587.7188180.8359
Module start 'content' 0.00730.8797 768.5547632.7813
Module end 'content' 0.88700.0926 1,401.3359337.3750
Script end 0.9796  1,738.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4101210.0002
Check MTime0.00140.1416210.0001
Mysql Total
Database connection0.00120.118210.0012
Mysqli_queries0.898791.73411990.0045
Looping result0.00170.17231970.0000
Template Total0.950697.020.4753
Template load0.00210.217320.0011
Template processing0.948596.817420.4742
Template load and register function0.00010.013910.0001
states
state_id_array0.00090.091510.0009
state_identifier_array0.00090.088020.0004
Override
Cache load0.00170.1757310.0001
Sytem overhead
Fetch class attribute can translate value0.00140.139040.0003
Fetch class attribute name0.00110.109870.0002
XML
Image XML parsing0.00180.182340.0004
class_abstraction
Instantiating content class attribute0.00000.001580.0000
General
dbfile0.00230.2344390.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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