define command

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

define command

Postby phbfr@icloud.com » 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
phbfr@icloud.com
 
Posts: 1
Joined: Fri Aug 04, 2017 7:48 am

Re: define command

Postby dwhitfield » Mon Nov 27, 2017 4:18 pm

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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 4307
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron