[Check_mk (english)] How to restrict check_mk servers to monitor only 2 services

Hi,

Is there any way can restrict check_mk servers to monitor only availability and root space, i wanted to make some sort of rules, so that while adding server it will look for only 2 services.

I have around 250 Linux server under check_MK monitoring but wanted to restrict the server to look for only two services.

I know it can be done through regex and I did tried but couldn’t get success, here is the step which I have followed.

  1. Create a service group and assign all the host to that particular service group
  2. Went to host and service parameter à grouping,
    look for the Assignment
    of services to service groups
    , edit the service group and Specify explicit values, saved and applied the changes.
    But it didn’t get reflected in my system.

Could you please help here, thanks.

Hi Vaibhav,

first the question why do you want to do this?
Second the Check_MK system works that way that you get all the data
from a single host with only one query to the host.
That means all the data is collected if you want it or not.
What you can do is to disable all the other check types for these
hosts. Generate a rule to disable all check types for one folder. Put
your hosts there inside and enable only the check types you want.
But i would say that is not like a monitoring system should work :slight_smile:

best regards
Andreas

···

Am Di., 2. Apr. 2019 um 18:08 Uhr schrieb vaibhav beohar <vaibhav.beohar@hotmail.com>:

Hi,

Is there any way can restrict check_mk servers to monitor only availability and root space, i wanted to make some sort of rules, so that while adding server it will look for only 2 services.

I have around 250 Linux server under check_MK monitoring but wanted to restrict the server to look for only two services.

I know it can be done through regex and I did tried but couldn’t get success, here is the step which I have followed.

Create a service group and assign all the host to that particular service group
Went to host and service parameter à grouping, look for the Assignment of services to service groups, edit the service group and Specify explicit values, saved and applied the changes.

But it didn’t get reflected in my system.

Could you please help here, thanks.

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
Manage your subscription or unsubscribe
https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en

Hi Andreas,

Thanks for your mail.

The requirement from the business is only look for the availability & root space for now and have incident created.

How to Generate a rule to disable all check types for one folder & Put your hosts there inside and enable only the check I need

Thank you!

···

From: Andreas Döhler andreas.doehler@gmail.com
Sent: Wednesday, April 3, 2019 12:49 AM
To: vaibhav beohar
Cc: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] How to restrict check_mk servers to monitor only 2 services

Hi Vaibhav,

first the question why do you want to do this?

Second the Check_MK system works that way that you get all the data

from a single host with only one query to the host.

That means all the data is collected if you want it or not.

What you can do is to disable all the other check types for these

hosts. Generate a rule to disable all check types for one folder. Put

your hosts there inside and enable only the check types you want.

But i would say that is not like a monitoring system should work :slight_smile:

best regards

Andreas

Am Di., 2. Apr. 2019 um 18:08 Uhr schrieb vaibhav beohar

vaibhav.beohar@hotmail.com:

Hi,

Is there any way can restrict check_mk servers to monitor only availability and root space, i wanted to make some sort of rules, so that while adding server it will look for only 2 services.

I have around 250 Linux server under check_MK monitoring but wanted to restrict the server to look for only two services.

I know it can be done through regex and I did tried but couldn’t get success, here is the step which I have followed.

Create a service group and assign all the host to that particular service group

Went to host and service parameter à grouping, look for the Assignment of services to service groups, edit the service group and Specify explicit values, saved and applied the changes.

But it didn’t get reflected in my system.

Could you please help here, thanks.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

Manage your subscription or unsubscribe


https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en

No need to block all that information.

The Linux agent is simply a 'bash' script. Write a replacement, that only returns the information you want.

Install the check_mk_agent package, so the systems is configured, and then overwrite the /usr/bin/check_mk_agent file with your new script.

If the only information your revised agent provides is the data for the root filesystems, it will be the only information in the inventory, and thus the only "service" being monitored.

···

-----Original Message-----
From: checkmk-en <checkmk-en-bounces@lists.mathias-kettner.de> On Behalf Of Andreas Döhler
Sent: Tuesday, April 2, 2019 2:19 PM
To: vaibhav beohar <vaibhav.beohar@hotmail.com>
Cc: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] How to restrict check_mk servers to monitor only 2 services

Hi Vaibhav,

first the question why do you want to do this?
Second the Check_MK system works that way that you get all the data from a single host with only one query to the host.
That means all the data is collected if you want it or not.
What you can do is to disable all the other check types for these hosts. Generate a rule to disable all check types for one folder. Put your hosts there inside and enable only the check types you want.
But i would say that is not like a monitoring system should work :slight_smile:

best regards
Andreas

Am Di., 2. Apr. 2019 um 18:08 Uhr schrieb vaibhav beohar <vaibhav.beohar@hotmail.com>:

Hi,

Is there any way can restrict check_mk servers to monitor only availability and root space, i wanted to make some sort of rules, so that while adding server it will look for only 2 services.

