> Can you give an example of what you'd like to achieve?
I'm using top-down command endpoint without config sync.

For certain hosts (servers in non-monitoring view), the master node schedules 
disk (check_command = "disk") Service checks. Depending on the monitored 
server's (command endpoint in Icinga2 view) OS, different types of file systems 
have to be excluded: For Linux, e.g. proc, sysfs and devfs, for NetBSD, e.g. 
kernfs, procfs and ptyfs.
Of course, I could just exclude the union of what needs to be excluded on the 
different OSes, until one needs to exclude an FS I need to include on another.

For NetBSD servers, I want to run a check using the check_raidctl plugin, which 
doesn't make sense on Linux servers.

Currently, my configuration system (which generates the Icinga2 config) has 
knowledge about which server runs which OS, but that's sort of inelegant given 
the Icinga2 on the command endpoint knows which OS it's running on and could 
easily propagate that information to the master.

Another inelegant solution would be to customize the CheckCommand definitions 
(which reside on the client/command endpoint) to call different plugins (or 
give different arguments to the plugin) based on the local Platform* variables.
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to