Automatic accept service

Hi
Running 2.2.0 p32

Im unsing the plugin “sslcertificates” Checkmk Exchange

I have an some specifik certificate that i want to make sure I monitor, can I create an rule that activate service check if exist
The service is like this: SSL Certificate in XXXXXXXXXXXXXX

Regards Denis

Hi Denis,

you can use the rule “Periodic service discovery” to automatically add the service to the checkmk configuration.

Yes i am using that, but just not the automatically add.
So just wanted to know if an specifik service was on an host, I could auto add it?

The question is : What is your definition of a service ?

If it is an additional server (item) that is already being output by the agent or an installed plugin, then you can use the rule I mentioned to automatically activate the changes.
You have to activate the “activate changes” in the ruleset, otherwise checkmk will only tell you, that new services are present.

Or do you want to install certain checkmk agent plugins automatically based on a certain criteria ?

If so, you can use the agent bakery to create installation packages with plugins based on host or service labels, which can, to automate that further, be automatically generated by Roberts data2tag or data2label extensions that create tags or labels based on information from the hardware/software inventory.

Hi

I do use the “Periodic service discovery”, but I do not use the “Automatically update services, new host labels” because I don’t want every think added automatically.

I do use the Checkmk agent plugins with ssl certificate and bakery to automatically deploy it.

So I get in undecided services an wildcard certificate, but when I update that, all servers containing that will get an new to monitor and an old that wannish.

So was hoping that I with the name could make an rule to specific add this certificate this automatically when its gets there and remove again with an other rule.

image

Hi,

you can use the discovery rules multiple times and add the activation only for these specific hosts based on conditions like hostnames, Tags or Labels. And you can specify a regex which services you want to add, that only these services are activated added automaically.

Thanks, did not see that option.
I found the doc here, don’t know if there is more another place with more details
Understanding and configuring services - Detecting and monitoring elements of a host

But I did like this, however it does not seems to be working.
Can I do that or how do I do it?

Hi,

can you try to move the host specific rule above the generic rule?

I have priority 0, is that not top or due you want it to have 1?

The add now seem to work, I just change the mode to
Mode: Add unmonitored & remove vanished services and host labels

So I hope in some time the remove will also work

Do you know if I apply this to a host with out that service, will it create an error or just ignore it?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.