JBoss Community Archive (Read Only)

RHQ 4.9

Nagios Plugin Architecture





RHQ Version

Plugin Version


View Source


Get Source


Plugin Architecture

The following UML diagramms give you an overview about the packages and contained classes that were implemented to handle the different tasks the livetstatus interface has to handle:

  • Initialize / Close connection to the MK_Livetstatus adress

  • Define LQL queries to request data from livestatus  and send them via the network interface

  • Receive replies and put them to Reply Objects

  • Parse the reply objects and put the parsed data into a software model that represents the Nagios structure

  • Offer the received data to the main plugin functinality

Overview about the packages and the classes they contain:


The Software model that represents the structure of the Nagios system (package "data"):  images/author/download/attachments/73139572/data.png

The classes that control the program and select the parsing methods for the single Livestatus Replies (package "controller"):  images/author/download/attachments/73139572/controller.png

The network class to communicate with mk_livestatus (package "network"): images/author/download/attachments/73139572/network.png

The request classes that implement the different kinds of possible livestatus requests. Each class contains the livestatus query language strings for the corresponding type of request (Host, Service, ...) (package "request"):  images/author/download/attachments/73139572/request.png

The reply classes that store the reply strings which are received from livetstatus and are given to the parser  (package "reply"): images/author/download/attachments/73139572/reply.png

The parser classes to parse the reply that comes from mk_livestatus and puts it to the classes from the data package: images/author/download/attachments/73139572/parser.png

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 07:58:18 UTC, last content change 2013-09-18 19:42:04 UTC.