Difference between revisions of "Pandora: Documentation en: Services"
(→Vista de árbol de los servicios) |
Laura.cano (talk | contribs) (→Dynamic mode) |
||
(114 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
[[Pandora:Documentation_en|Go back to Pandora FMS documentation index]] | [[Pandora:Documentation_en|Go back to Pandora FMS documentation index]] | ||
+ | |||
= Service Monitoring = | = Service Monitoring = | ||
+ | |||
+ | {{Tip|[[Image:icono-modulo-enterprise.png|Enterprise version.]]<br>Service monitoring is a Pandora FMS Enterprise-exclusive feature.}} | ||
== Introduction == | == Introduction == | ||
− | A service is a way to group | + | A '''service''' in Pandora FMS is a way to group IT resources based on their features. |
− | A service could be | + | A service could be an official website, a CRM system, a support application, or even printers. Services are logical groups which can include hosts, routers, switches, firewalls, CRMs, ERPs, websites and of course, different other services. |
− | In Pandora FMS, | + | In Pandora FMS, services are represented as a group of monitored elements ([[Pandora:Documentation_en:Glossary#Module|'''Modules''']], [[Pandora:Documentation_en:Glossary#Agent|'''Agents''']] or other '''Services''') whose individual status affects in a certain way the global performance of the service provided. To learn more, watch our video tutorial [https://www.youtube.com/watch?v=9b7tbl7Sxcg "Service monitoring in Pandora FMS"] |
== Services under Pandora FMS == | == Services under Pandora FMS == | ||
− | |||
− | |||
− | + | [[Pandora:Documentation_en:Intro_Monitoring|Basic monitoring]] in Pandora FMS consists of collecting metrics from different sources, representing them as monitors (modules). Service-based monitoring allows to group these modules, so that, by playing with certain ranges based on failure build-up, groups of different types of elements and their relationship in a larger and general service can be monitored. | |
+ | |||
+ | In short, service monitoring allows to check the status of a global service. You will be able to know if our service is being provided normally (green), degraded (yellow) or if it is not being provided altogether (red). | ||
+ | |||
+ | [[Image:PFMS_color_legend.png|center|300px|Leyenda de colores y su significado.]] | ||
+ | |||
+ | Service monitoring is represented under three concepts: simple, by ''weight importance'' and chained by cascade events. | ||
+ | |||
+ | === How simple mode works === | ||
+ | |||
+ | In this mode it is only necessary to point out which elements are critical and which ones are not. | ||
+ | |||
+ | [[Image:New Service simple mode.png|center|600px|When creating a new service you may select simple mode.]] | ||
+ | |||
+ | Only elements checked as critical will be taken into account to make calculations and only the <code>critical</code> status od said elements will have value. | ||
+ | |||
+ | * When between 0 and 50% of the elements are in <code>critical</code> status, the service will go into <code>warning</code> status. | ||
+ | * ''When more'' than 50% of the elements go into <code>critical</code> status, the service will go into <code>critical</code> status. | ||
− | + | Example: | |
− | + | * Router is a '''critical''' element. | |
+ | * Printer is a '''non critical''' element. | ||
+ | * Apache Web Server is a '''critical''' element. | ||
− | + | Situation 1: | |
− | * | + | * Router, <code>critical</code> status. |
− | * | + | * Printer, <code>critical</code> status. |
− | * | + | * Apache Server, <code>warning</code> status. |
− | |||
− | |||
− | + | '''Result''': The service is in <code>warning</code> status since the printer is not critical, the router is in <code>critical</code> mode and only represents 50% of the critical elements, Apache server is ''not in crtitical status and does not add value to the evaluation''. | |
+ | Situation 2: | ||
+ | |||
+ | * Router, <code>critical</code> status. | ||
+ | * Printer, <code>critical</code> status. | ||
+ | * Apache Server, <code>critical</code> status. | ||
+ | |||
+ | '''Result''': Service in <code>critical</code> status (the printer still adds no value). | ||
+ | |||
+ | Situation 3: | ||
+ | |||
+ | * Router, <code>normal</code> status. | ||
+ | * Printer, <code>critical</code> status. | ||
+ | * Apache Server, <code>normal</code> status. | ||
+ | |||
+ | '''Result''': The status of the service would be '''normal''', since no key element is in ''critical'' status (again the printer does not add any value). | ||
+ | |||
+ | ===How services work according to their weight=== | ||
The need to monitor services as something "abstract" arises when faced with the following question: | The need to monitor services as something "abstract" arises when faced with the following question: | ||
− | '''What happens to | + | '''What happens to an application if a non-critical element fails?''' |
− | + | To solve all these doubts, in Pandora FMS there is the service monitoring feature that helps: | |
− | + | *Limit the number of received alerts. You will receive alerts about situations that compromise the reliability of the services you provide. | |
+ | *Track the SLA compliance level. | ||
+ | *Simplify the monitoring display of your infrastructure. | ||
− | |||
− | + | To achieve this, monitor every element that could negatively affect your application. | |
− | |||
− | |||
− | |||
+ | Through Pandora FMS console, define a '''service tree''' in which to indicate both the elements that affect your application, as well as their impact degree. | ||
− | + | All elements added to the service trees will correspond to information that is already being monitored, either in the form of modules, specific agents or other services. | |
− | |||
− | + | To indicate the degree to which the status of each element affects the overall status, a '''weight sum''' system will be used, so that the most important ones (with more weight) will be more relevant to adjust the overall status of the whole service to an incorrect status before less important elements (with less weight). | |
+ | ====Example==== | ||
− | + | You may monitor a web application balanced through a series of redundant elements. The infrastructure the application is based on is made in this example by the following elements: | |
+ | * Two HA routers. | ||
+ | * Two HA switches. | ||
+ | * Twenty Web Apache® servers. | ||
+ | * Four WebLogic® application servers. | ||
+ | * One MySQL® cluster made by two storing nodes and two SQL processing nodes. | ||
− | + | The goal is to find out whether the web application is working properly, that means the final appreciations by our clients is that the application receives, processes and returns en a peremptory time period the requests. | |
− | |||
− | |||
− | |||
− | |||
+ | If one of the twenty Apache servers were offline, due to so much redundancy, would it be wise to warn or alert all the employees? ''What is the rule for alerting?'' | ||
+ | |||
+ | You may conclude Pandora FMS should only warn if a highly critical element fails (for example a ''router'') or if serveral Apache servers are offline at the same time... but, how many of them? To solve this, weight values must be assigned to the list of previously described components: | ||
+ | |||
+ | ;''Switches'' and ''routers'': 5 points to each one when they are in <code>critical</code> and 3 points if they are in <code>warning</code>. | ||
+ | ;Web servers: 1.2 points to each one in <code>critical</code>, <code>warning</code> status is not contemplated. | ||
+ | ;WebLogic servers: 2 points to each one in <code>critical</code>. | ||
+ | ;MySQL cluster: 5 points to each one in <code>critical</code> and 3 points in <code>warning</code>. | ||
<table border="0" style="width: 80%; margin: 15px auto; border-collapse: collapse;"> | <table border="0" style="width: 80%; margin: 15px auto; border-collapse: collapse;"> | ||
<tr> | <tr> | ||
− | <th rowspan="2" style="color: #fff;padding-left: 0;text-align: center;"> | + | <th rowspan="2" style="color: #fff;padding-left: 0;text-align: center;">Tipo de elemento</th> |
− | <th colspan="4" style="color: #fff;padding-left: 0;text-align: center;"> | + | <th colspan="4" style="color: #fff;padding-left: 0;text-align: center;">Asignación de pesos</th> |
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 80: | Line 123: | ||
<tr><td>Router</td><td>0</td><td>3</td><td>5</td><td>5</td></tr> | <tr><td>Router</td><td>0</td><td>3</td><td>5</td><td>5</td></tr> | ||
<tr><td>Switch</td><td>0</td><td>3</td><td>5</td><td>5</td></tr> | <tr><td>Switch</td><td>0</td><td>3</td><td>5</td><td>5</td></tr> | ||
− | <tr><td> | + | <tr><td>Apache server</td><td>0</td><td>0</td><td>1,2</td><td>1,2</td></tr> |
− | <tr><td> | + | <tr><td>WebLogic server</td><td>0</td><td>0</td><td>2</td><td>2</td></tr> |
<tr><td>MySQL server</td><td>0</td><td>3</td><td>5</td><td>5</td></tr> | <tr><td>MySQL server</td><td>0</td><td>3</td><td>5</td><td>5</td></tr> | ||
</table> | </table> | ||
− | + | When in a normal situation, the sum of those weights is zero, that is why in this example <code>warning</code> status threshold must be higher than 4 and for <code>critical</code> status higher than 6: | |
− | |||
<table border="0" style="width: 80%; margin: 15px auto; border-collapse: collapse;"> | <table border="0" style="width: 80%; margin: 15px auto; border-collapse: collapse;"> | ||
<tr> | <tr> | ||
− | <th colspan="3" style="color: #fff;padding-left: 0;text-align: center;"> | + | <th colspan="3" style="color: #fff;padding-left: 0;text-align: center;">Configuración del servicio</th> |
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 104: | Line 146: | ||
</table> | </table> | ||
+ | Failure scenarios: | ||
− | + | * An Apache web server is offline (<code>critical</code> status): since everything else is in normal and adds 0 value, the total would be 1.2 since 1.2 < 4 (<code>warning</code> threshold), the service is still in OK status(<code>normal</code> status). | |
− | * | + | * A WEB server and a WebLogic one, both in <code>critical</code> status: the first one adds 1.2 points and the second 2.0 for a total of 3.2; however it is still lower than 4 so the service is still in OK status, no alerts or actions needed. |
− | + | * Now two WEB servers and a WebLogic one are offline: 2 x 1,2 + 1 x 2 = 4,4; in this case it exceeded the warning threshold so it goes into <code>warning</code> status; it is still working and it may not require any immediate technical action, but it is obvious there is a problem in the infrastructure. | |
− | + | * To the previous situation we add a router in <code>critical</code> status and it triggers a new situation: it adds 5 points to the weight sum and exceeds the criticity threshold set at 6; the service is in critical status, '''the service is not working''' and immediate technical action is required. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | In this last situation, '''Pandora FMS will alert''' the corresponding working team (operators, technicians, etc.). | ||
− | + | {{Tip|You may get more interesting information about service monitoring in [https://pandorafms.com/blog/service-monitoring/ Pandora FMS blog]}}. | |
− | + | === Root services === | |
− | |||
− | |||
− | + | {{Tip|[[Image:icono-modulo-enterprise.png|Enterprise version.]]<br>Version NG 726 or higher.}} | |
− | + | A root service is that one that is not part of another service. This logic concept allows making monitoring smoother, reducing work queues. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | In addition and based on that, when a service defined in a Pandora FMS node appears as a [[Pandora:Metaconsole:Documentation_en:Introduction#Introduction|Metaconsole]] root service element, the Metaconsole server will be the one to evaluate it, updating the values stored in the node. | ||
− | + | This provides a more efficient distributed logic, and allows to apply a [[Pandora:Documentation_en:Alerts#Service-based_cascade_protection|Cascade protection]] system based on services. | |
− | + | Metaconsole service possibilities have also been extended, allowing to add other services, modules or agents as service elements. In previous versions, only node services could be added. | |
− | |||
− | + | == Creating a new Service == | |
+ | ===Pandora FMS server=== | ||
− | + | {{Warning|The '''PredictionServer''' component must be enabled to be able to use these services.}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | It is necessary for the [[Pandora:Documentation_en:Architecture#The_Prediction_Server|PredictionServer]] component to be working and for Pandora FMS Enterprise server version to be installed. | ||
− | + | ===Introduction=== | |
− | + | The services may represent: | |
− | |||
− | |||
− | + | * Modules. | |
+ | * Full agents. | ||
+ | * Other Services. | ||
− | + | Service values are calculated using the Prediction Server. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Once you have all the devices monitored. Add within each service all the modules, agents or sub-services that you need to monitor the service. For example, if you want to monitor the Online Store service, you need a module for content, a service that monitors the state of communications and so on. | |
− | + | To create a new service, click on '''Services''' at the '''Topology Maps''' menu. | |
− | |||
+ | <br> | ||
+ | [[Image:menu_services.png|center]] | ||
+ | <br> | ||
− | + | A tree view containing all the available services will be shown. | |
− | + | <br> | |
+ | [[Image:Arbol_servicios.png|center|800px]] | ||
+ | <br> | ||
− | + | ===Initial Configuration=== | |
− | + | To create a new service, click on the '''Create service''' and fill out the form. | |
− | + | <br><center><br> | |
− | + | [[Image:Formulario_servicios.png|center|800px]] | |
− | + | </center><br><br> | |
− | + | ;Name: Unique name to identify the service. | |
+ | ;Description: Service description, a long mandatory text. Said description will appear in the service map, the service table view and the service widget (instead of the name). | ||
+ | ;Group: Group to which the service belongs, useful to organize it and to apply [[Pandora:Documentation_en:Managing_and_Administration#Profiles.2C_users.2C_groups_and_ACL|ACL]] restrictions. | ||
+ | ;Agent to store data: The service saves the data in some special data modules (in particular the prediction modules) and it is necessary to add an agent to be the container of said modules and the alarms (see the following steps). | ||
− | + | {{tip|'''Nota''': Please bear in mind that the interval in which all the calculations of the service modules will be done will depend on the agent interval configured as container.}} | |
− | |||
− | |||
− | + | [[Image:Formulario_servicios_detalle_1.png|center|600px|Modo para cálculos de peso.]] | |
− | + | ;Mode: Mode in which the element weights will be calculated. It may have 2 values: | |
− | * | + | ** '''Smart''': The service's weights and elements will be calculated automatically based on established rules. |
− | * | + | ** '''Manual''': The service's weights and elements will be indicated manually with fixed values. |
− | |||
− | + | * '''Critical''': Weight threshold to declare the service as critical. In '''smart''' mode this value will be a percentage. We will explain later how the elements contribute to this value. | |
+ | * '''Warning''': Weight threshold to declare the service as in warning status. In '''smart''' mode, this value will be a percentage. We will explain later how the elements contribute to this value. | ||
+ | ;Unknown elements as critical: It allows you to indicate that elements in an unknown state contribute their weight as if they were a critical element. | ||
+ | {{warning|The ''smart'' mode is only available from Pandora FMS version ''7.0NG 748''. | ||
− | + | The ''automatic'' and ''simple'' modes of previous versions will become ''manual'' by applying the ''MR 40'' in the version update.}} | |
+ | ;Favorite: It creates a direct link in the side menu and services will be able to be filters in the views based on this criteria. | ||
− | + | [[Image:Servicios_favoritos.png|center|700px]] | |
− | |||
− | |||
− | + | ;Quiet: It activates the silence mode of the service, so it will not generate alerts or events. | |
+ | ;Cascade protection enabled: It activates cascade protection over the service elements. These will not generate alerts or events if they belong to a service (or sub-service) that is in a critical state. | ||
+ | ;Calculate continuous SLA: It activates the creation of SLA and SLA value modules for the current service. If disabled, the dynamically calculated SLA information will not be available, nor will the alerts on SLA compliance for this service. It is used for cases where the number of services required is so high that it can affect performance. | ||
− | + | {{Warning|If this option is disabled, once the service has been created, the data history of these modules will be deleted, so information will be lost.}} | |
− | + | ;SLA Interval: Time period to calculate the effective SLA of the service. | |
+ | ;SLA limit: Service status threshold in OK to be considered a positive SLA during the period of time you have configured in the previous field. | ||
− | + | ;Alerts: In this section select templates that the service will have to launch the alert when the service goes into warning, critical, unknown status or when the service SLA is not met. | |
− | |||
− | |||
− | + | ===Element Configuration=== | |
− | Once | + | Once the form has been correctly filled in, it will have an empty service which must be filled in with elements as we will see below. In the service edition form, select the 'Configure elements' tab. |
− | |||
− | |||
<br> | <br> | ||
− | [[Image: | + | [[Image:Elementos_servicios.png|center]] |
<br> | <br> | ||
− | + | By clicking on '''Add element''', a pop-up window with a form will appear. The form will be slightly different if the service is in '''smart''' mode or in '''manual''' mode. | |
<br> | <br> | ||
− | [[Image: | + | [[Image:Formulario_elementos_servicios.png|center]] |
<br> | <br> | ||
− | + | ;Description: Optional text that will be used to represent the element on the service map. If not indicated, the name of the module, agent or service (depending on the added element) will be used. | |
+ | ;Type: Drop-down list to choose whether the element will be a service, module or agent. In smart mode services you can also choose the '''dynamic''' type. | ||
+ | ;Agent: Intelligent agent search engine. Only visible if the element to create or edit is an agent or module type. | ||
+ | ;Module: Deployable list with the modules of the agent previously chosen in the intelligent search engine. This control is only visible if an element for the module type service is edited or created. | ||
+ | ;Service: Dropdown list of the services to create an element. Only visible if the element to be created or edited is a service element. | ||
+ | |||
+ | {{Tip|It should also be noted that the services that will appear in the drop-down list are those that are not the ancestors of the service. This is necessary to show a correct tree structure of dependency between services.}} | ||
+ | |||
+ | ====Manual mode==== | ||
+ | |||
+ | The following fields will only available for services in manual mode: | ||
+ | |||
+ | * <code>critical</code>: Weight that the element will add to the service when in critical state. | ||
+ | * <code>warning</code>: Weight that the element will add to the service when in warning state. | ||
+ | * <code>unknown</code>: Weight that the element will add to the service when in unknown state. | ||
+ | * <code>normal</code>: Weight that the element will add to the service when in normal state. | ||
+ | |||
+ | To calculate the status of a service, the weight of each of its elements will be added based on its status, and if it exceeds the thresholds established in the service for warning or critical, the status of the service will change to warning or critical accordingly. | ||
+ | |||
+ | ====Smart mode==== | ||
+ | |||
+ | In smart mode services, since no weights are defined for the elements, the way their status is calculated is as follows: | ||
+ | |||
+ | * Critical elements contribute their full percentage to the weight of the service. This means that if, for example, there are 4 elements in the service and only 1 of them is critical, that element will add 25% to the weight of the service. If instead of 4 elements there were 5, the critical element would add 20% to the weight of the service. | ||
+ | * Warning elements contribute half of their percentage to the weight of the service. This means that if for example a service has 4 elements and only 1 of them is in warning status, that element will add 12.5% to the weight of the service. If instead of 4 elements there were 5, the warning element would add 10% to the weight of the service. | ||
+ | |||
+ | ===== Dynamic mode===== | ||
− | + | [[Image:Topology_maps-services-edit_service_elements-add_element-01.png|center|500px]] | |
− | [[Image: | + | |
− | + | The following fields will only be available for dynamic elements, in services in smart mode: | |
+ | |||
+ | ;Matching object types: Drop-down list to choose whether the elements for which the dynamic rules will be evaluated and that will be part of the service will be agents or modules. | ||
+ | ;Filter by group: Rule to indicate the group the element must belong to to be part of the service. | ||
+ | ;Having agent name: Rule to indicate the name of the agent that must have the element to be part of the service. A text will be indicated that must be part of the name of the desired agent. | ||
+ | ;Having module name: Rule to indicate the module name that must have the element to be part of the service. A text that must be part of the desired module name will be indicated. | ||
+ | [[Image:Topology_maps-services-edit_service_elements-add_element-02.png|center|400px]] | ||
+ | ;Use regular expresions selector: If you activate this option, the search mechanism using [https://en.wikipedia.org/wiki/Regular_expression Regular Expressions] ('''regex''' o '''regexp''') will be used, but according to how [https://dev.mysql.com/doc/refman/8.0/en/regexp.html MySQL handles this type of expressions.]. | ||
+ | ;Having custom field name: Rule to indicate the name of the custom field that must have the element to be part of the service. A text that must be part of the name of the desired custom field will be indicated. | ||
+ | ;Having custom field value: Rule to indicate the value of the custom field that the element must have to be part of the service. A text that must be part of the desired custom field value will be indicated. | ||
+ | |||
+ | [[Image:Topology_maps-services-edit_service_elements-add_element-03.png|center|400px]] | ||
− | + | {{Tip|You must place text in both fields to be considered when searching in custom fields.}} | |
− | + | [[Image:Topology_maps-services-edit_service_elements-add_element-04.png|center|400px]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | {{Tip|Since version NG 752, it is possible to add searches in more custom fields, these will be selected if they match any of the keyword pairs set.}} | |
− | + | [[Image:Topology_maps-services-edit_service_elements-add_element-07.png|center|400px]] | |
− | [[Image: | ||
− | |||
− | + | ;For example: If you choose to filter the Agents in the group '''Servers''' whose Agent's name ''contains'' <code>Firewall</code> and Module name ''contains'' <code>Network</code> you can obtain the following result. | |
− | + | [[Image:Topology_maps-services-edit_service_elements-add_element-06.png|center|600px]] | |
− | [[Image: | ||
− | |||
− | + | ;For example: if the configuration of a dynamic element was. | |
− | + | [[Image:Topology_maps-services-edit_service_elements-add_element-05.png|center|500px]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | All the modules that in its name include "Host Alive", in an agent whose name includes "SW", inside the "Servers" group, with a customized field whose name include "Department" with a value including "Systems", would be used as service elements. | |
− | |||
− | |||
− | |||
− | + | {{warning|Dynamic elements are not affected by service cascade protection.}} | |
− | |||
− | |||
− | + | ===Modules created when configuring a service=== | |
− | * '''SLA Value Service:''' The percentage value of | + | * '''SLA Value Service:''' The percentage value of SLA compliance. (<code>async_data</code>). |
− | * '''Service_SLA_Service:''' This shows | + | * '''Service_SLA_Service:''' This shows whether the SLA is met or not. (<code>async_proc</code>). |
− | * '''Service_Service:''' | + | * '''Service_Service:''' This module shows the sum of the service weights. (<code>async_data</code>). |
<br><br> | <br><br> | ||
− | + | == Service Visualization == | |
− | + | === Simple all-service view === | |
− | It is the operation list that shows all | + | It is the operation list that shows all created services. Of course, it only shows those groups that the user that is using the Pandora FMS console has access to. Click '''Operation''' > '''Monitoring''' and there '''Services'''. |
− | |||
− | |||
<center> | <center> | ||
Line 323: | Line 345: | ||
</center> | </center> | ||
− | Each row represents a service | + | Each row represents a service: |
− | + | ;Group: The icon of the group the service belongs to. | |
− | + | ;Critical: The threshold value for weight sums to get the service into 'critical' status. | |
− | + | ;Warning: The threshold value for weight sums to get the service into 'warning' status. | |
− | + | ;Value: The current value for weight sums for the service. | |
− | + | ;Status: An icon that represents the status of the service. Four possible status are represented: | |
− | |||
− | |||
− | Four possible status are represented: | ||
** '''Red''': The service is in 'critical' status because the value exceeded the critical threshold. | ** '''Red''': The service is in 'critical' status because the value exceeded the critical threshold. | ||
− | ** '''Yellow''': The service is in 'warning' status because the value exceeded the critical threshold. | + | ** '''Yellow''': The service is in 'warning' status because the value equaled or exceeded the critical threshold. |
− | ** '''Green''': The service is within the 'normal' range. | + | ** '''Green''': The service is within the 'normal' range because weight sum does not reach the threshold. |
− | ** '''Gray''': The service is in 'unknown' status. This usually means the service has been recently created and | + | ** '''Gray''': The service is in 'unknown' status. This usually means the service has been recently created and does not contain any modules or the Pandora FMS Prediction server is down. |
− | + | ;SLA: The current value of the SLA Service. The values can be: | |
− | ** '''OK''': | + | ** '''OK''': The SLA is met for the interval defined in the SLA service. |
− | ** '''INCORRECT''': The SLA is not | + | ** '''INCORRECT''': The SLA is not met for the interval currently defined in the SLA Service. |
− | ** '''N/A''': The SLA is in 'unknown' status because there is | + | ** '''N/A''': The SLA is in 'unknown' status because there is not enough data to perform the calculation. |
− | ===== Table | + | ===== Table including all services ===== |
− | A table for quick display | + | A table for quick display including all visible services and their current status. |
<br> | <br> | ||
[[File:Servs.JPG|center|800px]] | [[File:Servs.JPG|center|800px]] | ||
<br> | <br> | ||
− | ===== | + | ===== Simple list of a service and its elements ===== |
This view is accessible by clicking on the name of a service in the list of all services, or through the magnifying glass icon tab in the service title header. | This view is accessible by clicking on the name of a service in the list of all services, or through the magnifying glass icon tab in the service title header. | ||
− | Pandora will show a page similar to the one shown in the following screenshot: | + | Pandora FMS will show a page similar to the one shown in the following screenshot: |
<center> | <center> | ||
[[Image:Services list elements operation v5.png|center|800px]] | [[Image:Services list elements operation v5.png|center|800px]] | ||
</center> | </center> | ||
− | + | The list of the elements that make up this service is at the bottom: | |
− | |||
− | |||
− | |||
− | |||
− | * ''' | + | * '''Type''': The icon which represents the element type. It is a building block for modules or some stacked blocks for an agent and a Network Diagram Icon for the services. |
− | |||
− | |||
− | |||
− | |||
− | |||
+ | ;Type: The text which contains the name of the module, agent or service. They are also linked to the corresponding section. | ||
+ | ;Name: Text that contains the name of the agent, the name of the agent and module or the name of the service. All of them contain a link to the corresponding operation view. | ||
+ | ;Weight critical: The value if the element when in 'critical' status. The following three columns ('''Warning weight''', '''Weight Unknown''' and '''Weight OK''') correspond to ''warning'', ''unknown'' and ''normal''. | ||
+ | ;Data: The value of the element. It can adopt the following modes: | ||
** '''Module:''' The value of the module. | ** '''Module:''' The value of the module. | ||
− | ** '''Agents:''' The text | + | ** '''Agents:''' The text that displays the agent's status. |
− | ** ''' | + | ** '''Services:''' The weight sum of the elements of the service that has been chosen as the element for the parent service. |
− | + | ;Status: The icon which represents the element's status by color. | |
− | |||
− | |||
− | |||
− | + | {{Warning|Keep in mind that service-element calculation is performed by Prediction Server. What you look at is '''not''' real-time data. There are some situations in which a module's agent is added to the service where its weight will '''not''' be updated until calculation is performed by the Prediction Server again.}} | |
− | + | ==== Service map view ==== | |
− | + | This view will display the service in arborescent form as you can see in the following screenshot. That way, it is possible to quickly see how modules, agents or sub-services influence service monitoring. Even in sub-services you can see what influences them when calculating the status by summing weights. | |
− | |||
− | |||
− | |||
− | This view will display the service in arborescent form as you can see in the following screenshot. | ||
<center> | <center> | ||
Line 395: | Line 402: | ||
The possible nodes can be: | The possible nodes can be: | ||
− | + | ;Module Node: It is represented by the 'heartbeat' icon. This node is always final (leaf). | |
− | + | ;Agent Node: It is represented by the 'CPU box' icon. This module is always final too (leaf). | |
− | + | ;Service Node: It is represented by the 'crossed hammer and wrench' icon. This module is not a final node. It is required to contain additional nodes. | |
− | The node's colors and the arrow which connects them to the service depend on the node's status. | + | The node's colors and the arrow which connects them to the service depend on the node's status, as always green OK, red critical, yellow warning or grey in unknown state. |
There are the following attributes within the node: | There are the following attributes within the node: | ||
− | * '''Title:''' The name of the service's / agent's or module's node. | + | * '''Title:''' The name of the service's / agent's or module's node, accompanied by the agent. |
− | * '''Value list:''' | + | * '''Value list:''' |
− | ** '''Critical:''': The weight | + | ** '''Critical:''': The total weight it reaches in 'critical' status, except if it is the root-service node, which represents a threshold to reach the 'critical' status. |
− | ** '''Warning:''' The weight if it reaches 'warning' status, except if it | + | ** '''Warning:''' The weight if it reaches 'warning' status, except if it is the root-service node, which represents the threshold to reach the 'warning' status. |
− | ** '''Normal:''' The weight if it reaches 'normal' status, except if it | + | ** '''Normal:''' The weight if it reaches 'normal' status, except if it is the root-service node, in which case nothing will be displayed here. |
− | ** '''Unknown:''' The 'unknown' status, except if it | + | ** '''Unknown:''' The 'unknown' status, except if it is the root-service node, which represents a threshold to reach the 'unknown' status. |
You may click on each node in the tree. The target link represents the operational view of the node itself. | You may click on each node in the tree. The target link represents the operational view of the node itself. | ||
Line 415: | Line 422: | ||
{{tip|When the service mode is ''simple'', a red exclamation mark appears on the right side of the critical elements.}} | {{tip|When the service mode is ''simple'', a red exclamation mark appears on the right side of the critical elements.}} | ||
− | + | ==== Services within the Visual Console ==== | |
− | From Pandora FMS versions 5 | + | From Pandora FMS versions 5 onwards, you may add services in the Visual Console like any other item on the map. |
− | <center> | + | <br><center><br> |
− | [[Image: | + | [[Image:Servicios1.JPG|center|800px]] |
− | </center> | + | </center><br><br> |
− | To create a service item on a map, the process is the same as for all other visual map items, but the | + | To create a service item on a map, the process is the same as for all other visual map items, but the option range will be: |
− | <center> | + | <br><center><br> |
− | [[Image: | + | [[Image:Servicios2.JPG|center|800px]] |
− | </center> | + | </center><br><br> |
− | + | Controls: | |
− | * '''Label''': The title | + | * '''Label''': The title shown within the visual console's node. |
− | * '''Service''': | + | * '''Service''': Drop-down list that shows the services it has access to, to add to the map. |
− | Note that a service item, unlike other items | + | Note that a service item, unlike other items in the visual map, cannot be linked to other visual maps, and always the clickable link in the visual console is intended for the tree service map view described above. |
− | === | + | === Service tree view === |
− | + | This view allows you to view services in the form of a tree. | |
− | + | Each level shows the total number of elements included in each service or agent. | |
+ | * Services: It reports the total number of services, agents and modules that belong to that service. | ||
+ | * Agents: It reports the number of modules in critical state (red color), warning (yellow color), unknown (gray color), uninitiated (blue color) and normal state (green color). | ||
− | + | Services that do not belong to another one will always be shown on the first level. In the case of a child service, it will be shown nested inside its parent. | |
− | |||
− | |||
− | |||
− | |||
<center> | <center> | ||
Line 452: | Line 457: | ||
</center> | </center> | ||
− | {{Warning| | + | {{Warning|ACL permission restriction is only applied to the first level.}} |
<br><br> | <br><br> | ||
− | + | == How to read service values == | |
− | Planned shutdowns added before the stop date allow | + | Planned shutdowns added before the stop date allow recalculating the value of SLA reports, given that it allows "backwards" recalculating with scheduled shutdowns added afterwards (that option is globally activated in the general setup). When it is an SLA service report, if there is a scheduled shutdown that affects one or several service elements, the scheduled shutdown is considered to affect the service as a whole, since the shutdown impact on the whole service cannot be measured. |
+ | |||
+ | It is worth highlighting that this is at a report level. Therefore, service trees, and the information presented in the visual console are not altered based on planned shutdowns added after the intended execution date. These service compliance percentages are calculated in real time, based on the history data of the same service, they do not have anything to do with the actual report. | ||
− | + | On the other hand, it is important to know how the compliance percentage of a service is calculated: | |
− | + | ;Weight calculation in simple mode | |
+ | Weights are dealt with slightly differently on simple mode, since there is only the critical weight and the possibility of going into two more status apart from the normal one. Each element receives weight 1 on critical and 0 on other status, and each time there is a change in service elements, service weights are calculated again. The warning weight can be overlooked. It always has value 0.5 because if it is 0, the service will always be on warning at least, but warning weight is not used in simple mode. The critical weight is calculated so that it is half of the element critical weights summed, which is 1. If there are 3 elements, the service critical weight is 1.5 and then, it is the server the one in charge or checking whether the critical weight has been exceeded or matched to render the service into critical or warning status. | ||
− | + | ;Weight calculation according to their importance | |
+ | Suppose there is a service defined by a 95% compliance in a 1-hour interval. A table of values, where t is time, x is the compliance % (SLAs), and s is whether complies or not (1 it complies, 0 it fails), will be used. In 1 hour there should be exactly 12 samples (assuming the interval is 5 minutes long). | ||
− | + | Picture a similar case, where the service complies for the first 11 samples (first 55 minutes) and it fails in the 60th minute these would be the values: | |
<pre> | <pre> | ||
Line 485: | Line 494: | ||
</pre> | </pre> | ||
− | This case is easier to calculate. The % is calculated depending on the number of samples, for example in t3 there are a total of three samples that meet service, 100%, whereas t12, | + | This case is easier to calculate. The % is calculated depending on the number of samples, for example in t3, there are a total of three samples that meet service, a 100%, whereas in t12, there are 12 samples and 11 are valid samples: 11 / 12. |
− | + | Suppose you are in the middle of the series, and it is recovering slowly: | |
<pre> | <pre> | ||
Line 506: | Line 515: | ||
</pre> | </pre> | ||
− | So far all seems similar to the previous scenario, but | + | So far all seems similar to the previous scenario, but see what happens if you go over time: |
<pre> | <pre> | ||
Line 521: | Line 530: | ||
</pre> | </pre> | ||
− | Now | + | Now there is unintuitive behavior, because the volume of valid samples remains 11 for a time window that goes up to t18, where the only invalid value is out of the window, so in t18 compliance becomes 100%. This step between 91.6 and 100 is explained by the size of the window. The larger the window is (usually SLA calculation interval is daily, weekly or monthly), the less abrupt the step will be. |
− | + | == Service cascade protection == | |
− | |||
− | + | {{Tip|[[Image:icono-modulo-enterprise.png|Enterprise version.]]<br>Version NG 725 or higher.}} | |
− | |||
− | + | It is possible to mute service elements dynamically. This allows to avoid an alert overload for each element that belongs to a certain service or sub-services. | |
− | + | When the 'service cascade protection' feature is enabled, the action linked to the template configured for the root service will be executed. It will report which the elements have an incorrect status within the service. | |
− | + | It is important to take into account that this system allows the alerts of the elements within the service to be triggered when they go to critical status, even if the general service status is correct. | |
+ | Service cascade protection will indicate us which elements have failed regardless of the depth of the defined service. | ||
− | [[File: | + | <center> |
+ | [[File:service2test.png]] | ||
+ | </center> | ||
+ | In the example above we see that we have one of the elements of our service in critical status. Even if the main service is correct, it will warn us of the critical state of the elements within, triggering the alert related with the element in critical status. | ||
− | + | == Root cause analysis == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | You may have an endless number of sub-services (paths) within a service. In previous versions, Pandora FMS alerted indicating the service status (normal, critical, warning, etc.). From OUM725 on, there is a new macro available that will show the service status root cause. | ||
− | + | To use it, add the following text to the template linked to the service: | |
+ | Alert body: Example message | ||
+ | The series of events that have caused the service status is the following one: | ||
+ | _rca_ | ||
− | |||
− | + | This will return an output similar to this one: | |
− | + | Alert body: Example message | |
+ | The series of events that have caused the service status is the following one: | ||
+ | [Web Application -> HW -> Apache server 3] | ||
+ | [Web Application -> HW -> Apache server 4] | ||
+ | [Web Application -> HW -> Apache server 10] | ||
+ | [Web Application -> DB Instances -> MySQL_base_1] | ||
+ | [Web Application -> DB Instances -> MySQL_base_5] | ||
+ | [Web Application -> Balanceadores -> 192.168.10.139] | ||
+ | |||
+ | |||
+ | By seeing this output, it is supposed that: | ||
+ | |||
+ | * Apache servers 3,4 and 10 are in critical status | ||
+ | * MySQL_base databases 1 and 5 are down | ||
+ | * The 192.168.10.139 balancer does not respond | ||
+ | |||
+ | |||
+ | This added information allows to find out the reason behind the service status, reducing failure cause research tasks. | ||
+ | |||
+ | == Service grouping == | ||
+ | |||
+ | Services are logical groupings that make up an organization's business structure. That is why service grouping may make sense, since they depend on each other in many cases, creating for example a whole service (the business company) or more specific services (corporate web, communications, etc.). To group services, both the general and more particular services must be created, and the last ones must be added to the first one to create the logical tree-shaped structure. | ||
+ | |||
+ | This groups may help you to: create visual maps, configure alerts, apply monitoring policies, etc. Therefore, it is possible to create alerts that warn you when the business goes into critical status because sales representatives cannot do their job, or any branch is not working full capacity due to technichal problems with the ERP service. | ||
+ | |||
+ | To understand more clearly what service grouping is, take a look at these examples. | ||
+ | |||
+ | == Service monitoring examples == | ||
+ | |||
+ | === Pandora FMS service === | ||
+ | |||
+ | Use case where the status of Pandora FMS monitoring service made by Apache and MysSQL services and Pandora FMS server and Tentacle, with their respective weights, is monitored. | ||
+ | |||
+ | |||
+ | [[Image:Pesos.JPG|center|800px|Click to zoom in]] | ||
+ | |||
+ | Each of these elements is at the same time a service with different components, creating through service grouping a tree-shaped structure. | ||
+ | |||
+ | [[Image:Arbol.JPG|center|800px|Click to zoom in]] | ||
+ | |||
+ | In this case, the general Pandora FMS service will go into <code>critical</code> status when reaching weight 2 and <code>warning</code> when it reaches weight 1. | ||
+ | As seen, the four components have different weights on Pandora FMS service: | ||
+ | * '''MySQL:''' It is essential for Pandora FMS service. Individual weight of 2 if MySQL is down. It will get a weight of 1 if it is in warning status, showing a warning in Pandora FMS service. | ||
+ | * '''Pandora Server:''' It is essential for Pandora FMS service. Individual weight of 2 if the Pandora FMS Server is down. Individual weight of 1 if it is in warning status, for example, due to CPU overload, scaling the warning until reaching Pandora FMS general service. | ||
+ | * '''Apache:''' It implies a degrading of Pandora FMS service, but not a total interruption, so it gets an individual weight of 1 if it is down, showing the warning status in Pandora FMS service. | ||
+ | * '''Tentacle:''' It entails a degrading, and certain components may fail, but it does not Mean Pandora FMS stops working completely, so its individual weight in case of failure is 1, showing a warning in the general service. | ||
+ | |||
+ | === Cluster storing service, service grouping === | ||
+ | |||
+ | Services are logical groups that make up part of the business structure of an organization. Therefore, service grouping is reasonable since sometimes some services on their own do not have a complete meaning. To group services, they just need to be added to a greater service as elements, creating a new logical group. | ||
+ | |||
+ | In the following example, there is an HA storing cluster. This time, a system of two fileservers working at the same time has been chosen, each one controlling the percentage and the status of a series of hard drives that provide service to particular departments, creating a group service tree-shaped structure. | ||
Line 565: | Line 624: | ||
− | According to this structure, the critical threshold of the | + | According to this structure, the critical threshold of the company's storing service is reached when both fileservers fail, since that would turn down the service, while just one of them failing would entail a service downgrading. |
− | + | The following image contains weight configuration granted to two storing service main elements: | |
Line 572: | Line 631: | ||
− | + | This image shows the content and weight configuration of the FS01 grouped service. Here the elements have a specific weight according to their severity: | |
− | * '''FS01 ALIVE:''' | + | * '''FS01 ALIVE:''' Critical for the FS01 service, since it is the virtual IP allocated to the first hard drive cluster. Individual weight of 2, since if it is down, the rest of the service elements will not work. There is no <code>warning</code> threshold, since it is data that depends on the status Yes/No. |
− | * '''DHCPserver ping:''' | + | * '''DHCPserver ping:''' critical for the FS01 service. It has an individual weight of 2. In this case, there is no <code>warning</code> threshold either. |
− | * ''' | + | * '''Hard drives''': They have an individual weight of 1 in case they reach their critical threshold, and 0.5 for their <code>warning</code> threshold, so this will only affect critically the FS01 service if there are at least two in critical status or the four hard drives in warning status. |
[[File:Pesosfs01.JPG|center|800px]] | [[File:Pesosfs01.JPG|center|800px]] | ||
− | |||
− | |||
− | |||
− | |||
[[Pandora:Documentation_en|Go back to Pandora FMS documentation index]] | [[Pandora:Documentation_en|Go back to Pandora FMS documentation index]] | ||
[[Category:Pandora 3.0]] | [[Category:Pandora 3.0]] |
Latest revision as of 08:23, 22 February 2021
Go back to Pandora FMS documentation index
Contents
1 Service Monitoring
1.1 Introduction
A service in Pandora FMS is a way to group IT resources based on their features.
A service could be an official website, a CRM system, a support application, or even printers. Services are logical groups which can include hosts, routers, switches, firewalls, CRMs, ERPs, websites and of course, different other services.
In Pandora FMS, services are represented as a group of monitored elements (Modules, Agents or other Services) whose individual status affects in a certain way the global performance of the service provided. To learn more, watch our video tutorial "Service monitoring in Pandora FMS"
1.2 Services under Pandora FMS
Basic monitoring in Pandora FMS consists of collecting metrics from different sources, representing them as monitors (modules). Service-based monitoring allows to group these modules, so that, by playing with certain ranges based on failure build-up, groups of different types of elements and their relationship in a larger and general service can be monitored.
In short, service monitoring allows to check the status of a global service. You will be able to know if our service is being provided normally (green), degraded (yellow) or if it is not being provided altogether (red).
Service monitoring is represented under three concepts: simple, by weight importance and chained by cascade events.
1.2.1 How simple mode works
In this mode it is only necessary to point out which elements are critical and which ones are not.
Only elements checked as critical will be taken into account to make calculations and only the critical
status od said elements will have value.
- When between 0 and 50% of the elements are in
critical
status, the service will go intowarning
status. - When more than 50% of the elements go into
critical
status, the service will go intocritical
status.
Example:
- Router is a critical element.
- Printer is a non critical element.
- Apache Web Server is a critical element.
Situation 1:
- Router,
critical
status. - Printer,
critical
status. - Apache Server,
warning
status.
Result: The service is in warning
status since the printer is not critical, the router is in critical
mode and only represents 50% of the critical elements, Apache server is not in crtitical status and does not add value to the evaluation.
Situation 2:
- Router,
critical
status. - Printer,
critical
status. - Apache Server,
critical
status.
Result: Service in critical
status (the printer still adds no value).
Situation 3:
- Router,
normal
status. - Printer,
critical
status. - Apache Server,
normal
status.
Result: The status of the service would be normal, since no key element is in critical status (again the printer does not add any value).
1.2.2 How services work according to their weight
The need to monitor services as something "abstract" arises when faced with the following question:
What happens to an application if a non-critical element fails?
To solve all these doubts, in Pandora FMS there is the service monitoring feature that helps:
- Limit the number of received alerts. You will receive alerts about situations that compromise the reliability of the services you provide.
- Track the SLA compliance level.
- Simplify the monitoring display of your infrastructure.
To achieve this, monitor every element that could negatively affect your application.
Through Pandora FMS console, define a service tree in which to indicate both the elements that affect your application, as well as their impact degree.
All elements added to the service trees will correspond to information that is already being monitored, either in the form of modules, specific agents or other services.
To indicate the degree to which the status of each element affects the overall status, a weight sum system will be used, so that the most important ones (with more weight) will be more relevant to adjust the overall status of the whole service to an incorrect status before less important elements (with less weight).
1.2.2.1 Example
You may monitor a web application balanced through a series of redundant elements. The infrastructure the application is based on is made in this example by the following elements:
- Two HA routers.
- Two HA switches.
- Twenty Web Apache® servers.
- Four WebLogic® application servers.
- One MySQL® cluster made by two storing nodes and two SQL processing nodes.
The goal is to find out whether the web application is working properly, that means the final appreciations by our clients is that the application receives, processes and returns en a peremptory time period the requests.
If one of the twenty Apache servers were offline, due to so much redundancy, would it be wise to warn or alert all the employees? What is the rule for alerting?
You may conclude Pandora FMS should only warn if a highly critical element fails (for example a router) or if serveral Apache servers are offline at the same time... but, how many of them? To solve this, weight values must be assigned to the list of previously described components:
- Switches and routers
- 5 points to each one when they are in
critical
and 3 points if they are inwarning
. - Web servers
- 1.2 points to each one in
critical
,warning
status is not contemplated. - WebLogic servers
- 2 points to each one in
critical
. - MySQL cluster
- 5 points to each one in
critical
and 3 points inwarning
.
Tipo de elemento | Asignación de pesos | |||
---|---|---|---|---|
Normal | Warning | Critical | Unknown | |
Router | 0 | 3 | 5 | 5 |
Switch | 0 | 3 | 5 | 5 |
Apache server | 0 | 0 | 1,2 | 1,2 |
WebLogic server | 0 | 0 | 2 | 2 |
MySQL server | 0 | 3 | 5 | 5 |
When in a normal situation, the sum of those weights is zero, that is why in this example warning
status threshold must be higher than 4 and for critical
status higher than 6:
Configuración del servicio | ||
---|---|---|
Normal | Warning | Critical |
0 | >=4 | >=6 |
Failure scenarios:
- An Apache web server is offline (
critical
status): since everything else is in normal and adds 0 value, the total would be 1.2 since 1.2 < 4 (warning
threshold), the service is still in OK status(normal
status).
- A WEB server and a WebLogic one, both in
critical
status: the first one adds 1.2 points and the second 2.0 for a total of 3.2; however it is still lower than 4 so the service is still in OK status, no alerts or actions needed.
- Now two WEB servers and a WebLogic one are offline: 2 x 1,2 + 1 x 2 = 4,4; in this case it exceeded the warning threshold so it goes into
warning
status; it is still working and it may not require any immediate technical action, but it is obvious there is a problem in the infrastructure.
- To the previous situation we add a router in
critical
status and it triggers a new situation: it adds 5 points to the weight sum and exceeds the criticity threshold set at 6; the service is in critical status, the service is not working and immediate technical action is required.
In this last situation, Pandora FMS will alert the corresponding working team (operators, technicians, etc.).
You may get more interesting information about service monitoring in Pandora FMS blog |
|
.
1.2.3 Root services
A root service is that one that is not part of another service. This logic concept allows making monitoring smoother, reducing work queues.
In addition and based on that, when a service defined in a Pandora FMS node appears as a Metaconsole root service element, the Metaconsole server will be the one to evaluate it, updating the values stored in the node.
This provides a more efficient distributed logic, and allows to apply a Cascade protection system based on services.
Metaconsole service possibilities have also been extended, allowing to add other services, modules or agents as service elements. In previous versions, only node services could be added.
1.3 Creating a new Service
1.3.1 Pandora FMS server
It is necessary for the PredictionServer component to be working and for Pandora FMS Enterprise server version to be installed.
1.3.2 Introduction
The services may represent:
- Modules.
- Full agents.
- Other Services.
Service values are calculated using the Prediction Server.
Once you have all the devices monitored. Add within each service all the modules, agents or sub-services that you need to monitor the service. For example, if you want to monitor the Online Store service, you need a module for content, a service that monitors the state of communications and so on.
To create a new service, click on Services at the Topology Maps menu.
A tree view containing all the available services will be shown.
1.3.3 Initial Configuration
To create a new service, click on the Create service and fill out the form.
- Name
- Unique name to identify the service.
- Description
- Service description, a long mandatory text. Said description will appear in the service map, the service table view and the service widget (instead of the name).
- Group
- Group to which the service belongs, useful to organize it and to apply ACL restrictions.
- Agent to store data
- The service saves the data in some special data modules (in particular the prediction modules) and it is necessary to add an agent to be the container of said modules and the alarms (see the following steps).
Nota: Please bear in mind that the interval in which all the calculations of the service modules will be done will depend on the agent interval configured as container. |
|
- Mode
- Mode in which the element weights will be calculated. It may have 2 values:
- Smart: The service's weights and elements will be calculated automatically based on established rules.
- Manual: The service's weights and elements will be indicated manually with fixed values.
- Critical: Weight threshold to declare the service as critical. In smart mode this value will be a percentage. We will explain later how the elements contribute to this value.
- Warning: Weight threshold to declare the service as in warning status. In smart mode, this value will be a percentage. We will explain later how the elements contribute to this value.
- Unknown elements as critical
- It allows you to indicate that elements in an unknown state contribute their weight as if they were a critical element.
The smart mode is only available from Pandora FMS version 7.0NG 748. The automatic and simple modes of previous versions will become manual by applying the MR 40 in the version update. |
|
- Favorite
- It creates a direct link in the side menu and services will be able to be filters in the views based on this criteria.
- Quiet
- It activates the silence mode of the service, so it will not generate alerts or events.
- Cascade protection enabled
- It activates cascade protection over the service elements. These will not generate alerts or events if they belong to a service (or sub-service) that is in a critical state.
- Calculate continuous SLA
- It activates the creation of SLA and SLA value modules for the current service. If disabled, the dynamically calculated SLA information will not be available, nor will the alerts on SLA compliance for this service. It is used for cases where the number of services required is so high that it can affect performance.
If this option is disabled, once the service has been created, the data history of these modules will be deleted, so information will be lost. |
|
- SLA Interval
- Time period to calculate the effective SLA of the service.
- SLA limit
- Service status threshold in OK to be considered a positive SLA during the period of time you have configured in the previous field.
- Alerts
- In this section select templates that the service will have to launch the alert when the service goes into warning, critical, unknown status or when the service SLA is not met.
1.3.4 Element Configuration
Once the form has been correctly filled in, it will have an empty service which must be filled in with elements as we will see below. In the service edition form, select the 'Configure elements' tab.
By clicking on Add element, a pop-up window with a form will appear. The form will be slightly different if the service is in smart mode or in manual mode.
- Description
- Optional text that will be used to represent the element on the service map. If not indicated, the name of the module, agent or service (depending on the added element) will be used.
- Type
- Drop-down list to choose whether the element will be a service, module or agent. In smart mode services you can also choose the dynamic type.
- Agent
- Intelligent agent search engine. Only visible if the element to create or edit is an agent or module type.
- Module
- Deployable list with the modules of the agent previously chosen in the intelligent search engine. This control is only visible if an element for the module type service is edited or created.
- Service
- Dropdown list of the services to create an element. Only visible if the element to be created or edited is a service element.
It should also be noted that the services that will appear in the drop-down list are those that are not the ancestors of the service. This is necessary to show a correct tree structure of dependency between services. |
|
1.3.4.1 Manual mode
The following fields will only available for services in manual mode:
-
critical
: Weight that the element will add to the service when in critical state. -
warning
: Weight that the element will add to the service when in warning state. -
unknown
: Weight that the element will add to the service when in unknown state. -
normal
: Weight that the element will add to the service when in normal state.
To calculate the status of a service, the weight of each of its elements will be added based on its status, and if it exceeds the thresholds established in the service for warning or critical, the status of the service will change to warning or critical accordingly.
1.3.4.2 Smart mode
In smart mode services, since no weights are defined for the elements, the way their status is calculated is as follows:
- Critical elements contribute their full percentage to the weight of the service. This means that if, for example, there are 4 elements in the service and only 1 of them is critical, that element will add 25% to the weight of the service. If instead of 4 elements there were 5, the critical element would add 20% to the weight of the service.
- Warning elements contribute half of their percentage to the weight of the service. This means that if for example a service has 4 elements and only 1 of them is in warning status, that element will add 12.5% to the weight of the service. If instead of 4 elements there were 5, the warning element would add 10% to the weight of the service.
1.3.4.2.1 Dynamic mode
The following fields will only be available for dynamic elements, in services in smart mode:
- Matching object types
- Drop-down list to choose whether the elements for which the dynamic rules will be evaluated and that will be part of the service will be agents or modules.
- Filter by group
- Rule to indicate the group the element must belong to to be part of the service.
- Having agent name
- Rule to indicate the name of the agent that must have the element to be part of the service. A text will be indicated that must be part of the name of the desired agent.
- Having module name
- Rule to indicate the module name that must have the element to be part of the service. A text that must be part of the desired module name will be indicated.
- Use regular expresions selector
- If you activate this option, the search mechanism using Regular Expressions (regex o regexp) will be used, but according to how MySQL handles this type of expressions..
- Having custom field name
- Rule to indicate the name of the custom field that must have the element to be part of the service. A text that must be part of the name of the desired custom field will be indicated.
- Having custom field value
- Rule to indicate the value of the custom field that the element must have to be part of the service. A text that must be part of the desired custom field value will be indicated.
Since version NG 752, it is possible to add searches in more custom fields, these will be selected if they match any of the keyword pairs set. |
|
- For example
- If you choose to filter the Agents in the group Servers whose Agent's name contains
Firewall
and Module name containsNetwork
you can obtain the following result.
- For example
- if the configuration of a dynamic element was.
All the modules that in its name include "Host Alive", in an agent whose name includes "SW", inside the "Servers" group, with a customized field whose name include "Department" with a value including "Systems", would be used as service elements.
1.3.5 Modules created when configuring a service
- SLA Value Service: The percentage value of SLA compliance. (
async_data
).
- Service_SLA_Service: This shows whether the SLA is met or not. (
async_proc
).
- Service_Service: This module shows the sum of the service weights. (
async_data
).
1.4 Service Visualization
1.4.1 Simple all-service view
It is the operation list that shows all created services. Of course, it only shows those groups that the user that is using the Pandora FMS console has access to. Click Operation > Monitoring and there Services.
Each row represents a service:
- Group
- The icon of the group the service belongs to.
- Critical
- The threshold value for weight sums to get the service into 'critical' status.
- Warning
- The threshold value for weight sums to get the service into 'warning' status.
- Value
- The current value for weight sums for the service.
- Status
- An icon that represents the status of the service. Four possible status are represented:
- Red: The service is in 'critical' status because the value exceeded the critical threshold.
- Yellow: The service is in 'warning' status because the value equaled or exceeded the critical threshold.
- Green: The service is within the 'normal' range because weight sum does not reach the threshold.
- Gray: The service is in 'unknown' status. This usually means the service has been recently created and does not contain any modules or the Pandora FMS Prediction server is down.
- SLA
- The current value of the SLA Service. The values can be:
- OK: The SLA is met for the interval defined in the SLA service.
- INCORRECT: The SLA is not met for the interval currently defined in the SLA Service.
- N/A: The SLA is in 'unknown' status because there is not enough data to perform the calculation.
1.4.1.1 Table including all services
A table for quick display including all visible services and their current status.
1.4.1.2 Simple list of a service and its elements
This view is accessible by clicking on the name of a service in the list of all services, or through the magnifying glass icon tab in the service title header.
Pandora FMS will show a page similar to the one shown in the following screenshot:
The list of the elements that make up this service is at the bottom:
- Type: The icon which represents the element type. It is a building block for modules or some stacked blocks for an agent and a Network Diagram Icon for the services.
- Type
- The text which contains the name of the module, agent or service. They are also linked to the corresponding section.
- Name
- Text that contains the name of the agent, the name of the agent and module or the name of the service. All of them contain a link to the corresponding operation view.
- Weight critical
- The value if the element when in 'critical' status. The following three columns (Warning weight, Weight Unknown and Weight OK) correspond to warning, unknown and normal.
- Data
- The value of the element. It can adopt the following modes:
- Module: The value of the module.
- Agents: The text that displays the agent's status.
- Services: The weight sum of the elements of the service that has been chosen as the element for the parent service.
- Status
- The icon which represents the element's status by color.
Keep in mind that service-element calculation is performed by Prediction Server. What you look at is not real-time data. There are some situations in which a module's agent is added to the service where its weight will not be updated until calculation is performed by the Prediction Server again. |
|
1.4.1.3 Service map view
This view will display the service in arborescent form as you can see in the following screenshot. That way, it is possible to quickly see how modules, agents or sub-services influence service monitoring. Even in sub-services you can see what influences them when calculating the status by summing weights.
The possible nodes can be:
- Module Node
- It is represented by the 'heartbeat' icon. This node is always final (leaf).
- Agent Node
- It is represented by the 'CPU box' icon. This module is always final too (leaf).
- Service Node
- It is represented by the 'crossed hammer and wrench' icon. This module is not a final node. It is required to contain additional nodes.
The node's colors and the arrow which connects them to the service depend on the node's status, as always green OK, red critical, yellow warning or grey in unknown state.
There are the following attributes within the node:
- Title: The name of the service's / agent's or module's node, accompanied by the agent.
- Value list:
- Critical:: The total weight it reaches in 'critical' status, except if it is the root-service node, which represents a threshold to reach the 'critical' status.
- Warning: The weight if it reaches 'warning' status, except if it is the root-service node, which represents the threshold to reach the 'warning' status.
- Normal: The weight if it reaches 'normal' status, except if it is the root-service node, in which case nothing will be displayed here.
- Unknown: The 'unknown' status, except if it is the root-service node, which represents a threshold to reach the 'unknown' status.
You may click on each node in the tree. The target link represents the operational view of the node itself.
When the service mode is simple, a red exclamation mark appears on the right side of the critical elements. |
|
1.4.1.4 Services within the Visual Console
From Pandora FMS versions 5 onwards, you may add services in the Visual Console like any other item on the map.
To create a service item on a map, the process is the same as for all other visual map items, but the option range will be:
Controls:
- Label: The title shown within the visual console's node.
- Service: Drop-down list that shows the services it has access to, to add to the map.
Note that a service item, unlike other items in the visual map, cannot be linked to other visual maps, and always the clickable link in the visual console is intended for the tree service map view described above.
1.4.2 Service tree view
This view allows you to view services in the form of a tree.
Each level shows the total number of elements included in each service or agent.
- Services: It reports the total number of services, agents and modules that belong to that service.
- Agents: It reports the number of modules in critical state (red color), warning (yellow color), unknown (gray color), uninitiated (blue color) and normal state (green color).
Services that do not belong to another one will always be shown on the first level. In the case of a child service, it will be shown nested inside its parent.
1.5 How to read service values
Planned shutdowns added before the stop date allow recalculating the value of SLA reports, given that it allows "backwards" recalculating with scheduled shutdowns added afterwards (that option is globally activated in the general setup). When it is an SLA service report, if there is a scheduled shutdown that affects one or several service elements, the scheduled shutdown is considered to affect the service as a whole, since the shutdown impact on the whole service cannot be measured.
It is worth highlighting that this is at a report level. Therefore, service trees, and the information presented in the visual console are not altered based on planned shutdowns added after the intended execution date. These service compliance percentages are calculated in real time, based on the history data of the same service, they do not have anything to do with the actual report.
On the other hand, it is important to know how the compliance percentage of a service is calculated:
- Weight calculation in simple mode
Weights are dealt with slightly differently on simple mode, since there is only the critical weight and the possibility of going into two more status apart from the normal one. Each element receives weight 1 on critical and 0 on other status, and each time there is a change in service elements, service weights are calculated again. The warning weight can be overlooked. It always has value 0.5 because if it is 0, the service will always be on warning at least, but warning weight is not used in simple mode. The critical weight is calculated so that it is half of the element critical weights summed, which is 1. If there are 3 elements, the service critical weight is 1.5 and then, it is the server the one in charge or checking whether the critical weight has been exceeded or matched to render the service into critical or warning status.
- Weight calculation according to their importance
Suppose there is a service defined by a 95% compliance in a 1-hour interval. A table of values, where t is time, x is the compliance % (SLAs), and s is whether complies or not (1 it complies, 0 it fails), will be used. In 1 hour there should be exactly 12 samples (assuming the interval is 5 minutes long).
Picture a similar case, where the service complies for the first 11 samples (first 55 minutes) and it fails in the 60th minute these would be the values:
t | s | x --------+-------+-------- 1 1 100 2 1 100 3 1 100 4 1 100 5 1 100 6 1 100 7 1 100 8 1 100 9 1 100 10 1 100 11 1 100 12 0 91,6
This case is easier to calculate. The % is calculated depending on the number of samples, for example in t3, there are a total of three samples that meet service, a 100%, whereas in t12, there are 12 samples and 11 are valid samples: 11 / 12.
Suppose you are in the middle of the series, and it is recovering slowly:
t | s | x --------+-------+-------- 1 1 100 2 1 100 3 1 100 4 1 100 5 1 100 6 0 83,3 7 1 85,7 8 1 87,5 9 1 88,8 10 1 90 11 1 90,9 12 1 91,6
So far all seems similar to the previous scenario, but see what happens if you go over time:
t | s | x --------+-------+-------- 13 1 91,6 14 1 91,6 15 1 91,6 16 1 91,6 17 1 91,6 18 1 100 19 1 100 ....
Now there is unintuitive behavior, because the volume of valid samples remains 11 for a time window that goes up to t18, where the only invalid value is out of the window, so in t18 compliance becomes 100%. This step between 91.6 and 100 is explained by the size of the window. The larger the window is (usually SLA calculation interval is daily, weekly or monthly), the less abrupt the step will be.
1.6 Service cascade protection
It is possible to mute service elements dynamically. This allows to avoid an alert overload for each element that belongs to a certain service or sub-services.
When the 'service cascade protection' feature is enabled, the action linked to the template configured for the root service will be executed. It will report which the elements have an incorrect status within the service.
It is important to take into account that this system allows the alerts of the elements within the service to be triggered when they go to critical status, even if the general service status is correct.
Service cascade protection will indicate us which elements have failed regardless of the depth of the defined service.
In the example above we see that we have one of the elements of our service in critical status. Even if the main service is correct, it will warn us of the critical state of the elements within, triggering the alert related with the element in critical status.
1.7 Root cause analysis
You may have an endless number of sub-services (paths) within a service. In previous versions, Pandora FMS alerted indicating the service status (normal, critical, warning, etc.). From OUM725 on, there is a new macro available that will show the service status root cause.
To use it, add the following text to the template linked to the service:
Alert body: Example message The series of events that have caused the service status is the following one: _rca_
This will return an output similar to this one:
Alert body: Example message The series of events that have caused the service status is the following one: [Web Application -> HW -> Apache server 3] [Web Application -> HW -> Apache server 4] [Web Application -> HW -> Apache server 10] [Web Application -> DB Instances -> MySQL_base_1] [Web Application -> DB Instances -> MySQL_base_5] [Web Application -> Balanceadores -> 192.168.10.139]
By seeing this output, it is supposed that:
- Apache servers 3,4 and 10 are in critical status
- MySQL_base databases 1 and 5 are down
- The 192.168.10.139 balancer does not respond
This added information allows to find out the reason behind the service status, reducing failure cause research tasks.
1.8 Service grouping
Services are logical groupings that make up an organization's business structure. That is why service grouping may make sense, since they depend on each other in many cases, creating for example a whole service (the business company) or more specific services (corporate web, communications, etc.). To group services, both the general and more particular services must be created, and the last ones must be added to the first one to create the logical tree-shaped structure.
This groups may help you to: create visual maps, configure alerts, apply monitoring policies, etc. Therefore, it is possible to create alerts that warn you when the business goes into critical status because sales representatives cannot do their job, or any branch is not working full capacity due to technichal problems with the ERP service.
To understand more clearly what service grouping is, take a look at these examples.
1.9 Service monitoring examples
1.9.1 Pandora FMS service
Use case where the status of Pandora FMS monitoring service made by Apache and MysSQL services and Pandora FMS server and Tentacle, with their respective weights, is monitored.
Each of these elements is at the same time a service with different components, creating through service grouping a tree-shaped structure.
In this case, the general Pandora FMS service will go into critical
status when reaching weight 2 and warning
when it reaches weight 1.
As seen, the four components have different weights on Pandora FMS service:
- MySQL: It is essential for Pandora FMS service. Individual weight of 2 if MySQL is down. It will get a weight of 1 if it is in warning status, showing a warning in Pandora FMS service.
- Pandora Server: It is essential for Pandora FMS service. Individual weight of 2 if the Pandora FMS Server is down. Individual weight of 1 if it is in warning status, for example, due to CPU overload, scaling the warning until reaching Pandora FMS general service.
- Apache: It implies a degrading of Pandora FMS service, but not a total interruption, so it gets an individual weight of 1 if it is down, showing the warning status in Pandora FMS service.
- Tentacle: It entails a degrading, and certain components may fail, but it does not Mean Pandora FMS stops working completely, so its individual weight in case of failure is 1, showing a warning in the general service.
1.9.2 Cluster storing service, service grouping
Services are logical groups that make up part of the business structure of an organization. Therefore, service grouping is reasonable since sometimes some services on their own do not have a complete meaning. To group services, they just need to be added to a greater service as elements, creating a new logical group.
In the following example, there is an HA storing cluster. This time, a system of two fileservers working at the same time has been chosen, each one controlling the percentage and the status of a series of hard drives that provide service to particular departments, creating a group service tree-shaped structure.
According to this structure, the critical threshold of the company's storing service is reached when both fileservers fail, since that would turn down the service, while just one of them failing would entail a service downgrading.
The following image contains weight configuration granted to two storing service main elements:
This image shows the content and weight configuration of the FS01 grouped service. Here the elements have a specific weight according to their severity:
- FS01 ALIVE: Critical for the FS01 service, since it is the virtual IP allocated to the first hard drive cluster. Individual weight of 2, since if it is down, the rest of the service elements will not work. There is no
warning
threshold, since it is data that depends on the status Yes/No. - DHCPserver ping: critical for the FS01 service. It has an individual weight of 2. In this case, there is no
warning
threshold either. - Hard drives: They have an individual weight of 1 in case they reach their critical threshold, and 0.5 for their
warning
threshold, so this will only affect critically the FS01 service if there are at least two in critical status or the four hard drives in warning status.