[Nagiosplug-help] Re: check_ssh
Harper Mann
hmann at itgroundwork.com
Mon Aug 9 21:28:07 CEST 2004
Hi Kelvin,
It sounds like you don't have a login that is set up so it doesn't prompt
for a password. You need to set up pre-shared keys with ssh so the account
logs in without asked for a password. Here are some procedures and there
are others on google:
http://www.arches.uga.edu/~pkeck/ssh/
http://bumblebee.lcs.mit.edu/ssh2/
http://www.static.net/~armenb/duh/no-password-ssh.html
I use the "nagios" user, since the plug-ins are typically called as user
"nagios" but it also works fine with a different user and the -l switch if
you tell ssh which .ssh and key file to use.
Once you have it set up, be sure to check it by becoming user "nagios" and
then running ssh to the target system. You should get a shell prompt on the
target system and not a password prompt.
One other possible problem: be sure the .ssh directory has permissions set
to 700. At least some versions of ssh will silently fail to work, if
permissions aren't correct.
Regards,
- Harper
Harper Mann
Groundwork Open Source Solutions
510-599-2075 (cell)
-----Original Message-----
From: nagiosplug-help-admin at lists.sourceforge.net
[mailto:nagiosplug-help-admin at lists.sourceforge.net] On Behalf Of Kelvin Wu
Sent: Monday, August 09, 2004 8:24 PM
To: Nagios
Subject: [Nagiosplug-help] Re: check_ssh
these is a problem, when i executed this script from shell, it
detected error after timeout and returned me error message, but
terminal stdin seems messed up, i can't type any chars......
i tried the check_by_ssh plugin, same problem.
/.check_by_ssh -l fake_account -H ip -C pwd
prompt for password..... wait here until timeout, and i have to reset
terminal to continue work...
any suggestions?
On Fri, 6 Aug 2004 18:24:48 +0800, Kelvin Wu <kelvin.wu at gmail.com> wrote:
> i solved the problem quickly... a simple perl script attached if
> anyone interests
>
>
>
>
> On Fri, 6 Aug 2004 18:02:00 +0800, Kelvin Wu <kelvin.wu at gmail.com> wrote:
> > or check_ssh_login
> >
> > is there any plugin to check if ssh login is successfully ot not?
> > normally i use 'ssh -l user host'(via ssh key) to log into server and
> > do something, but i got trouble if login failed(keyfile deleted for
> > example), how can i detect the login error so i can send alert? the
> > command just stop there and wait for inputting new password...
> >
> > thanks.
> >
>
>
>
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Help
mailing list