Page 1 of 1

define command

Posted: Mon Nov 27, 2017 5:29 am
by phbfr@icloud.com
Hi.

1- Is it possible to use check_disk plugin without to define a command under checkcommands.cfg ?


For example, if i have:

Under /etc/nagios/checkcommands.cfg:

define command {
command_name check_disk_all
command_line /usr/lib/nagios/plugins/check_disk -w $arg1$ -c $arg2$ -u GB
}

and under /etc/nagios/services.cfg:

define service {
host_name super
use generic-service
service_description disk checks
check_command check_disk_all!20%!10%
}

We can't use only a service like:

define service {
host_name super
use generic-service
service_description disk checks
check_command check_disk!20%!10%
}

?

2- This local command only check disk on nagios server. That is to say we have to copy "check_disk" plugin (or install plugins) on the computer that we need to check ??

TIA
Philippe

Re: define command

Posted: Mon Nov 27, 2017 4:18 pm
by dwhitfield
If I understand your question correctly, that's the entire point of NRPE: https://assets.nagios.com/downloads/nag ... e/NRPE.pdf

Let us know if you need any help with installation of NRPE, or if that doesn't resolve your issue.