Discussion:
How to do remote checks using check_disk
Majumdar, Prasoon
2015-05-29 11:02:28 UTC
Permalink
Using Icinga2 with this :

apply Service for (disk => config in host.vars.local_disks) {
import "generic-service"

check_command = "disk"

vars += config
vars.disk_wfree = "10%"
vars.disk_cfree = "5%"
command_endpoint = host.vars.remote_client

assign where host.vars.remote_client
}

object Host "rad1.blr.lab.colt.net" {
import "generic-host"

address = "10.91.118.124"
address6 = "::1"

vars.os = "Linux"

vars.remote_client = "rad1. net"
vars.local_disks["basic-partitions"] = {
disk_partitions = [ "/", "/tmp", "/var", "/home" ]

/* host specific check arguments */
vars.users_wgreater = 10
vars.users_cgreater = 20
}
}

It's not working out for me. IN the monitoring pane,, all the checks are fine except this one, throwing like ::

UNKNOWN
Since 15:29 Service: basic-partitions
Service detail information
Plugin Output

execvpe(/usr/lib64/nagios/plugins/check_disk) failed: No such file or directory


Very strange, the plugindir in Incinga2 is very well defined in the constants.conf and still this pluging is not able to detect it. Can this be fixed.




Regards

Prasoon Majumdar


[Colt Disclaimer]
This email is from an entity of the Colt group of companies. Colt Group S.A.,
K2 Building, Forte 1, 2a rue Albert Borschette, L-1246 Luxembourg, R.C.S.
B115679. Corporate and contact information for our entities can be found at
http://colt.net/uk/en/Colt-Group-of-Companies/index.htm. Internet
communications are not secure and Colt does not accept responsibility for the
accurate transmission of this message. Content of this email or its
attachments is not legally or contractually binding unless expressly
previously agreed in writing by Colt
Werner Flamme
2015-06-25 11:42:28 UTC
Permalink
Post by Majumdar, Prasoon
execvpe(/usr/lib64/nagios/plugins/check_disk) failed: No such file or directory
Very strange, the plugindir in Incinga2 is very well defined in the constants.conf and still this pluging is not able to detect it. Can this be fixed.
Are you sure that the file /usr/lib64/nagios/plugins/check_disk exists?
On my 64bit boxes, nagios still is inside /usr/lib/nagios (and in
/etc/icinga2/constants.conf, I read 'const PluginDir =
"/usr/lib/nagios/plugins"') and the same value for ManubulonPluginDir
and PluginContribDir.

HTH,
Werner

--
Werner Flamme
2015-06-25 11:44:39 UTC
Permalink
Post by Werner Flamme
Post by Majumdar, Prasoon
execvpe(/usr/lib64/nagios/plugins/check_disk) failed: No such file or directory
Very strange, the plugindir in Incinga2 is very well defined in the constants.conf and still this pluging is not able to detect it. Can this be fixed.
Are you sure that the file /usr/lib64/nagios/plugins/check_disk exists?
On my 64bit boxes, nagios still is inside /usr/lib/nagios (and in
/etc/icinga2/constants.conf, I read 'const PluginDir =
"/usr/lib/nagios/plugins"') and the same value for ManubulonPluginDir
and PluginContribDir.
Forgot to say: check_disk must be there on the host that gets the disk
checked, not on the Icinga server.

Werner

--

Loading...