top of page
Writer's picturecolcessrijunripant

Nagios: Exclude Specific Services for Customized Disk Space Thresholds



I have a Nagios server which includes many hostgroups.One of these hostgroups include a server which I'd like to exclude from being checked for one specific Nagios Check but I want it to keep being a member of the hostgroup so it may get checked for all the other checks that the hostgroup is checked for.Is there an option of exclude or something like that which can help me achieve my goal?Thanks


This abstraction is tremendously useful; even more so is using templates to assign (or exclude) a whole bunch of services to a type of host (which then means you can use the hostgroups definitions on each host simply for "extra" additional checks you want to run, or specific exclusions - i.e. template is the "norm", hostgroups are the exception(s)).




Nagios: Exclude Specific Services




With Nagios services check you want include all windows services with status automatic. But some services like the .NET or windows installer services stop sometimes and your monitor turns red. If you want to exclude specific services add this config to the NSC.ini file:


Nagios uses several variables to determine the percent state change thresholds is uses for flap detection. For both hosts and services, there are global high and low thresholds and host- or service-specific thresholds that you can configure. Nagios will use the global thresholds for flap detection if you to not specify host- or service- specific thresholds.


There are some situations in which an automatic service discovery would makeno sense. This is always the case if you want to force compliance with aspecific guideline. As we saw in the previous chapter, you can allowthe monitoring of Windows services to set itself up automatically when theseare found. What happens when the absence of such a service presents a problem?For example:


The exciting part now follows in the Conditions section.On the one hand, you can use folders, host tags, and explicit host names to make restrictions outside of the services.Secondly, you name the services you would like to group, such as Filesystem and myservice to create a set of file systems.The specification of the services takes place here in the form of regular expressions. This allows you to define groups exactly.


You can use the generate_marklogic_config.pl script to automatically generate an object definition file for your MarkLogic cluster. The script reads the services.xml file described in The Monitoring Services File, which defines the services to be monitored, the threshold information for each service, and any objects you want to exclude from monitoring. When you run the generate_marklogic_config.pl script, it reads all of the objects (hosts, databases, and App Servers) from your cluster and creates an object definition file that can be used by the Nagios plugin to monitor all of the objects using the services specified in the XML services file.


The ml_v7_template.xml or ml_v5+6_template.xml file describes the services used to monitor your cluster in XML format. It is recommended that you copy this file and make changes on the copy. This copy is referred to in this chapter as services.xml. You can edit the services.xml file to add or modify services, add or modify the sample intervals and thresholds, and to exclude specific resources from any of the services used to monitor your cluster.


At the top of the ml_v7_template.xml and ml_v5+6_template.xml file is a global excludes element that lists the resources (by name) to be excluded by all of the monitoring services. For example, to exclude the Schemas database, the Admin App Server in the Default group, and the myhost host from being monitored by all of the services, the excludes element would look like the following:


Nagios allows you to aggregate services into groups, known as service groups. The servicegroups value specifies that this service belongs to the group of database monitoring services, known as MyCl-Databases, for the cluster, MyCl. See Service Group Definition in the Nagios documentation for more detail on service groups. The check_command portion defines the specific monitoring method to be used on those objects. The check_command is described in more detail in The check_command Parameter.


Below is a detailed view of the services for the Documents database in the FooMe cluster. Note that some services may report a status of UNKNOWN. This indicates that the monitoring metric is unavailable to Nagios for that resource. For example, the database-replication-active service shown below reports UNKNOWN because Database Replication is not configured for the database. In this example, if you do not have a license for Database Replication, you can remove the database-replication-active service from your services.xml file. If you have a license for Database Replication, but only have the feature enabled for some databases, you can exclude the databases that are not replicated from being monitored, as described in The Monitoring Services File.


-----Ursprüngliche Nachricht-----Von: Łukasz Górski [mailto:l.gorski@lokis.info]Gesendet: Mittwoch, 13. August 2014 11:15An: Weber, Markus (LfSt)Cc: checkmk-en@lists.mathias-kettner.deBetreff: Re: [Check_mk (english)] exclude services from contact(group)


But beware of the way contacts are used (comes from nagios, hasnothing to do with cmk):* all services of a host are assigned to the host's contact group(s) by default* If a service is assigned to a specific contact group (or several)it's unassigned from host's contact groups.


-----Ursprüngliche Nachricht-----Von: Marcel Schulte [mailto:schulte.marcel@gmail.com]Gesendet: Donnerstag, 14. August 2014 01:04An: Weber, Markus (LfSt)Cc: checkmk-en@lists.mathias-kettner.deBetreff: Re: [Check_mk (english)] exclude services from contact(group)


In our env we have the need to assign specific services to application monitoring groups only; they (and nobody else) should see only these services - and host status. Because of this we changed some code in wato.py to accomplish that.


-----Ursprüngliche Nachricht-----Von: Marcel Schulte [mailto:schulte.marcel@gmail.com]Gesendet: Donnerstag, 14. August 2014 09:33An: Weber, Markus (LfSt)Cc: checkmk-en@lists.mathias-kettner.deBetreff: Re: AW: [Check_mk (english)] exclude services from contact(group)


In our env we have the need to assign specific services to applicationmonitoring groups only; they (and nobody else) should see only theseservices - and host status. Because of this we changed some code in wato.pyto accomplish that.


The exclude regular expressions can be used to filter out one or several members of objects. For example it is possible to filter out one specific service of a host, like in this simple example where the service "CPU load" is excluded: 2ff7e9595c


0 views0 comments

Recent Posts

See All

Fifa Apk Prêmio

FIFA 22 APK OBB Ritechy: Como Baixar e Instalar a Versão Mod Mais Recente do FIFA 22 no Android Introdução Se você é fã de jogos de...

Comentarios


bottom of page