I have around 250 Linux server under check_MK monitoring but wanted to restrict the server to look for only two services.

I know it can be done through regex and I did tried but couldn’t get success, here is the step which I have followed.

Create a service group and assign all the host to that particular
service group Went to host and service parameter à grouping, look for the Assignment of services to service groups, edit the service group and Specify explicit values, saved and applied the changes.

But it didn’t get reflected in my system.

Could you please help here, thanks.

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
Manage your subscription or unsubscribe
Proofpoint Targeted Attack Protection
ettner.de_cgi-2Dbin_mailman_listinfo_checkmk-2Den&d=DwIGaQ&c=09aR81AqZ
jK9FqV5BSCPBw&r=_SdnJx6ElYZR_PnpLjF43SWpy9INwIUCE0XeiwamRXU&m=X7Tick0w
jClmHX4NeGdD6VywF08uF1YGWboyBvms_Yg&s=cXuxbmkN4-V5ECzeDubmdxyHso8grRYk
Hphz-PmKymc&e=

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
Manage your subscription or unsubscribe
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.mathias-2Dkettner.de_cgi-2Dbin_mailman_listinfo_checkmk-2Den&d=DwIGaQ&c=09aR81AqZjK9FqV5BSCPBw&r=_SdnJx6ElYZR_PnpLjF43SWpy9INwIUCE0XeiwamRXU&m=X7Tick0wjClmHX4NeGdD6VywF08uF1YGWboyBvms_Yg&s=cXuxbmkN4-V5ECzeDubmdxyHso8grRYkHphz-PmKymc&e=

that make sense Stier but i am restricted to do any changes in the agent configuration.

Thank you!

···

From: Matthew.Stier@us.fujitsu.com Matthew.Stier@us.fujitsu.com
Sent: Wednesday, April 3, 2019 1:38 AM
To: Andreas Döhler; vaibhav beohar
Cc: checkmk-en@lists.mathias-kettner.de
Subject: RE: [Check_mk (english)] How to restrict check_mk servers to monitor only 2 services

No need to block all that information.

The Linux agent is simply a ‘bash’ script. Write a replacement, that only returns the information you want.

Install the check_mk_agent package, so the systems is configured, and then overwrite the /usr/bin/check_mk_agent file with your new script.

If the only information your revised agent provides is the data for the root filesystems, it will be the only information in the inventory, and thus the only “service” being monitored.

-----Original Message-----

From: checkmk-en checkmk-en-bounces@lists.mathias-kettner.de On Behalf Of Andreas Döhler

Sent: Tuesday, April 2, 2019 2:19 PM

To: vaibhav beohar vaibhav.beohar@hotmail.com

Cc: checkmk-en@lists.mathias-kettner.de

Subject: Re: [Check_mk (english)] How to restrict check_mk servers to monitor only 2 services

Hi Vaibhav,

first the question why do you want to do this?

Second the Check_MK system works that way that you get all the data from a single host with only one query to the host.

That means all the data is collected if you want it or not.

What you can do is to disable all the other check types for these hosts. Generate a rule to disable all check types for one folder. Put your hosts there inside and enable only the check types you want.

But i would say that is not like a monitoring system should work :slight_smile:

best regards

Andreas

Am Di., 2. Apr. 2019 um 18:08 Uhr schrieb vaibhav beohar

vaibhav.beohar@hotmail.com:

Hi,

Is there any way can restrict check_mk servers to monitor only availability and root space, i wanted to make some sort of rules, so that while adding server it will look for only 2 services.

I have around 250 Linux server under check_MK monitoring but wanted to restrict the server to look for only two services.

I know it can be done through regex and I did tried but couldn’t get success, here is the step which I have followed.

Create a service group and assign all the host to that particular

service group Went to host and service parameter à grouping, look for the Assignment of services to service groups, edit the service group and Specify explicit values, saved and applied the changes.

But it didn’t get reflected in my system.

Could you please help here, thanks.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

Manage your subscription or unsubscribe


https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.mathias-2Dk

ettner.de_cgi-2Dbin_mailman_listinfo_checkmk-2Den&d=DwIGaQ&c=09aR81AqZ

jK9FqV5BSCPBw&r=_SdnJx6ElYZR_PnpLjF43SWpy9INwIUCE0XeiwamRXU&m=X7Tick0w

jClmHX4NeGdD6VywF08uF1YGWboyBvms_Yg&s=cXuxbmkN4-V5ECzeDubmdxyHso8grRYk

Hphz-PmKymc&e=


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

Manage your subscription or unsubscribe

https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.mathias-2Dkettner.de_cgi-2Dbin_mailman_listinfo_checkmk-2Den&d=DwIGaQ&c=09aR81AqZjK9FqV5BSCPBw&r=_SdnJx6ElYZR_PnpLjF43SWpy9INwIUCE0XeiwamRXU&m=X7Tick0wjClmHX4NeGdD6VywF08uF1YGWboyBvms_Yg&s=cXuxbmkN4-V5ECzeDubmdxyHso8grRYkHphz-PmKymc&e=

