* [EMAIL PROTECTED] [2008-01-03 14:31]: > > * [EMAIL PROTECTED] [2008-01-02 21:56]: > >> > On Jan 2, 2008, at 3:34 AM, [EMAIL PROTECTED] wrote: > >> >> I want to do some checks on a remote host using check_by_ssh. > >> >> Although user nagios can ssh to that host without being asked > >> >> for a password the webinterface of my nagios is telling me: > >> >> > >> >> Unknown Remote command execution failed: Permission denied > >> >> (publickey,keyboard-interactive) > >> >> > >> >> If I run nagios in the foreground I get prompts for password. > >> >> > >> >> Any idea what I might have missed? > >> > > >> > Are you using the exact same hostname/IP address for your command > >> > line test as the nagios user that you have in your configuration? > >> > >> Yes, I think so. > > > > "I think so" doesn't sound very convincing :-) > > > > Anyway, there's no ssh-agent(1) involved? Does it work on the > > command line if you use "env -i /path/to/check_by_ssh [...]"? > > Yes it does work. > Does it matter if I do not login as nagios to the webinterface?
No, the web interface shouldn't matter at all. If it check_by_ssh works on the command line, executed via "env -i" by the user running Nagios, then I'm pretty sure you didn't configure Nagios to execute exactly the same command as you did on the command line (as Marc suggested). Holger ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Nagios-users mailing list [email protected] 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
