AW: check command question

Thomas.Zimmer at oppenheim.de Thomas.Zimmer at oppenheim.de
Wed Oct 26 11:06:00 CEST 2005


Hi Chung,

the "check_ssh" -plugin is used to check if a ssh-daemon is running and
responding on a certain host.

The "check_by_ssh" -plugin is used to execute remote checks on a host.
Within configuration of the check-command you have to decide principally, if
you want a hard-coded, unflexible command like "check_by_ssh -H
$HOSTADDRESS$ -t 300 -4 -C '$ARG1$'" or a flexible one, where all parameters
are passed by the service definition "check_by_ssh -H $HOSTADDRESS$ $ARG1$".
Another example could be "$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 300 -4 -C
'./plugins/check_procs -w $ARG1$ -c $ARG2$ -C $ARG3$'" (in direct
comparation to the example below), but like this you would have to define a
check_by_ssh command definition for each check you´d like to execute.

In the first case you only have to pass the argument for the check execution
(e.g. "./plugins/check_procs -w 1:1 -c 0:2 -C a_process" as $ARG1$) from the
service definition.
In the second case you have to pass all arguments you need in your service
check: "-t 300 -4 -C './plugins/check_procs -w 1:1 -c 0:2 -C a_process'"

The functionality of a plugin is requested from the commandline by executing
"check_something --help".

Regard the settings of apostrophes!

Grretz, Thomas.


Thomas Zimmer
Produktservice & Betrieb
Betrieb & Support
Sal. Oppenheim jr. & Cie., Frankfurt a. Main
Internet: http://www.oppenheim.de
E-Mail: thomas.zimmer at oppenheim.de



-----Ursprüngliche Nachricht-----
Von: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von CC Yuen
Gesendet: Mittwoch, 26. Oktober 2005 06:40
An: nagios-users at lists.sourceforge.net
Betreff: [Nagios-users] check command question


Hi list,

How to use check_ssh sytex after command?
Can anyone show the example in checkcommands.cfg and services.cfg And one
more command that I also don't know how to setup is check_by_ssh, I try to
copy the $ARG1$ format from other commands but fail.

Thanks for help
Chung


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005 Visit
http://www.jboss.com/services/certification for more information
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zimmer, Thomas (Produktservices und Betrieb).vcf
Type: application/octet-stream
Size: 254 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051026/476243f8/attachment.obj>


More information about the Users mailing list