Module: nagvis
Branch: master
Commit: a0e1437c6d9e562f2b07ae8aa05ee6d358125a20
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=a0e1437c6d9e562f2b07ae8aa05ee6d358125a20

Author: Lars Michelsen <[email protected]>
Date:   Sat Apr 17 17:21:39 2010 +0200

Redesigning the backend interface of NagVis.

Decided to throw the old backend code away for redesigning the backend interface
completely. Instead of querying the backend many times for each object the
objects which want to have some information from the backend add an entry to a
centrally managed backend queue.

Progressing the queue is started at some point were all objects added their
entries to the queue. With this situation it is possible to reduce the amount
of backend and datasource queries.

With the new backend interface the detail informations for an object like the
current plugin output are only fetched when they are really shown to the user.
When the current state of an object is only needed for calculating the summary
state of another object the backends will only be told to fetch the state
counts of that object.

At the moment the new interface has only been implemented for the MKLivestatus
backend. I will rework the ndomy backend too. Maybe the ndo2fs backend gets
dropped during this progress since MKLivestatus is a briliant alternative to
ndo2fs and ndo2fs is not widely used.

---

 .../server/core/classes/GlobalBackendInterface.php |   60 +-
 share/server/core/classes/GlobalBackendMgmt.php    |  183 +++-
 .../core/classes/GlobalBackendmklivestatus.php     | 1132 ++++++++++----------
 .../core/classes/objects/NagiosHostgroup.php       |   91 --
 .../core/classes/objects/NagiosServicegroup.php    |   88 --
 share/server/core/defines/global.php               |    2 +-
 6 files changed, 763 insertions(+), 793 deletions(-)

Diff:   
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/diff/?id=a0e1437c6d9e562f2b07ae8aa05ee6d358125a20

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to