define command

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
phbfr@icloud.com
Posts: 1
Joined: Fri Aug 04, 2017 7:48 am

define command

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: define command

Post 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.
Locked