AW: WG: check_by_ssh - Usage
Koop, Lutz (external)
Lutz.Koop.external at astrium.eads.net
Fri Aug 26 11:07:50 CEST 2005
ok, i think you need help with ssh (?)
first you have to generate a public key on your nagios-server with your
nagios user (man ssh-keygen)
then install this key on your destination host in
<dest-host>:/<check_user>/.ssh/authorized_keys)
then check if you can login over ssh without typing a password
after that you can use check_by_ssh
i have copied all the plugins to the destination host to
/usr/lib/nagios/libexec
my checkcommand:
# 'check_by_ssh' command definition
define command{
command_name check_by_ssh
command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C $ARG1$ -l
root
}
service:
# Service definition
define service{
use generic-service ; Name of
service template to use
host_name t1ws02
service_description DISK /
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups unix-support
notification_interval 120
notification_period 24x7
notification_options c,r
check_command
check_by_ssh!"/usr/local/nagios/libexec/check_disk -w 10% -c 5% -p /"
}
i hope that helps you
Lutz
-----Ursprüngliche Nachricht-----
Von: Tom Brown [mailto:tom.brown at goodtechnology.com]
Gesendet: Freitag, 26. August 2005 10:57
An: Koop, Lutz (external)
Cc: nagios-users at lists.sourceforge.net
Betreff: Re: WG: [Nagios-users] check_by_ssh - Usage
>check_by_ssh --help
>
>be sure, you have installed a public key in .ssh/authorized_keys before
>
>
>
thanks but that does not really seem to help me on how to use it - does
anyone have any 'how-tos's around
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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
More information about the Users
mailing list