Difference between revisions of "UM:Business Services"

From NetXMS Wiki
Jump to navigation Jump to search
Line 1: Line 1:
In a nutshell, ''Business Services'' is a tool for availability monitoring of logical services. Company email, web site, server farm, call center - all are examples of logical services. Moreover, the services can be combined together to define a "broader" logical service. Company email, web site, name server and firewall all can be referred to as "Company Internet Services" and monitored for availability as a whole. So if the name server goes down then the "Company Internet Services" do not function properly as a whole. This feature can be used both as .... 
{{DISPLAYTITLE:Business Services}}


=Introduction=
In a nutshell, ''Business Services'' is a tool for availability monitoring of logical services. Company email, web site, server farm, call center - all are examples of logical services. Moreover, the services can be combined together to define a "broader" logical service. Company email, web site, name server and firewall all can be referred to as "Company Internet Services" and monitored for availability as a whole. So if the name server goes down then the "Company Internet Services" do not function properly as a whole. This feature can be used both for internal QA and external Service Level Agreement (SLA) monitoring.
=Services, node links, service checks=
==Service==
==Service==
Business Services represented with a tree-like hierarchy of nested logical services, nodes and service checks. One can think of a service as a container consisting of other services, service checks and nodes linked to service checks. In NetXMS terminology the last is called ''node link''. For each service in the hierarchy, NetXMS calculates availability percentage and keeps track of all downtime cases. To check availability at any particular level, select it in the Object Browser or choose ''Availability Chart'' from the context menu.
Business Services represented with a tree-like hierarchy of nested logical services, nodes and service checks. One can think of a service as a container consisting of other services, service checks and nodes linked to service checks. In NetXMS terminology the last is called ''node link''. For each service in the hierarchy, NetXMS calculates availability percentage and keeps track of all downtime cases. To check availability at any particular level, select it in the Object Browser or choose ''Availability Chart'' from the context menu.
Line 8: Line 12:


==Service check==
==Service check==
''Service check'' is a test whose result is used to define the state of the service. A service check may belong to the specific node (node link) or directly to the service. A service check object contains NXSL script which either returns success (the test result ok) or failure (the service has failed). There are two special variables which can be used in NXSL scripts for service checks:  
''Service check'' is a test whose result is used to define the state of the service. A service check may belong to the specific node (node link) or directly to the service. A service check object contains NXSL script which either returns success (the test result ok) or failure (the service has failed). There are the following special variables and constants which can be used in NXSL scripts for service checks:  
* $node - points to the current node the check is being executed for
* $node - points to the current node the check is being executed for
* $reason - the script may set the reason of failure
* $reason - the script may set the reason of failure
* OK - constant, indicates success
* FAIL - constant, indicates failure
===Service check templates===
To avoid redefinition of the same service check multiple times (for multiple nodes) you can create service check templates. The principle behind service check template is very similar to [[UM:Data_Collection#Templates|Data Collection Templates]]. There are two notable differences though:
* A service check template is always applied automatically to every new node (node link) added to the service
* A service check template is applied to nodes in the current level in the service tree and in all levels below
=Configuration and usage=
Use ''Business Service'' container in the Object Browser view.
[[File:1_Object_Browser_Services.png|frame||left|Object Browser with Services]]<br style="clear: both" />
To define a new service select ''Create business service...'' from the context menu in Object Browser, and enter the service name. Then under newly created service you may want to define other services, checks or node links.
You can examine or alter properties of the service. The propeties dialog is similar to other objects (such as Node):
[[File:2_BizSvc_Properties.png|frame||left|Business Service Properties]]<br style="clear: both" />
If your service check relies on specific nodes then you need to create node links by selecting ''Create node link...'' from the context menu:
[[File:3_Create_Node_Link.png|frame||left|Create Node Link]]<br style="clear: both" />
One or more service checks must be defined for every node link. Service check can be also defined at a business service level. In the latter case it is not connected to any particular node and can be used for some general calculations (e.g. based on some server stats). To create a check select ''Create service check...'' from the context menu, enter the check name and navigate to Script tab in object properties:
[[File:4_Service_Check_Properties.png|frame||left|Service Check Properties]]<br style="clear: both" />
Every service check must have the non empty ''Check script'' text area, otherwise the check will not work.

Revision as of 01:29, 18 March 2013


Introduction

In a nutshell, Business Services is a tool for availability monitoring of logical services. Company email, web site, server farm, call center - all are examples of logical services. Moreover, the services can be combined together to define a "broader" logical service. Company email, web site, name server and firewall all can be referred to as "Company Internet Services" and monitored for availability as a whole. So if the name server goes down then the "Company Internet Services" do not function properly as a whole. This feature can be used both for internal QA and external Service Level Agreement (SLA) monitoring.

Services, node links, service checks

Service

Business Services represented with a tree-like hierarchy of nested logical services, nodes and service checks. One can think of a service as a container consisting of other services, service checks and nodes linked to service checks. In NetXMS terminology the last is called node link. For each service in the hierarchy, NetXMS calculates availability percentage and keeps track of all downtime cases. To check availability at any particular level, select it in the Object Browser or choose Availability Chart from the context menu.

Node link

Node link is a reference to any node with one or more service checks attached to this node.

Service check

Service check is a test whose result is used to define the state of the service. A service check may belong to the specific node (node link) or directly to the service. A service check object contains NXSL script which either returns success (the test result ok) or failure (the service has failed). There are the following special variables and constants which can be used in NXSL scripts for service checks:

  • $node - points to the current node the check is being executed for
  • $reason - the script may set the reason of failure
  • OK - constant, indicates success
  • FAIL - constant, indicates failure

Service check templates

To avoid redefinition of the same service check multiple times (for multiple nodes) you can create service check templates. The principle behind service check template is very similar to Data Collection Templates. There are two notable differences though:

  • A service check template is always applied automatically to every new node (node link) added to the service
  • A service check template is applied to nodes in the current level in the service tree and in all levels below

Configuration and usage

Use Business Service container in the Object Browser view.

Error creating thumbnail: Unable to save thumbnail to destination
Object Browser with Services


To define a new service select Create business service... from the context menu in Object Browser, and enter the service name. Then under newly created service you may want to define other services, checks or node links. You can examine or alter properties of the service. The propeties dialog is similar to other objects (such as Node):

Error creating thumbnail: Unable to save thumbnail to destination
Business Service Properties


If your service check relies on specific nodes then you need to create node links by selecting Create node link... from the context menu:

Error creating thumbnail: Unable to save thumbnail to destination
Create Node Link


One or more service checks must be defined for every node link. Service check can be also defined at a business service level. In the latter case it is not connected to any particular node and can be used for some general calculations (e.g. based on some server stats). To create a check select Create service check... from the context menu, enter the check name and navigate to Script tab in object properties:

Error creating thumbnail: Unable to save thumbnail to destination
Service Check Properties


Every service check must have the non empty Check script text area, otherwise the check will not work.