This is what I see on icingaweb2: ------------------------------- cut here ------------------------------- Plugin Output execvpe(/usr/lib64/nagios/plugins/check_service.exe) failed: No such file or directory ------------------------------- end here -------------------------------
[root@i2master ~]# icinga2 --version icinga2 - The Icinga 2 network monitoring daemon (version: r2.8.0-1) Copyright (c) 2012-2017 Icinga Development Team (https://www.icinga.com/) License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Application information: Installation root: /usr Sysconf directory: /etc Run directory: /var/run Local state directory: /var Package data directory: /usr/share/icinga2 State path: /var/lib/icinga2/icinga2.state Modified attributes path: /var/lib/icinga2/modified-attributes.conf Objects path: /var/cache/icinga2/icinga2.debug Vars path: /var/cache/icinga2/icinga2.vars PID path: /var/run/icinga2/icinga2.pid System information: Platform: CentOS Platform version: 6.9 (Final) Kernel: Linux Kernel version: 2.6.32-696.16.1.el6.x86_64 Architecture: x86_64 Build information: Compiler: GNU 4.8.2 Build host: fa5a99168107 [root@i2master ~]# tail /etc/icinga2/conf.d/services.conf apply Service "service-" for (service_win_service => config in host.vars.win_services) { import "generic-service" check_command = "service-windows" vars += config notes = "Service check for " + service_win_service } [root@i2master ~]# cat /etc/icinga2/zones.d/master/hosts.conf /* windowshost.localdomain */ object Endpoint "windowshost.localdomain" { host = "xxx.xxx.xxx.xxx" } object Zone " windowshost.localdomain " { endpoints = [ " windowshost.localdomain " ] parent = "master" } object Host " windowshost.localdomain " { import "generic-host" address = "xxx.xxx.xxx.xxx" vars.os = "Windows" vars.win_services["ESET"] = { service_win_service="ekm" } } On the windowshost: * C:\ProgramData\icinga2\etc\icinga2\conf.d\hosts.conf ------------------------------- cut here ------------------------------- ... ... vars.win_services["ESET"] = { service_win_service="ekm" } } ------------------------------- end here ------------------------------- * C:\ProgramData\icinga2\etc\icinga2\conf.d\services.conf ------------------------------- cut here ------------------------------- apply Service "service-" for (service_win_service => config in host.vars.win_services) { import "generic-service" check_command = "service-windows" vars += config notes = "Service check for " + service_win_service assign where host.name == NodeName } ------------------------------- end here ------------------------------- Question: So it looks like it's trying to execute a windows exe from the linux master instead of on the windows machine. I'm not quite grasping how to tell it to execute that on the windows machine. Help?
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users