You could prepare a service per disk and add a disks field of type datalist.
In your apply rule you can check if host.vars.disks contains disk x to attach the service checking disk x.
Attached services allow for overwrites to change the default thresholds for particular hosts.
Hi,
thanks for your reply.
That seems a semi-automatic process. I guess it not possible to just check by the icinga agent on the windows system and let create the services by itself?
I will give your suggesstion a try. Its better then my solution i have now.
Thanks again!
Thus, I’m working on migrating the configuration of detailed settings to director imports from the CMDB.
But I haven’t seen a company with a clean and detailed enough CMDB yet to configure single disks.
So I would end up using Ansible to refine the monitoring by connecting to the host, gathering the facts and in the end setting the custom host vars in the director.
Sometimes it’s better to take the quick wins and work in stages.
You could write a “check”-plugin, that gathers the data on the hosts and reconfigures the Icinga host objects via the director API, but IMHO this is the job of configuration management tools like Ansible, Puppet, Salt, Chef, etc. Not sure if your SOC would be happy if every host has the credential to reconfigure the monitoring lying around, though.
Hi Christian,
if you have a “trusted source” for all your volumes/filesystems on your servers (a CMDB would be perfect), you could import this data via director and create single-services for each volume. I get this information from our vSphere-DB via “Virtualization (VMware)”-module.
The vSphereDB, I haven’t thought about getting the disk information from there.
I would still try to use host.vars.disks and apply rules in favor of single-services as one could manage thresholds more efficiently. Filling host.vars.disks via vSphereDB director import shouldn’t be to hard.