Forums / Suggestions / Monitoring API

Monitoring API

Author Message

Tony Wood

Thursday 31 July 2003 3:35:32 am

Would it be possbile for future version to have a moniting API. This would enable extensions to be written that could display the status of the system.

#Possible info
Database check
Templates error check
Number of users, online and registered
etc

This could be displayed in a tpl for http access or hocked into something like Nagios to enable automated monitoring.

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Selmah Maxim

Thursday 31 July 2003 3:45:41 am

nice idea ...

also ..

#Possible info
Sending msg to the visitor
Redirect him to page
Site status (number of users per h/d/w/m/y, best page .. etc)

Tony Wood

Friday 01 August 2003 6:57:59 am

After reading your post, i think there are two branches here.

1. A real-time monitoring tool
2. A hostoric monitoring tool..

For the second one wonder if a tag into AWSTATS or other type tool is possbile...

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Bård Farstad

Friday 01 August 2003 7:51:49 am

We should add this of some sort. We've already added very basic system information, this should be extended to support more information.

What's higest up on your wishlists?

My fav: Class statistics is one. Number of articles, images, users etc.. Also a monthly, yearly breakdown of this. This should be implemented as template functions so they will be available in any template, e.g. like our community stats page here at ez.no.

--bård

Documentation: http://ez.no/doc

Tony Wood

Friday 01 August 2003 10:27:33 am

My Fav: I think its got to be users, if a site gets an influx of users then it could affect its performance as they are likely to come back. Class stats are also useful as you can then check for anomalies in documents, users etc.

I think the biggest problem is checking for defacements, as the sites are CMS they can change all the time so normal checks don't work... Still thats one for more thought.

Back to subject, one check that would be nice would be the number of users online... I've seen it put to good use on the Mandrakeclub site where the forum posts not only show the name, number of posts but also if they are online or not.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Tony Wood

Wednesday 24 March 2004 2:21:48 pm

Has anyone developed this type of API yet?

-- tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Bård Farstad

Thursday 25 March 2004 12:50:13 am

Tony,

we've added database check in 3.4. This will compare the current database with a definition or another database. The GUI is not ready yet, it will be in 3.4.

--bård

Documentation: http://ez.no/doc

Tony Wood

Thursday 25 March 2004 1:54:44 am

Bard,

Can you please let me know the file name so I can take a look. Is it extendable or will we need to write a new module?
Don't worry about the gui, it we be check via an automated tool so just

Database : ok
Filesystem : ok
etc

will be fine.

--tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Bård Farstad

Thursday 25 March 2004 2:17:11 am

You can get some more information about this here:
http://ez.no/community/blog/database_diff_tool

Jan has made that script to compare the databases based on the library Derick made. We need to add this to the admin now which shows Database: ok. Or the errors which are in the database.

The file is called sqldiff.php.

--bård

Documentation: http://ez.no/doc

Tony Wood

Friday 26 March 2004 11:05:16 am

Thanks Bard, I think my need is slightly different, I might write a module

-- tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

eZ debug

Timing: Jan 18 2025 02:50:03
Script start
Timing: Jan 18 2025 02:50:03
Module start 'content'
Timing: Jan 18 2025 02:50:04
Module end 'content'
Timing: Jan 18 2025 02:50:04
Script end

Main resources:

Total runtime0.7717 sec
Peak memory usage4,096.0000 KB
Database Queries217

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 589.0156180.8516
Module start 'content' 0.00910.6095 769.8672673.6719
Module end 'content' 0.61850.1531 1,443.5391350.2578
Script end 0.7716  1,793.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.6290210.0002
Check MTime0.00170.2246210.0001
Mysql Total
Database connection0.00160.207910.0016
Mysqli_queries0.662385.82522170.0031
Looping result0.00230.30102150.0000
Template Total0.735995.420.3679
Template load0.00230.298620.0012
Template processing0.733695.061720.3668
Template load and register function0.00010.012210.0001
states
state_id_array0.00080.104610.0008
state_identifier_array0.00180.228620.0009
Override
Cache load0.00220.2812660.0000
Sytem overhead
Fetch class attribute can translate value0.00170.215740.0004
Fetch class attribute name0.00140.1825120.0001
XML
Image XML parsing0.00160.204240.0004
class_abstraction
Instantiating content class attribute0.00000.0046190.0000
General
dbfile0.00180.2342340.0001
String conversion0.00000.000830.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
9content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/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: 42
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs