define command
Posted: Mon Nov 27, 2017 5:29 am
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
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