Execvpe(/usr/lib/nagios/plugins/check_disk.exe) failed: No such file or directory

director
icingaweb2

(Marius) #1

Hello,

I’ve had this problem for days.

When creating clients, servers or VM´s that run under Windows I don’t get any information of any values except ping. I’ve been surfing the net for about 2 weeks now and no troubleshooting has worked. In the service itself I always get the following message which lilac is stored:

Execvpe(/usr/lib/nagios/plugins/check_disk.exe) failed: No such file or directory

I also went after several instructions for the setup of the Icinga Agent. However, the configuration of this Node Wizard didn’t even work.

My Icinga Version and other Informations:
Icinga Web 2 Version 2.6.1

If you have any questions that need to be answered in order to help me, please do not hesitate to contact me. If this works I will always update this article and fill it with information until the problem is solved.

I am happy about any help. Many thanks in advance


(Kevin Honka) #2

could you show use the defined services and commands in the director?

mine look like this and work like a charm:

template Service "Windows Load" {
    import "default_service"

    check_command = "load-windows"
    enable_notifications = false
    enable_perfdata = true
}
object CheckCommand "load-windows" {
    import "plugin-check-command"
    command = [ PluginDir + "/check_load.exe" ]
    timeout = 1m
    arguments += {
        "-c" = {
            description = "Critical threshold"
            value = "$load_win_crit$"
        }
        "-w" = {
            description = "Warning threshold"
            value = "$load_win_warn$"
        }
    }
}

My first guess would be that you either try to execute the check on the wrong server, where the check isn’t known or your PluginDir is wrong


(Marius) #3

template Service “load-windows” {
check_command = “load-windows”
max_check_attempts = “4”
check_interval = 1m
retry_interval = 10s
enable_notifications = true
enable_active_checks = true
enable_passive_checks = true
enable_event_handler = false
enable_flapping = true
enable_perfdata = true
}

object CheckCommand “load-windows” {
import “plugin-check-command”
command = [ PluginDir + “/check_load.exe” ]
timeout = 1m
arguments += {
“-c” = {
description = “Critical threshold”
value = “$load_win_crit$”
}
“-w” = {
description = “Warning threshold”
value = “$load_win_warn$”
}
}
}


(Kevin Honka) #4

looks fine to me. Now go in icingaweb2 and select the service that throws errors. In the details there should be a Check Source with a name or IP. If this doesn’t match with your windows host, the check is run on another machine.


(Marius) #5

Sorry but i donßt know what you mean. I can´t find anything that look like that.


(Michael Friedrich) #6

This means that the service check is not executed on the Windows client. Likely you’ve used check_command = "win-disk" or similar here, but did not assign this check to be run on the agent. Instead, the check just runs on the master where no plugin exe exists.