Hi,

You can achieve this by putting them in the same folder and then create a ‘disabled services’ rule for that folder, and put the required services in the ‘Explicit Services’. Then select negate.

You find the rule in WATO → Host & Service Parameters under
Monitoring Configuration → Inventory and Check_MK Settings → Disabled
Services.

There is also a search function under Host & Service Parameters. Just enter
the search string “disabled”.

Thanks & Regards,

Praveen.

···

On Wed, Apr 3, 2019 at 2:13 AM vaibhav beohar vaibhav.beohar@hotmail.com wrote:

Hi Andreas,

Thanks for your mail.

The requirement from the business is only look for the availability & root space for now and have incident created.

How to Generate a rule to disable all check types for one folder & Put your hosts there inside and enable only the check I need

Thank you!


From: Andreas Döhler andreas.doehler@gmail.com
Sent: Wednesday, April 3, 2019 12:49 AM
To: vaibhav beohar
Cc: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] How to restrict check_mk servers to monitor only 2 services

Hi Vaibhav,

first the question why do you want to do this?

Second the Check_MK system works that way that you get all the data

from a single host with only one query to the host.

That means all the data is collected if you want it or not.

What you can do is to disable all the other check types for these

hosts. Generate a rule to disable all check types for one folder. Put

your hosts there inside and enable only the check types you want.

But i would say that is not like a monitoring system should work :slight_smile:

best regards

Andreas

Am Di., 2. Apr. 2019 um 18:08 Uhr schrieb vaibhav beohar > > vaibhav.beohar@hotmail.com:

Hi,

Is there any way can restrict check_mk servers to monitor only availability and root space, i wanted to make some sort of rules, so that while adding server it will look for only 2 services.

I have around 250 Linux server under check_MK monitoring but wanted to restrict the server to look for only two services.

I know it can be done through regex and I did tried but couldn’t get success, here is the step which I have followed.

Create a service group and assign all the host to that particular service group

Went to host and service parameter à grouping, look for the Assignment of services to service groups, edit the service group and Specify explicit values, saved and applied the changes.

But it didn’t get reflected in my system.

Could you please help here, thanks.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

Manage your subscription or unsubscribe


https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

Manage your subscription or unsubscribe

https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en

Hi Praveen,

Thank you, this is what i was looking for, it did work for me, many thanks.

Cheers.

Vaibhav Beohar

···

From: Praveen Kumar Velpula praveen.velpula@gmail.com
Sent: Wednesday, April 3, 2019 1:12 PM
To: vaibhav beohar
Cc: Andreas Döhler; checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] How to restrict check_mk servers to monitor only 2 services

Hi,

You can achieve this by putting them in the same folder and then create a ‘disabled services’ rule for that folder, and put the required services in the ‘Explicit Services’. Then select negate.

You find the rule in WATO → Host & Service Parameters under

Monitoring Configuration → Inventory and Check_MK Settings → Disabled

Services.

There is also a search function under Host & Service Parameters. Just enter

the search string “disabled”.

Thanks & Regards,

Praveen.

On Wed, Apr 3, 2019 at 2:13 AM vaibhav beohar vaibhav.beohar@hotmail.com wrote:

Hi Andreas,

Thanks for your mail.

The requirement from the business is only look for the availability & root space for now and have incident created.

How to Generate a rule to disable all check types for one folder & Put your hosts there inside and enable only the check I need

Thank you!

From: Andreas Döhler andreas.doehler@gmail.com
Sent: Wednesday, April 3, 2019 12:49 AM
To: vaibhav beohar
Cc: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] How to restrict check_mk servers to monitor only 2 services

Hi Vaibhav,

first the question why do you want to do this?

Second the Check_MK system works that way that you get all the data

from a single host with only one query to the host.

That means all the data is collected if you want it or not.

What you can do is to disable all the other check types for these

hosts. Generate a rule to disable all check types for one folder. Put

your hosts there inside and enable only the check types you want.

But i would say that is not like a monitoring system should work :slight_smile:

best regards

Andreas

Am Di., 2. Apr. 2019 um 18:08 Uhr schrieb vaibhav beohar

vaibhav.beohar@hotmail.com:

Hi,

Is there any way can restrict check_mk servers to monitor only availability and root space, i wanted to make some sort of rules, so that while adding server it will look for only 2 services.

I have around 250 Linux server under check_MK monitoring but wanted to restrict the server to look for only two services.

I know it can be done through regex and I did tried but couldn’t get success, here is the step which I have followed.

Create a service group and assign all the host to that particular service group

Went to host and service parameter à grouping, look for the Assignment of services to service groups, edit the service group and Specify explicit values, saved and applied the changes.

But it didn’t get reflected in my system.

Could you please help here, thanks.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

Manage your subscription or unsubscribe


https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

Manage your subscription or unsubscribe

https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en