We are trying to organize our sites monitoring using Icinga. Basically, we just want to check if site is accessible and respond with required status code. Web Sites/Services can be on different ports and have different paths.
Unlike the hosts, they does not have Icinga agent installed and we can’t use any check for them.
We did:
Service Template - Web Service
template Service "Web Service" {
import "HTTP check"
}
Hi,
the check http will be your friend
Depending which arguments you will take for your requirement, you will get the results you want. So you can check for a string, performance data, certificates, etc. etc.
It means that ‘dummy’ is the right check for the host when we use Service Templates - one thing solved, thanks!
Also, I tried solution you proposed for the Host Template - http. It have some limitations - we can’t, for example, check endpoint and certificate at the same time because certificate check disable host endpoint check. In such a case Host with attached Services Template will be more suitable.
One thing here - how can we have one Host Template with attached Service Templates where we then can override HTTP Check parameters, also it is preferably to define them at Host and not on the Service.
yes. And as IP e.g. 127.0.0.1 so this one is always up.
If you create a dummy host, you can assign as many services with http checks as you will. That means it is no problem to create one http-check to check if the website is online, one check if the correct page is loaded (searching for a keyword) and one http check to check the cert, etc.
Use ServiceSets in the director. Here exists a override function
You have to do this through the host in Icingaweb2.You search for the service. Under the menue “actions” there as a link “modify”. Values you can overwrite will be suggested